/* =========================================================
   NATO Wallet — Premium Full Page UI (Glass + Neon)
   - Full-screen web app
   - One property per line
   - Smooth animations + accessibility
   ========================================================= */

/* =============== 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: 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: 12px;
}

.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-select
{
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.75), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(148, 163, 184, 0.20);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  padding: 9px 36px 9px 12px;
  font-size: 13px;
  outline: none;
  box-shadow: var(--glow);
  cursor: pointer;
  position: relative;
}

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

.network-select
{
  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;
}

/* =============== 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-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;
  gap: 10px;
}

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

.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: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.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;
}

.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(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.scan-card
{
  width: min(520px, 100%);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.70));
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.scan-title
{
  font-size: 14px;
  font-weight: 900;
}

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

.scanner-stage
{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--glow);
}

#scanVideo
{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.scan-overlay
{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.scan-frame
{
  width: min(320px, 80%);
  height: 220px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.20);
  box-shadow: var(--glow-strong);
  position: relative;
}

.corner
{
  width: 18px;
  height: 18px;
  position: absolute;
  border-color: rgba(56, 189, 248, 0.90);
  border-style: solid;
}

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

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

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

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

.scan-hint
{
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.88);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: var(--glow);
}

/* =============== 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-code
{
  padding: 0px 16px 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.security-code-input
{
  width: 44px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  background: rgba(2, 6, 23, 0.40);
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  outline: none;
  box-shadow: var(--glow);
}

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

.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-code-input input.input-error
{
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.25);
}

