
/* =============== FONTS =============== */
@import url("https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap");

/* =============== RESET =============== */
*,
*::before,
*::after
{
  box-sizing: border-box;
}

html,
body
{
  width: 100%;
  height: 100%;
}

body
{
  margin: 0;
  padding: 0;
  font-family: "ABeeZee", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eaf0ff;
  background-color: #020617;
  overflow-x: hidden;
}

button,
input,
select,
textarea
{
  font-family: inherit;
}

img
{
  max-width: 100%;
  display: block;
}

.hidden
{
  display: none !important;
}

/* =============== DESIGN TOKENS =============== */
:root
{
  --bg-0: #030712;
  --bg-1: #061021;
  --bg-2: #0a162d;
  --panel: rgba(10, 25, 55, 0.72);
  --panel-strong: rgba(4, 12, 28, 0.82);

  --stroke: rgba(56, 189, 248, 0.22);
  --stroke-strong: rgba(56, 189, 248, 0.40);

  --txt: #f8fafc;
  --txt-2: rgba(226, 232, 240, 0.90);
  --muted: rgba(148, 163, 184, 0.75);

  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --accent-3: #0284c7;
  --danger: #ef4444;
  --warning: #f59e0b;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --shadow-soft:
    0 18px 60px rgba(0, 0, 0, 0.65);

  --shadow-hard:
    0 24px 80px rgba(0, 0, 0, 0.90);

  --glow:
    0 0 0 1px rgba(56, 189, 248, 0.30),
    0 0 35px rgba(56, 189, 248, 0.25);

  --glow-strong:
    0 0 0 1px rgba(14, 165, 233, 0.45),
    0 0 70px rgba(14, 165, 233, 0.35);

  --focus:
    0 0 0 1px rgba(56, 189, 248, 0.85),
    0 0 0 4px rgba(56, 189, 248, 0.25);
}

/* =============== BACKGROUND (CINEMATIC) =============== */
body::before
{
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -3;
  background:
    radial-gradient(closest-side at 18% 12%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(closest-side at 82% 20%, rgba(59, 130, 246, 0.14), transparent 62%),
    radial-gradient(closest-side at 50% 88%, rgba(34, 197, 94, 0.10), transparent 62%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  filter: saturate(1.15);
}

body::after
{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 0%, black 40%, transparent 75%);
}

/* =============== APP SHELL =============== */
.app-shell
{
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  position: relative;
}

.app-shell::before
{
  content: "";
  position: absolute;
  inset: -120px -90px auto -90px;
  height: 280px;
  background:
    radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.22), transparent 62%),
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
  filter: blur(0px);
}

.main-content
{
  flex: 1;
  padding: 10px 14px 96px;
  overflow: auto;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
}

.main-content::-webkit-scrollbar
{
  width: 0px;
  height: 0px;
}

/* =============== TOP BAR =============== */
.top-bar
{
  height: 66px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(120deg, rgba(2, 6, 23, 0.70), rgba(15, 23, 42, 0.48));
  border-bottom: 1px solid rgba(96, 165, 250, 0.22);
  backdrop-filter: blur(18px);
}

.top-bar-left
{
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-right
{
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo-circle
{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.app-logo-img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}



.app-title-group
{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-title
{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-subtitle
{
  font-size: 12px;
  color: rgba(191, 219, 254, 0.86);
  opacity: 0.90;
}

.network-dropdown
{
  position: relative;
  min-width: 172px;
  outline: none;
}

.network-selected
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.92);
  background-image:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.55));
  background-repeat: no-repeat;
  box-shadow: var(--glow);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.network-dropdown:focus .network-selected,
.network-dropdown.open .network-selected
{
  box-shadow: var(--focus);
  border-color: rgba(56, 189, 248, 0.70);
}

.network-dropdown.open .network-selected
{
  transform: translateY(-1px);
}

.network-selected-main
{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.network-selected-label
{
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.network-selected-caret
{
  font-size: 12px;
  color: rgba(191, 219, 254, 0.86);
  transition: transform 150ms ease;
}

.network-dropdown.open .network-selected-caret
{
  transform: rotate(180deg);
}

.network-options
{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  z-index: 120;
}

.network-option
{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.network-option:hover,
.network-option.active
{
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}

.network-option-label
{
  font-size: 13px;
  font-weight: 700;
}

.network-icon
{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* =============== SCREENS =============== */
.screen
{
  display: none;
  animation: screenIn 260ms ease-out;
}

.active-screen
{
  display: block;
}

@keyframes screenIn
{
  0%
  {
    opacity: 0;
    transform: translateY(10px);
  }

  100%
  {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* =============== TYPO =============== */
.screen-title-xl
{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 10px 2px 8px;
}

.screen-title
{
  font-size: 18px;
  font-weight: 800;
}

.screen-subtitle
{
  font-size: 13px;
  color: var(--muted);
  margin: 0px 2px 14px;
}

.screen-footnote
{
  font-size: 12px;
  color: rgba(148, 163, 184, 0.76);
  margin-top: 12px;
  text-align: center;
}

/* =============== TOPBAR BACK (CREATE/IMPORT) =============== */
.screen-topbar
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.icon-back
{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.90);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.icon-back:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(2, 6, 23, 0.55);
}

.icon-back-arrow
{
  font-size: 18px;
}

/* =============== BUTTONS =============== */
.full-width
{
  width: 100%;
}

.primary-button
{
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(59, 130, 246, 0.95), rgba(34, 197, 94, 0.90));
  box-shadow:
    0 16px 55px rgba(59, 130, 246, 0.30),
    0 0 0 1px rgba(56, 189, 248, 0.26);
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.primary-button::before
{
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 55%);
  transform: rotate(12deg);
  opacity: 0.75;
}

.primary-button:hover
{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: var(--glow-strong);
}

.primary-button:active
{
  transform: translateY(1px) scale(0.99);
}

.primary-button:disabled
{
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.85);
}

.secondary-button
{
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(15, 23, 42, 0.35));
  box-shadow: var(--glow);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.secondary-button:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.30);
  background: rgba(2, 6, 23, 0.60);
}

.secondary-button:active
{
  transform: translateY(1px);
}

.outline-button
{
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: transparent;
  box-shadow: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.outline-button:hover
{
  transform: translateY(-1px);
  background: rgba(2, 6, 23, 0.40);
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: var(--glow);
}

.small-outline-button
{
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.30);
  box-shadow: var(--glow);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.small-outline-button:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(2, 6, 23, 0.55);
}

/* =============== INPUTS =============== */
.text-input
{
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(96, 165, 250, 0.20);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(15, 23, 42, 0.32));
  color: rgba(226, 232, 240, 0.92);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(2, 6, 23, 0.65) inset,
    0 0 0 1px rgba(56, 189, 248, 0.10);
  transition: box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.text-input::placeholder
{
  color: rgba(148, 163, 184, 0.62);
}

.text-input:focus
{
  border-color: rgba(56, 189, 248, 0.70);
  box-shadow: var(--focus);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.70), rgba(15, 23, 42, 0.40));
}

.text-area
{
  width: 100%;
  min-height: 110px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(96, 165, 250, 0.20);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(15, 23, 42, 0.32));
  color: rgba(226, 232, 240, 0.92);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  resize: vertical;
}

.text-area:focus
{
  border-color: rgba(56, 189, 248, 0.70);
  box-shadow: var(--focus);
}

/* =============== WELCOME =============== */
.welcome-card
{
  margin-top: 18px;
  padding: 10px 2px;
}

.welcome-title
{
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.welcome-text
{
  font-size: 14px;
  color: rgba(148, 163, 184, 0.82);
  margin-bottom: 18px;
}

.welcome-hint
{
  font-size: 13px;
  color: rgba(148, 163, 184, 0.72);
  margin-top: 14px;
  margin-bottom: 10px;
}

/* =============== PHRASE CARD / GRID =============== */
.phrase-card
{
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-top: 12px;
  margin-bottom: 16px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.phrase-card::before
{
  content: "";
  position: absolute;
  inset: -60px -60px auto -60px;
  height: 180px;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at 70% 10%, rgba(59, 130, 246, 0.14), transparent 60%);
  pointer-events: none;
}

.phrase-header
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.phrase-title
{
  font-size: 14px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.92);
}

.phrase-toggle
{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.30);
  color: rgba(226, 232, 240, 0.92);
  box-shadow: var(--glow);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.phrase-toggle:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(2, 6, 23, 0.55);
}

.phrase-toggle-icon
{
  font-size: 14px;
}

.phrase-grid
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.import-grid
{
  grid-template-columns: repeat(3, 1fr);
}

.phrase-cell
{
  border-radius: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(15, 23, 42, 0.40));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}
.phrase-cell:focus-within
{
  border: 1px solid #f0b90b;

}
.phrase-num
{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.92);
  background:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.35), rgba(2, 6, 23, 0.45));
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.phrase-word
{
  font-size: 13px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.90);
  opacity: 0.95;
  word-break: break-word;
}

.phrase-input
{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.copy-button
{
  margin-top: 12px;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.92);
  box-shadow: var(--glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.copy-button:hover
{
  transform: translateY(-1px);
  background: rgba(2, 6, 23, 0.60);
  border-color: rgba(56, 189, 248, 0.30);
}

.copy-icon
{
  font-size: 14px;
}

/* =============== WALLET HEADER CARD =============== */
.wallet-header-card
{
  border-radius: var(--radius-xl);
  padding: 18px;
  margin: 10px 0px 18px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.62));
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

.wallet-header-card::before
{
  content: "";
  position: absolute;
  inset: auto -60px -80px -60px;
  height: 240px;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(34, 197, 94, 0.10), transparent 60%);
  pointer-events: none;
}

.wallet-header-row
{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.wallet-label
{
  font-size: 12px;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.86);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-header-right
{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.wallet-address-short
{
  font-size: 11px;
  color: rgba(226, 232, 240, 0.80);
  opacity: 0.85;
}

.wallet-balance-row
{
  position: relative;
  z-index: 1;
}

.wallet-balance-fiat
{
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.wallet-native-row
{
  margin-top: 6px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wallet-balance-native
{
  font-size: 14px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.90);
}

.wallet-balance-native-symbol
{
  font-size: 14px;
  font-weight: 900;
  color: rgba(191, 219, 254, 0.92);
}

/* =============== CIRCLE ACTION BUTTONS =============== */
.wallet-actions
{
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.circle-action-button
{
  width: 86px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.circle-icon
{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.35), rgba(2, 6, 23, 0.55));
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.10);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.circle-label
{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.86);
  opacity: 0.95;
}

.circle-action-button:hover .circle-icon
{
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(34, 197, 94, 0.26);
  background:
    radial-gradient(circle at 30% 0%, rgba(34, 197, 94, 0.22), rgba(59, 130, 246, 0.20), rgba(2, 6, 23, 0.55));
  box-shadow: var(--glow-strong);
}

.circle-action-button:active .circle-icon
{
  transform: translateY(1px) scale(0.99);
}

/* =============== TABS =============== */
.tabs-row
{
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.40);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--glow);
  margin-bottom: 14px;
}

.tab-button
{
  flex: 1;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 11px 0px;
  background: transparent;
  color: rgba(148, 163, 184, 0.80);
  font-size: 13px;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.tab-button:hover
{
  transform: translateY(-1px);
  color: rgba(226, 232, 240, 0.92);
}

.active-tab
{
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.20), rgba(59, 130, 246, 0.18), rgba(2, 6, 23, 0.35));
  color: rgba(248, 250, 252, 0.96);
  box-shadow: var(--glow);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.tab-content
{
  display: none;
}

.active-tab-content
{
  display: block;
}

/* =============== ADD TOKEN ROW =============== */
.add-token-row
{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.add-token-row .text-input
{
  flex: 1;
}

.add-token-row .small-outline-button
{
  white-space: nowrap;
}

/* =============== TOKEN LIST =============== */
.token-list
{
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.token-item
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.70), rgba(2, 6, 23, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.55);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.token-item:hover
{
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.26);
  box-shadow: var(--shadow-hard);
  filter: brightness(1.03);
}

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

.token-icon-circle
{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.24), rgba(2, 6, 23, 0.55));
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.55);
  flex: 0 0 auto;
}

.token-icon-circle img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-main
{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0px;
}

.token-symbol
{
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.token-name
{
  font-size: 12px;
  color: rgba(148, 163, 184, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.token-right
{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.token-top-row
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.token-fiat
{
  font-size: 14px;
  font-weight: 900;
}

.token-actions
{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.token-refresh-btn
{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.token-refresh-btn:hover
{
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.token-refresh-btn:disabled
{
  opacity: 0.7;
  cursor: wait;
}

.token-refresh-btn.is-spinning
{
  animation: tokenRefreshSpin 0.8s linear infinite;
}

@keyframes tokenRefreshSpin
{
  from
  {
    transform: rotate(0deg);
  }

  to
  {
    transform: rotate(360deg);
  }
}

.remove-token-btn
{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.90);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.remove-token-btn:hover
{
  transform: translateY(-1px);
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.40);
  color: rgba(255, 255, 255, 0.98);
}

.token-balance-row
{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.token-balance
{
  font-size: 13px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.88);
}

.token-change
{
  font-size: 12px;
  font-weight: 900;
  opacity: 0.95;
}

.token-change-positive
{
  color: rgba(34, 197, 94, 0.95);
}

.token-change-negative
{
  color: rgba(239, 68, 68, 0.95);
}

/* =============== EMPTY STATE =============== */
.empty-state
{
  margin-top: 40px;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(148, 163, 184, 0.20);
  background: rgba(2, 6, 23, 0.25);
}

.empty-title
{
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 6px;
}

.empty-text
{
  font-size: 13px;
  color: rgba(148, 163, 184, 0.78);
}

/* =============== SEND / RECEIVE / SETTINGS COMMON =============== */
.screen-header
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0px 12px;
}

.back-button
{
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(148, 163, 184, 0.88);
  font-size: 14px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.back-button:hover
{
  background: rgba(148, 163, 184, 0.10);
  color: rgba(226, 232, 240, 0.92);
  transform: translateX(-1px);
}

.field-label
{
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.86);
  margin: 10px 2px 8px;
}

.field-row
{
  display: flex;
  gap: 10px;
  align-items: center;
}

.sheet-hint
{
  font-size: 12px;
  color: rgba(148, 163, 184, 0.80);
  margin-top: 10px;
}

.sheet-text
{
  font-size: 13px;
  color: rgba(148, 163, 184, 0.86);
  margin: 10px 0px;
}

.send-card,
.receive-card
{
  border-radius: var(--radius-xl);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.70), rgba(2, 6, 23, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

.qr-box
{
  width: 210px;
  height: 210px;
  margin: 12px auto 20px;
  padding: 12px;
  border-radius: 20px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.qr-box canvas,
.qr-box img
{
  border-radius: 12px;
}

/* =============== HISTORY =============== */
.history-section
{
  margin-top: 14px;
}

.history-title
{
  font-size: 14px;
  font-weight: 900;
  margin: 14px 4px 10px;
  color: rgba(226, 232, 240, 0.92);
}

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

.history-item
{
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(2, 6, 23, 0.30);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--glow);
}

.history-empty
{
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(2, 6, 23, 0.20);
  border: 1px dashed rgba(148, 163, 184, 0.20);
  color: rgba(148, 163, 184, 0.78);
}

.history-row-top
{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.history-amount-status
{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-amount
{
  font-weight: 900;
  font-size: 13px;
}

.history-amount-send
{
  color: rgba(239, 68, 68, 0.95);
}

.history-amount-receive
{
  color: rgba(34, 197, 94, 0.95);
}

.history-date
{
  font-size: 11px;
  color: rgba(148, 163, 184, 0.78);
  font-weight: 900;
  white-space: nowrap;
}

.history-status
{
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.history-status-pending
{
  color: #f59e0b;
}

.history-status-completed
{
  color: #22c55e;
}

.history-status-failed
{
  color: #ef4444;
}

.history-row-bottom
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-address
{
  font-size: 12px;
  color: rgba(226, 232, 240, 0.86);
  font-weight: 800;
}

.history-link
{
  font-size: 12px;
  font-weight: 900;
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
}

.history-link:hover
{
  text-decoration: underline;
}

/* =============== SETTINGS =============== */
.settings-group-title
{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.86);
  margin: 10px 4px 10px;
}

.settings-list
{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-item
{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.70), rgba(2, 6, 23, 0.58));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.settings-item:hover
{
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.24);
  box-shadow: var(--shadow-hard);
}

.settings-icon
{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--glow);
  flex: 0 0 auto;
}

.settings-main
{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
}

.settings-title
{
  font-size: 14px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.92);
}

.settings-subtitle
{
  font-size: 12px;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.82);
}

.settings-right
{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.settings-chevron
{
  font-size: 20px;
  color: rgba(148, 163, 184, 0.80);
}

.settings-panel
{
  margin-top: 12px;
}

/* =============== INFO / WARNING CARD (PRIVATE KEY) =============== */
.info-card
{
  border-radius: var(--radius-xl);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.70), rgba(2, 6, 23, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

.warning-card
{
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(245, 158, 11, 0.20),
    0 0 50px rgba(245, 158, 11, 0.12);
}

.info-title
{
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}

.info-text
{
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.82);
}

/* =============== BOTTOM NAV =============== */
.bottom-nav
{
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 12px 12px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.82));
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  z-index: 60;
}

.bottom-nav-item
{
  border: none;
  cursor: pointer;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.bottom-nav-item:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(2, 6, 23, 0.45);
}

.bottom-nav-item-active
{
  border-color: rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(59, 130, 246, 0.14), rgba(2, 6, 23, 0.35));
}

.bottom-nav-icon
{
  font-size: 18px;
}

.bottom-nav-label
{
  font-size: 11px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.88);
}

/* =============== TOAST =============== */
.toast
{
  position: fixed;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--glow-strong);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible
{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* =============== QR SCAN MODAL =============== */
.scan-modal
{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 14, 17, 0.84);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.scan-card
{
  width: min(520px, 100%);
  max-height: calc(100vh - 24px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(24, 28, 36, 0.98), rgba(15, 18, 24, 0.98));
  border: 1px solid #2b3139;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.scan-top
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 14px;
}

.scan-title
{
  font-size: 17px;
  font-weight: 700;
  color: #f5f5f5;
}

.scan-video-wrap
{
  padding: 0px 20px 20px;
}

.scanner-stage
{
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000000 !important;
  border: 1px solid #3a414b !important;
  box-shadow: none !important;
  isolation: isolate;
}

#scanVideo
{
  width: 100%;
  height: 640px;
  max-height: 68vh;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000000;
  transform: none;
}

.scan-overlay
{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scan-overlay::before
{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.58);
  z-index: 1;
}

.scan-frame
{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 320px);
  height: min(64vw, 320px);
  max-width: 320px;
  max-height: 320px;
  transform: translate(-50%, -56%);
  border-radius: 28px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 3;
}

.scan-frame-glow
{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(240, 185, 11, 0.18),
    0 0 0 9999px rgba(5, 11, 20, 0.58);
}

.scan-line
{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(240, 185, 11, 0), rgba(240, 185, 11, 0.95), rgba(240, 185, 11, 0));
  box-shadow: 0 0 18px rgba(240, 185, 11, 0.55);
  animation: scanLineMove 2.2s linear infinite;
}

@keyframes scanLineMove
{
  0%
  {
    top: 16px;
    opacity: 0.25;
  }

  12%
  {
    opacity: 1;
  }

  88%
  {
    opacity: 1;
  }

  100%
  {
    top: calc(100% - 18px);
    opacity: 0.25;
  }
}

.corner
{
  width: 38px;
  height: 38px;
  position: absolute;
  border-color: #f0b90b;
  border-style: solid;
  z-index: 4;
}

.tl
{
  left: 12px;
  top: 12px;
  border-width: 5px 0px 0px 5px;
  border-radius: 18px 0px 0px 0px;
}

.tr
{
  right: 12px;
  top: 12px;
  border-width: 5px 5px 0px 0px;
  border-radius: 0px 18px 0px 0px;
}

.bl
{
  left: 12px;
  bottom: 12px;
  border-width: 0px 0px 5px 5px;
  border-radius: 0px 0px 0px 18px;
}

.br
{
  right: 12px;
  bottom: 12px;
  border-width: 0px 5px 5px 0px;
  border-radius: 0px 0px 18px 0px;
}

.scan-status-pill
{
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: calc(100% - 36px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 22, 29, 0.92);
  border: 1px solid rgba(240, 185, 11, 0.28);
  color: #f5f5f5;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  z-index: 5;
  backdrop-filter: blur(8px);
}

.scan-status-pill.is-found
{
  border-color: rgba(14, 203, 129, 0.30);
  color: #0ecb81;
}

.scan-status-pill.is-error
{
  border-color: rgba(246, 70, 93, 0.30);
  color: #f6465d;
}

.scan-hint
{
  display: none;
}

@media (max-width: 900px)
{
  #scanVideo
  {
    height: 560px;
    max-height: 66vh;
  }

  .scan-frame
  {
    width: min(68vw, 300px);
    height: min(68vw, 300px);
  }
}

@media (max-width: 640px)
{
  .scan-modal
  {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .scan-card
  {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .scan-video-wrap
  {
    padding: 0px 10px 10px;
  }

  .scan-top
  {
    padding: 12px 12px 10px;
  }

  .scan-title
  {
    font-size: 15px;
  }

  .scanner-stage
  {
    border-radius: 24px;
    padding-bottom: 64px;
  }

  #scanVideo
  {
    height: min(72dvh, 520px);
    max-height: none;
  }

  .scan-frame
  {
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    transform: translate(-50%, -58%);
    border-radius: 24px;
  }

  .corner
  {
    width: 30px;
    height: 30px;
  }

  .tl
  {
    left: 10px;
    top: 10px;
    border-width: 4px 0px 0px 4px;
    border-radius: 14px 0px 0px 0px;
  }

  .tr
  {
    right: 10px;
    top: 10px;
    border-width: 4px 4px 0px 0px;
    border-radius: 0px 14px 0px 0px;
  }

  .bl
  {
    left: 10px;
    bottom: 10px;
    border-width: 0px 0px 4px 4px;
    border-radius: 0px 0px 0px 14px;
  }

  .br
  {
    right: 10px;
    bottom: 10px;
    border-width: 0px 4px 4px 0px;
    border-radius: 0px 0px 14px 0px;
  }

  .scan-line
  {
    left: 10px;
    right: 10px;
  }

  .scan-status-pill
  {
    bottom: 12px;
    min-width: 0px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 390px)
{
  #scanVideo
  {
    height: min(70dvh, 480px);
  }

  .scan-frame
  {
    width: min(76vw, 250px);
    height: min(76vw, 250px);
  }

  .scan-status-pill
  {
    font-size: 11px;
    padding: 9px 12px;
  }
}

@media (max-height: 720px) and (max-width: 640px)
{
  #scanVideo
  {
    height: min(68dvh, 440px);
  }

  .scanner-stage
  {
    padding-bottom: 58px;
  }

  .scan-frame
  {
    width: min(66vw, 240px);
    height: min(66vw, 240px);
    transform: translate(-50%, -58%);
  }

  .scan-status-pill
  {
    bottom: 10px;
  }
}/* =============== HISTORY DETAILS MODAL =============== */
.history-details-modal
{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.history-details-card
{
  width: min(720px, 100%);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-hard);
  position: relative;
  padding: 24px 18px 18px;
}

.history-details-head
{
  padding-right: 56px;
  margin-bottom: 18px;
}

.history-details-title
{
  font-size: 20px;
  font-weight: 900;
  color: rgba(248, 250, 252, 0.96);
}

.history-details-close
{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 250, 252, 0.95);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.history-details-close:hover
{
  background: rgba(255, 255, 255, 0.06);
}

.history-details-body
{
  display: grid;
  gap: 10px;
}

.history-details-row
{
  display: grid;
  grid-template-columns: minmax(110px, 170px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0px;
}

.history-details-label
{
  font-size: 13px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.88);
}

.history-details-value
{
  font-size: 14px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.95);
  text-align: right;
  word-break: break-word;
}

.history-details-status-wrap
{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.history-details-status-dot
{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0ecb81;
  box-shadow: 0 0 0 4px rgba(14, 203, 129, 0.12);
  flex-shrink: 0;
}

.history-details-copy-wrap
{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.history-copy-btn
{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
  font-size: 16px;
}

.history-copy-btn:hover
{
  background: rgba(255, 255, 255, 0.08);
}

.history-copy-btn:disabled
{
  opacity: 0.45;
  cursor: not-allowed;
}

.history-details-actions
{
  margin-top: 16px;
}

.history-item
{
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.history-item:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.44);
}

.history-item:active
{
  transform: translateY(0px) scale(0.995);
}

@media (max-width: 640px)
{
  .history-details-card
  {
    padding: 20px 14px 14px;
    border-radius: 22px;
  }

  .history-details-title
  {
    font-size: 18px;
  }

  .history-details-row
  {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .history-details-label,
  .history-details-value
  {
    text-align: left;
  }

  .history-details-status-wrap,
  .history-details-copy-wrap
  {
    justify-content: flex-start;
  }
}

/* =============== WALLET PASSWORD MODAL =============== */
.wallet-password-modal
{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.wallet-password-card-modal
{
  width: min(560px, 100%);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.72));
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: var(--shadow-hard);
  position: relative;
  padding: 18px 16px 16px;
}

.wallet-password-close
{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.wallet-password-close:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(2, 6, 23, 0.55);
}

.wallet-password-head
{
  padding-right: 52px;
}

.wallet-password-title
{
  font-size: 18px;
  font-weight: 900;
}

.wallet-password-subtitle
{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.55;
}

.wallet-password-fields
{
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.wallet-password-actions
{
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

/* =============== SECURITY MODAL + CONFIRM MODAL =============== */
.security-modal,
.confirm-modal
{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.security-card,
.confirm-card
{
  width: min(520px, 100%);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.72));
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  position: relative;
}

.security-back
{
  position: absolute;
  left: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.security-back:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(2, 6, 23, 0.55);
}

.security-head
{
  padding: 16px 16px 10px;
  padding-left: 62px;
}

.security-title
{
  font-size: 15px;
  font-weight: 900;
}

.security-subtitle
{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.80);
}

.security-provider
{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 16px 12px;
}

.security-provider-badge
{
  font-weight: 900;
  font-size: 18px;
  color: #ff4d4d;
  letter-spacing: 0.02em;
  min-width: 48px;
}

.security-provider-text
{
  font-size: 13px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.90);
}

.security-password-wrapper
{
  padding: 0px 16px 10px;
}

.security-password-input
{
  width: 100%;
}

.security-password-input.input-error
{
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.25);
}

.security-actions,
.confirm-actions
{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
}

.security-btn
{
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 150ms ease, filter 150ms ease;
}

.security-btn:active
{
  transform: translateY(1px);
}

.security-btn-ghost
{
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.90);
  box-shadow: var(--glow);
}

.security-btn-primary
{
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(59, 130, 246, 0.92), rgba(34, 197, 94, 0.90));
  color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--glow-strong);
}

.security-error
{
  padding: 0px 16px 16px;
  color: rgba(239, 68, 68, 0.95);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

/* =============== CONFIRM MODAL TEXT =============== */
.confirm-title
{
  padding: 16px 16px 8px;
  font-size: 15px;
  font-weight: 900;
}

.confirm-text
{
  padding: 0px 16px 4px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.86);
}

/* =============== ACCESSIBILITY =============== */
:focus-visible
{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 14px;
}

@media (prefers-reduced-motion: reduce)
{
  *
  {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 520px)
{
  .phrase-grid
  {
    grid-template-columns: repeat(2, 1fr);
  }

  .import-grid
  {
    grid-template-columns: repeat(2, 1fr);
  }

  #scanVideo
  {
    height: 280px;
  }

  .token-right
  {
    min-width: 120px;
  }

  .token-symbol
  {
    max-width: 140px;
  }

  .token-name
  {
    max-width: 150px;
  }
}


/* Security verification error */
.security-password-input.input-error
{
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.25);
}


/* =========================================================
   BINANCE-STYLE THEME OVERRIDES
   ========================================================= */

:root
{
  --bg-0: #0b0e11;
  --bg-1: #12161c;
  --bg-2: #1e2329;
  --panel: rgba(30, 35, 41, 0.92);
  --panel-strong: rgba(24, 28, 34, 0.96);
  --stroke: rgba(71, 77, 87, 0.95);
  --stroke-strong: rgba(240, 185, 11, 0.55);
  --txt: #eaecef;
  --txt-2: rgba(234, 236, 239, 0.92);
  --muted: #848e9c;
  --accent: #f0b90b;
  --accent-2: #f8d12f;
  --accent-3: #c99400;
  --danger: #f6465d;
  --warning: #f0b90b;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.28);
  --shadow-hard: 0 24px 60px rgba(0, 0, 0, 0.34);
  --glow: none;
  --glow-strong: 0 0 0 1px rgba(240, 185, 11, 0.34);
  --focus:
    0 0 0 1px rgba(240, 185, 11, 0.95),
    0 0 0 4px rgba(240, 185, 11, 0.14);
}

body
{
  color: var(--txt);
  background:
    linear-gradient(180deg, #0b0e11 0%, #11161d 100%);
}

body::before
{
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(240, 185, 11, 0.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(240, 185, 11, 0.05), transparent 24%),
    linear-gradient(180deg, #0b0e11 0%, #11161d 100%);
  filter: none;
}

body::after
{
  opacity: 0;
  background-image: none;
}

.app-shell
{
  background:
    linear-gradient(180deg, rgba(11, 14, 17, 0.98), rgba(24, 26, 32, 0.98));
  border: 1px solid #1e2329;
  box-shadow: none;
}

.app-shell::before
{
  display: none;
}

.main-content
{
  padding: 16px 16px 108px;
  background:
    linear-gradient(180deg, rgba(11, 14, 17, 0.20), rgba(17, 22, 29, 0.32));
}

.top-bar
{
  height: 72px;
  padding: 14px 16px;
  background: rgba(17, 22, 29, 0.92);
  border-bottom: 1px solid #1e2329;
  backdrop-filter: blur(12px);
}

.app-logo-circle
{
  width: 42px;
  height: 42px;
  background: #181a20;
  border: 1px solid #2b3139;
  box-shadow: none;
}

.app-title
{
  font-size: 15px;
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: 0.01em;
}

.app-subtitle
{
  color: #848e9c;
}

.network-select,
.text-input,
.text-area,
.phrase-toggle,
.copy-button,
.small-outline-button,
.secondary-button,
.outline-button,
.icon-back,
.back-button
{
  box-shadow: none;
}

.network-select
{
  min-width: 145px;
  background: #1e2329;
  border: 1px solid #2b3139;
  color: #eaecef;
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  font-weight: 600;
  background-image: linear-gradient(180deg, #1e2329 0%, #1b2026 100%);
}

.network-select:hover,
.text-input:hover,
.text-area:hover,
.phrase-input:hover
{
  border-color: #3a414b;
}

.network-select:focus,
.text-input:focus,
.text-area:focus,
.phrase-input:focus
{
  border-color: #f0b90b;
  box-shadow: none;
}

.screen-title-xl,
.screen-title,
.welcome-title
{
  color: #f5f5f5;
  letter-spacing: 0;
}

.screen-subtitle,
.screen-footnote,
.welcome-text,
.welcome-hint,
.wallet-label,
.empty-text,
.info-text,
.history-date,
.settings-subtitle
{
  color: #848e9c;
}

.welcome-card
{
  margin-top: 22px;
  padding: 0;
}

.welcome-title
{
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.primary-button
{
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #181a20;
  background: linear-gradient(180deg, #f8d12f 0%, #f0b90b 100%);
  box-shadow: none;
}

.primary-button::before
{
  display: none;
}

.primary-button:hover
{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: none;
}

.primary-button:disabled
{
  opacity: 0.5;
  color: rgba(24, 26, 32, 0.75);
}

.secondary-button,
.outline-button,
.copy-button,
.small-outline-button,
.icon-back,
.back-button
{
  background: #1e2329;
  border: 1px solid #2b3139;
  color: #eaecef;
}

.secondary-button:hover,
.outline-button:hover,
.copy-button:hover,
.small-outline-button:hover,
.icon-back:hover,
.back-button:hover
{
  background: #2b3139;
  border-color: #474d57;
  transform: translateY(-1px);
}

.phrase-card,
.wallet-header-card,
.send-card,
.receive-card,
.info-card,
.warning-card,
.scan-card,
.confirm-card,
.settings-panel,
.security-card,
.token-item,
.history-item,
.empty-state
{
  background: linear-gradient(180deg, #181a20 0%, #1e2329 100%);
  border: 1px solid #2b3139;
  box-shadow: none;
}

.phrase-card::before,
.wallet-header-card::before,
.confirm-card::before,
.send-card::before,
.receive-card::before,
.info-card::before,
.warning-card::before,
.scan-card::before,
.security-card::before
{
  display: none;
}

.phrase-cell
{
  background: #1a1f24;
  border: 1px solid #2b3139;
  box-shadow: none;
  border-radius: 12px;
}

.phrase-num
{
  background: rgba(240, 185, 11, 0.12);
  color: #f0b90b;
  border: 1px solid rgba(240, 185, 11, 0.22);
}

.phrase-word,
.phrase-input,
.token-name,
.settings-title,
.info-title,
.history-title,
.empty-title
{
  color: #f5f5f5;
}

.text-input,
.text-area
{
  border-radius: 10px;
  border: 1px solid #2b3139;
  background: #181a20;
  color: #eaecef;
  box-shadow: none;
}

.text-input::placeholder,
.text-area::placeholder,
.phrase-input::placeholder
{
  color: #6f7782;
}

.wallet-header-card
{
  padding: 20px;
}

.wallet-balance-fiat
{
  font-size: 34px;
  font-weight: 700;
  color: #f5f5f5;
}

.wallet-balance-native,
.wallet-balance-native-symbol,
.wallet-address-short
{
  color: #b7bdc6;
}

.wallet-actions
{
  gap: 12px;
}

.circle-action-button
{
  background: transparent;
  border: none;
  border-radius: 0px;
  box-shadow: none;
}

.circle-action-button:hover
{
  background: transparent;
  border-color: transparent;
}

.circle-icon
{
  background: rgba(240, 185, 11, 0.12);
  color: #f0b90b;
}

.circle-label
{
  color: #eaecef;
}

.tabs-row
{
  background: #181a20;
  border: 1px solid #2b3139;
  border-radius: 12px;
  padding: 4px;
}

.tab-button
{
  border-radius: 10px;
  color: #848e9c;
  font-weight: 600;
}

.tab-button:hover
{
  color: #eaecef;
  background: rgba(255, 255, 255, 0.02);
}

.active-tab
{
  background: rgba(240, 185, 11, 0.12);
  color: #f0b90b;
}

.add-token-row
{
  gap: 10px;
}

.token-item
{
  border-radius: 14px;
}

.token-item:hover
{
  border-color: #474d57;
  background: linear-gradient(180deg, #1b2026 0%, #232a33 100%);
}

.token-symbol,
.token-balance,
.token-fiat,
.history-address,
.history-link,
.settings-main,
.field-label
{
  color: #eaecef;
}

.token-change-positive,
.history-amount-receive
{
  color: #0ecb81;
}

.token-change-negative,
.history-amount-send
{
  color: #f6465d;
}

.token-icon-circle
{
  background: #0f1115;
  border: 1px solid #2b3139;
}

.bottom-nav
{
  background: rgba(17, 22, 29, 0.96);
  border-top: 1px solid #1e2329;
  box-shadow: none;
}

.bottom-nav-item
{
  color: #848e9c;
}

.bottom-nav-item-active,
.bottom-nav-item:hover
{
  color: #f0b90b;
}

.bottom-nav-icon
{
  background: transparent;
}

.toast
{
  background: #1e2329;
  border: 1px solid #2b3139;
  color: #f5f5f5;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.confirm-modal,
.scan-modal,
.security-modal
{
  background: rgba(11, 14, 17, 0.84);
  backdrop-filter: blur(10px);
}

.qr-box,
.scan-frame,
.scanner-stage
{
  background: #11161d;
  border: 1px solid #2b3139;
}

.remove-token-btn
{
  background: rgba(246, 70, 93, 0.10);
  border: 1px solid rgba(246, 70, 93, 0.26);
  color: #f6465d;
}

.remove-token-btn:hover
{
  background: rgba(246, 70, 93, 0.16);
}

.token-refresh-btn
{
  background: rgba(240, 185, 11, 0.10);
  border: 1px solid rgba(240, 185, 11, 0.28);
  color: #f0b90b;
}

.token-refresh-btn:hover
{
  background: rgba(240, 185, 11, 0.16);
  border-color: rgba(240, 185, 11, 0.42);
  color: #ffffff;
}

@media (max-width: 640px)
{
  .top-bar
  {
    height: auto;
    min-height: 72px;
  }

  .welcome-title
  {
    font-size: 26px;
  }

  .wallet-balance-fiat
  {
    font-size: 30px;
  }

  .phrase-grid,
  .import-grid
  {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============== SETTINGS ICONS REFINEMENT =============== */
.settings-item
{
  min-height: 108px;
}

.settings-icon
{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(7, 15, 30, 0.96), rgba(6, 16, 35, 0.88));
  border: 1px solid rgba(52, 211, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-icon svg
{
  width: 22px;
  height: 22px;
  color: #f0b90b;
  stroke-width: 2.1;
}

.settings-item:hover .settings-icon
{
  border-color: rgba(240, 185, 11, 0.22);
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.06);
}

.settings-chevron
{
  font-size: 24px;
  color: #a7b1bc;
}

.token-unit-price
{
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.token-balance
{
  font-size: 12px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.92);
}


.send-asset-dropdown-wrap
{
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.send-asset-native-select
{
  display: none;
}

.send-asset-trigger
{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.send-asset-trigger:hover
{
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.send-asset-trigger.open
{
  border-color: rgba(255, 255, 255, 0.18);
}

.send-asset-trigger-left
{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.send-asset-trigger-logo-wrap
{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.send-asset-trigger-logo
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.send-asset-trigger-texts
{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.send-asset-trigger-symbol
{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.send-asset-trigger-name
{
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.send-asset-trigger-caret
{
  font-size: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

.send-asset-menu
{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #11151d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  max-height: 260px;
  overflow-y: auto;
}

.send-asset-option
{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.send-asset-option:hover
{
  background: rgba(255, 255, 255, 0.06);
}

.send-asset-option.active
{
  background: rgba(255, 255, 255, 0.08);
}

.send-asset-option-left
{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.send-asset-option-logo-wrap
{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.send-asset-option-logo
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.send-asset-option-texts
{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.send-asset-option-symbol
{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.send-asset-option-name
{
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.send-asset-option-balance
{
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  flex-shrink: 0;
  margin-left: 12px;
}

.send-amount-usd
{
  margin: 6px 2px 0px;
  font-size: 13px;
  font-weight: 600;
  color: #848e9c;
}


/* =============== SWAP =============== */
.swap-card
{
  border-radius: var(--radius-xl);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.70), rgba(2, 6, 23, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

.swap-top-row
{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.swap-title
{
  font-size: 16px;
  font-weight: 800;
  color: #f5f5f5;
}

.swap-subtitle
{
  font-size: 12px;
  color: #848e9c;
  margin-top: 3px;
}

.swap-stats-grid
{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.swap-stat-box
{
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swap-stat-label
{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #848e9c;
}

.swap-stat-value
{
  font-size: 15px;
  font-weight: 700;
  color: #f5f5f5;
  word-break: break-word;
}

.swap-status-text
{
  margin: 10px 2px 14px;
  font-size: 12px;
  color: #848e9c;
}

@media (max-width: 480px)
{
  .swap-stats-grid
  {
    grid-template-columns: 1fr;
  }
}

/* =============== PIN MODAL / PIN BOXES =============== */
.pin-modal-card
{
  width: min(460px, 100%);
}

.pin-digits
{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pin-digit-input
{
  width: 100%;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.72);
  color: #eaf0ff;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.pin-digit-input:focus
{
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.pin-digit-input.input-error
{
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.10);
}

.security-pin-wrapper
{
  padding: 0 20px 4px;
}

.security-pin-digits
{
  margin-top: 4px;
}
/* =========================
   ASSET DROPDOWN SCROLLBAR ONLY
========================= */

#sendAssetMenu
{
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

/* Chrome / Edge / Safari */
#sendAssetMenu::-webkit-scrollbar
{
  width: 8px;
}

#sendAssetMenu::-webkit-scrollbar-track
{
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

#sendAssetMenu::-webkit-scrollbar-thumb
{
  background: rgba(148, 163, 184, 0.6);
  border-radius: 10px;
}

#sendAssetMenu::-webkit-scrollbar-thumb:hover
{
  background: rgba(56, 189, 248, 0.9);
}
@media (max-width: 480px)
{
  .pin-digits
  {
    gap: 10px;
  }

  .pin-digit-input
  {
    height: 58px;
    font-size: 24px;
    border-radius: 16px;
  }
}


@media (max-width: 560px)
{
  .pin-digit-input
  {
    height: 56px;
    font-size: 23px;
    border-radius: 16px;
  }

  .security-pin-wrapper
  {
    padding: 0 10px 4px;
  }
}

.wallet-name-section
{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.wallet-name-row
{
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-name-display
{
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-edit-btn
{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.30);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.wallet-edit-btn:hover
{
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(2, 6, 23, 0.55);
}

.wallet-rename-box
{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.wallet-rename-input
{
  width: 130px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.92);
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

.wallet-mini-btn
{
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.30);
  color: rgba(226, 232, 240, 0.92);
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
}

.wallet-mini-btn.cancel
{
  opacity: 0.85;
}

.wallet-address-copyable
{
  cursor: pointer;
}

.wallet-address-copyable:hover
{
  color: #f8fafc;
  opacity: 1;
}


.wallet-switcher-dashboard
{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: relative;
}

.wallet-address-row
{
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-switcher-btn
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.wallet-name-display
{
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-switcher-caret
{
  font-size: 11px;
  color: rgba(191, 219, 254, 0.86);
}

.wallet-switcher-menu
{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  z-index: 130;
}

.wallet-switcher-item
{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  text-align: left;
  cursor: pointer;
}

.wallet-switcher-item:hover,
.wallet-switcher-item.active
{
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.18);
}

.wallet-switcher-item-name
{
  font-size: 13px;
  font-weight: 800;
}

.wallet-switcher-item-address,
.wallet-switcher-empty
{
  font-size: 11px;
  color: rgba(226, 232, 240, 0.72);
}

.wallet-address-copyable
{
  cursor: pointer;
}

.wallet-address-copyable:hover
{
  color: #f8fafc;
}

/* =============== PRO SHIMMER (WHITE SWEEP) =============== */

.skeleton
{
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.shimmer::after
{
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.05) 70%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shimmerSweep 1.2s ease-in-out infinite;
}

@keyframes shimmerSweep
{
  100%
  {
    left: 150%;
  }
}

.token-logo-skeleton
{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.history-item.history-skeleton
{
  pointer-events: none;
}

.history-skeleton-row
{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-skeleton-left,
.history-skeleton-right
{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-skeleton-right
{
  align-items: flex-end;
}


/* ===== PATCH: STATUS BADGE ===== */
.history-status
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.history-status-completed
{
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
}

.history-status-pending
{
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
}

.history-status-failed
{
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}


.qr-inner
{
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-layer
{
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-layer img,
.qr-code-layer canvas
{
  width: 180px !important;
  height: 180px !important;
  border-radius: 12px;
  display: block;
}

.qr-center-logo
{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: #ffffff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
  z-index: 3;
  pointer-events: none;
}

.qr-center-logo-img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}


#v3FeeTier
{
  cursor: pointer;
}


.swap-v3-fee-hidden
{
  display: none !important;
}


#swapV3Fee.hidden
{
  display: none !important;
}


/* =============== SWAP FULL WIDTH + TOKEN LOGOS =============== */
.swap-page-shell
{
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.swap-card,
.swap-card-pro
{
  width: 100%;
  max-width: 100%;
  margin: 0;
  transform: none;
}

.swap-token-panel
{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.swap-token-box
{
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

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

.swap-token-label
{
  font-size: 12px;
  font-weight: 800;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swap-token-balance
{
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.swap-asset-dropdown-wrap
{
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.swap-native-select
{
  display: none;
}

.swap-asset-trigger
{
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.swap-asset-trigger:hover
{
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.swap-asset-trigger.open
{
  border-color: rgba(255, 255, 255, 0.18);
}

.swap-asset-trigger-left
{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.swap-asset-trigger-logo
{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.06);
}

.swap-asset-trigger-meta
{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.swap-asset-trigger-symbol
{
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.swap-asset-trigger-balance
{
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.swap-asset-trigger-caret
{
  font-size: 14px;
  color: #9ca3af;
  flex: 0 0 auto;
}

.swap-asset-menu
{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 8px;
  border-radius: 18px;
  background: #1a1f2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  max-height: 280px;
  overflow-y: auto;
}

.swap-asset-option
{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.swap-asset-option:hover
{
  background: rgba(255, 255, 255, 0.06);
}

.swap-asset-option-left
{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.swap-asset-option-logo
{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.swap-asset-option-text
{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swap-asset-option-symbol
{
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.swap-asset-option-name
{
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.swap-asset-option-right
{
  font-size: 12px;
  font-weight: 700;
  color: #d1d5db;
  white-space: nowrap;
  flex: 0 0 auto;
}

.swap-flip-row
{
  display: flex;
  justify-content: center;
  margin: -4px 0;
}

.swap-flip-btn
{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #1f2633;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
}

.swap-amount-row
{
  margin-top: 2px;
}

.swap-amount-input
{
  height: 44px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.swap-max-btn
{
  height: 44px;
  font-size: 12px;
  padding: 0 12px;
}

.swap-output-preview
{
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.swap-output-value
{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: #f5f5f5;
  word-break: break-word;
}

@media (min-width: 900px)
{
  .swap-card,
  .swap-card-pro
  {
    padding: 18px;
  }

  .swap-asset-trigger
  {
    min-height: 66px;
  }

  .swap-asset-trigger-logo
  {
    width: 36px;
    height: 36px;
  }

  .swap-asset-trigger-symbol
  {
    font-size: 16px;
  }
}


/* =============== SWAP TOKEN PRICES =============== */
.swap-token-price
{
  font-size: 11px;
  color: #22c55e;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}

.swap-asset-trigger-meta
{
  gap: 2px;
}
