/* ============================================
   LT Shield Wallet - Styles
   Navy + Gold Premium Dark Theme
   ============================================ */

/* ---- Payment Gate ---- */
.gate-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--navy-darkest);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.gate-card {
  background: var(--navy-darker);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.gate-logo {
  margin-bottom: 16px;
}

.gate-cover-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.gate-card h1 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.gate-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.gate-price {
  margin-bottom: 20px;
}

.gate-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.gate-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.gate-features {
  text-align: left;
  margin-bottom: 24px;
}

.gate-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 0;
}

.gate-feature span {
  font-size: 1rem;
  flex-shrink: 0;
}

.gate-btn {
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-darkest);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}

.gate-restore {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.gate-restore:hover {
  background: var(--gold-bg);
}

.gate-disclaimer {
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1.4;
  margin: 16px 0 0;
}

/* ---- Wallet App Layout ---- */
.wallet-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy-darkest);
}

.wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--navy-darker);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.wallet-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.wallet-brand-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

.wallet-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.header-btn:hover {
  background: rgba(255,255,255,0.06);
}

.privacy-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.privacy-dot.active {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201,168,76,0.5);
}

.wallet-main {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.wallet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.wallet-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.wallet-footer a:hover {
  color: var(--gold);
}

/* ---- Wallet Views ---- */
.wallet-view {
  animation: fadeIn 0.2s ease;
}

/* ---- Setup Card ---- */
.setup-card {
  text-align: center;
  padding: 32px 16px;
}

.setup-card h2 {
  color: var(--text-primary);
  margin: 0 0 8px;
}

.setup-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

/* ---- Seed Card ---- */
.seed-card {
  padding: 16px;
}

.seed-card h2 {
  color: var(--text-primary);
  margin: 0 0 8px;
}

.seed-warning {
  color: var(--warning);
  font-size: 0.8rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.seed-word {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
}

.seed-num {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.seed-confirm-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 16px;
  cursor: pointer;
}

.seed-confirm-label input {
  accent-color: var(--gold);
}

/* ---- Seed Textarea ---- */
.seed-textarea {
  width: 100%;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}

/* ---- Balance Card ---- */
.balance-card {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}

.balance-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.balance-amount {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.balance-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.copy-sm {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.copy-sm:hover {
  background: rgba(201,168,76,0.15);
}

/* ---- Privacy Card ---- */
.privacy-card {
  background: var(--navy-darker);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.privacy-info h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  margin: 0 0 4px;
}

.privacy-info p {
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0;
}

.privacy-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.toggle {
  width: 44px;
  height: 22px;
  background: var(--navy-mid);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle.active {
  background: rgba(201,168,76,0.3);
}

.toggle-knob {
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s, background 0.2s;
}

.toggle.active .toggle-knob {
  background: var(--gold);
}

.toggle-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---- Token Section ---- */
.token-section {
  margin-top: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0;
}

.btn-sm {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-sm:hover {
  background: rgba(255,255,255,0.04);
}

.token-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sol-icon {
  background: linear-gradient(135deg, #9945FF, #14F195);
  color: white;
}

.ltrst-icon {
  background: var(--navy-dark);
  border: 1px solid var(--gold-border);
}

.token-info {
  flex: 1;
}

.token-name {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.token-symbol {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.token-balance-col {
  text-align: right;
}

.token-amount {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.token-value {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ---- Action Bar ---- */
.action-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.action-btn-wallet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 12px 4px;
  color: var(--text-primary);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.15s;
}

.action-btn-wallet:hover {
  background: var(--navy-mid);
}

.action-icon {
  font-size: 1.2rem;
}

/* ---- Buttons ---- */
.btn-gold {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-darkest);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 8px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.04);
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.input {
  width: 100%;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  padding: 10px;
  box-sizing: border-box;
}

.input:focus {
  outline: none;
  border-color: var(--gold);
}

select.input {
  appearance: none;
  cursor: pointer;
}

/* ---- Import Form ---- */
.import-form {
  padding: 16px;
}

.import-form h3 {
  color: var(--text-primary);
  margin: 0 0 8px;
}

.import-form p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0 0 12px;
}

/* ---- Receive Address ---- */
.receive-address {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  word-break: break-all;
  padding: 12px;
  background: var(--navy-dark);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  margin: 12px 0;
}

/* ---- TX Section ---- */
.tx-section {
  margin-top: 12px;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tx-dir {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tx-dir.send {
  background: rgba(231,76,60,0.15);
  color: var(--error);
}

.tx-dir.receive {
  background: rgba(46,204,113,0.15);
  color: var(--success);
}

.tx-details {
  flex: 1;
  min-width: 0;
}

.tx-title {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.tx-meta {
  color: var(--text-muted);
  font-size: 0.65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-amount {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.tx-amount.send { color: var(--error); }
.tx-amount.receive { color: var(--success); }

.tx-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 24px 0;
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--navy-darker);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 380px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-card h3 {
  color: var(--text-primary);
  margin: 0 0 8px;
}

.modal-note {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.modal-actions {
  margin-top: 16px;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-dark);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  z-index: 500;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 320px;
  text-align: center;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Animation ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --navy-darkest: #080f1e;
  --navy-darker: #0c1a2e;
  --navy-dark: #112240;
  --navy-mid: #1a3358;
  --navy-light: #233d6b;
  --gold: #c9a84c;
  --gold-light: #e0c97a;
  --gold-dim: #8a7333;
  --gold-bg: rgba(201, 168, 76, 0.08);
  --gold-border: rgba(201, 168, 76, 0.25);
  --text-primary: #e8e6e3;
  --text-secondary: #8892a4;
  --text-muted: #5a6577;
  --success: #2ecc71;
  --error: #e74c3c;
  --warning: #f39c12;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-darkest);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(17,34,64,0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout ---- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px;
}

.view {
  display: none;
  animation: fadeIn 0.35s ease;
}
.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Welcome Screen ---- */
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 20px;
}

.shield-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.3));
}

.shield-logo svg {
  width: 100%;
  height: 100%;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.5;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-darkest);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-border);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(136,146,164,0.2);
}
.btn-ghost:hover {
  border-color: rgba(136,146,164,0.4);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(231,76,60,0.15);
  color: var(--error);
  border: 1px solid rgba(231,76,60,0.3);
}
.btn-danger:hover {
  background: rgba(231,76,60,0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-row .btn {
  flex: 1;
}

/* ---- Cards ---- */
.card {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Create / Import Screens ---- */
.setup-screen {
  padding-top: 60px;
  padding-bottom: 40px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  margin-bottom: 32px;
  transition: color var(--transition);
}
.back-btn:hover {
  color: var(--gold);
}

.setup-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.setup-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Seed / Key display box */
.key-display {
  background: var(--navy-darker);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.key-display-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.key-display-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  word-break: break-all;
  color: var(--text-primary);
  user-select: all;
}

.key-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.key-copy-btn:hover {
  background: rgba(201,168,76,0.2);
}

/* Warning box */
.warning-box {
  display: flex;
  gap: 12px;
  background: rgba(243,156,18,0.08);
  border: 1px solid rgba(243,156,18,0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.warning-box .warn-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.warning-box p {
  font-size: 0.85rem;
  color: var(--warning);
  line-height: 1.5;
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}

.checkbox-row input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--navy-darkest);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-row label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* ---- Input Fields ---- */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--navy-darker);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}

.input-field:focus {
  border-color: var(--gold-border);
}

.input-field::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

textarea.input-field {
  resize: vertical;
  min-height: 100px;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238892a4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  font-family: var(--font-sans);
}

/* ---- PIN Screen ---- */
.pin-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 20px;
}

.pin-dots {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  background: transparent;
  transition: all var(--transition);
}

.pin-dot.filled {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  margin-top: 16px;
}

.pin-key {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-key:hover {
  background: var(--navy-mid);
  border-color: var(--gold-border);
}

.pin-key:active {
  transform: scale(0.93);
}

.pin-key.pin-delete {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pin-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 16px;
  min-height: 20px;
}

/* ---- Dashboard Header ---- */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-logo {
  width: 36px;
  height: 36px;
}

.dash-logo svg {
  width: 100%;
  height: 100%;
}

.dash-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.dash-address {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.dash-address:hover {
  background: var(--gold-bg);
  color: var(--gold);
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Privacy Shield Toggle ---- */
.shield-toggle-card {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shield-toggle-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shield-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.shield-toggle-icon.on {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(201,168,76,0.2);
}

.shield-toggle-icon.off {
  background: rgba(136,146,164,0.1);
  color: var(--text-muted);
}

.shield-status-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.shield-status-label.on {
  color: var(--gold);
}
.shield-status-label.off {
  color: var(--text-muted);
}

.shield-status-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--navy-mid);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(201,168,76,0.25);
  border-color: var(--gold-border);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

/* ---- Balance Section ---- */
.balance-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(201,168,76,0.03), transparent 60%);
  pointer-events: none;
}

.balance-main {
  position: relative;
}

.balance-sol {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.balance-sol .currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 6px;
}

.balance-usd {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.balance-ltrst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--gold);
}

.balance-refresh {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
  padding: 6px;
  border-radius: var(--radius-sm);
}
.balance-refresh:hover {
  color: var(--gold);
  background: var(--gold-bg);
}
.balance-refresh.spinning svg {
  animation: spin 1s linear infinite;
}

/* ---- Token List ---- */
.token-list {
  list-style: none;
}

.token-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.token-item:last-child {
  border-bottom: none;
}

.token-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.token-icon.ltrst {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.token-icon.sol {
  background: rgba(153,69,255,0.15);
  color: #9945FF;
}

.token-info {
  flex: 1;
  min-width: 0;
}

.token-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.token-mint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-balance-col {
  text-align: right;
  flex-shrink: 0;
}

.token-balance-amount {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.token-balance-usd {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.token-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Action Buttons ---- */
.action-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--navy-dark);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gold);
  font-family: var(--font-sans);
}

.action-btn:hover {
  background: var(--gold-bg);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,168,76,0.15);
}

.action-btn:active {
  transform: scale(0.96);
}

.action-btn-icon {
  font-size: 1.4rem;
}

.action-btn-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---- Modal Overlay ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,15,30,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  justify-content: center;
  align-items: flex-end;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 40px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover {
  color: var(--text-primary);
}

/* ---- Receive Screen ---- */
.receive-address {
  background: var(--navy-darker);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.receive-address-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  line-height: 1.7;
  color: var(--text-primary);
  user-select: all;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qr-placeholder canvas {
  width: 100%;
  height: 100%;
}

/* ---- Send Screen ---- */
.shield-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--gold);
  line-height: 1.5;
}

.shield-notice .notice-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* TX Result */
.tx-result {
  text-align: center;
  padding: 20px 0;
}

.tx-result .result-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.tx-result .result-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tx-result .result-hash {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.6;
}

.tx-result .result-hash a {
  color: var(--gold);
  text-decoration: none;
}
.tx-result .result-hash a:hover {
  text-decoration: underline;
}

/* ---- Loader ---- */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,15,30,0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.active {
  display: flex;
}

.loading-overlay .loader {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-overlay .loading-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 400px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s;
  box-shadow: var(--shadow-lg);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.toast.success {
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.3);
  color: var(--success);
}

.toast.error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
  color: var(--error);
}

.toast.info {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 400px) {
  .app-container {
    padding: 0 12px;
  }

  .balance-sol {
    font-size: 2rem;
  }

  .pin-keypad {
    grid-template-columns: repeat(3, 64px);
    gap: 8px;
  }

  .pin-key {
    width: 64px;
    height: 50px;
    font-size: 1.2rem;
  }

  .modal-content {
    padding: 24px 16px 32px;
  }
}

@media (min-width: 481px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: var(--radius-xl);
    max-height: 80vh;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--navy-mid);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy-light);
}

/* ============================================
   DIGITAL IDENTITY SECTION
   ============================================ */

.identity-section {
  margin-top: 16px;
}

.identity-setup-card {
  background: rgba(201, 168, 76, 0.04);
  border: 1px dashed rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}

.identity-setup-inner {
  text-align: center;
}

.identity-setup-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.identity-setup-card h4 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 15px;
}

.identity-setup-card p {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.identity-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}

.identity-features-list li {
  color: #9ca3af;
  font-size: 11px;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.identity-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c9a84c;
  font-size: 11px;
}

.identity-card-display {
  background: linear-gradient(135deg, #0c1a2e 0%, #162a4a 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.identity-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.identity-avatar {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.3);
}

.identity-card-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.identity-card-level {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.identity-card-hash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 10px;
}

.identity-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.identity-badge-tag {
  background: rgba(201, 168, 76, 0.12);
  color: #c9a84c;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
  text-transform: capitalize;
}

.identity-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.identity-card-actions .btn-sm {
  flex: 1;
  min-width: 80px;
}

.btn-sm-danger {
  color: #ff4444 !important;
  border-color: rgba(255, 68, 68, 0.3) !important;
}

.btn-sm-danger:hover {
  background: rgba(255, 68, 68, 0.1) !important;
}

.identity-privacy-settings {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.identity-privacy-settings h5 {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.identity-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 12px;
  padding: 4px 0;
  cursor: pointer;
}

.identity-toggle-row input[type="checkbox"] {
  accent-color: #c9a84c;
  width: 14px;
  height: 14px;
}

.identity-camera-preview {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.stealth-address-display:hover {
  background: rgba(201, 168, 76, 0.15) !important;
}

.tx-sig {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #4b5563;
  margin-top: 2px;
}
