/* Deposit page — shell aligned with withdraw (loaded by deposit.html) */
.dep-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.dep-shell {
  border: 1px solid var(--ne-card-border);
  border-radius: 12px;
  background: var(--ne-card-bg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .dep-shell {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.dep-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--ne-border);
  background: linear-gradient(135deg, var(--ne-coin-hover) 0%, var(--ne-card-bg) 100%);
}

.dep-top-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.dep-top-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ne-brand);
  color: #fff;
}

.dep-top-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ne-text);
  letter-spacing: -0.02em;
}

.dep-top-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ne-muted);
  max-width: 460px;
}

.dep-top-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.dep-top-stat {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
}

.dep-top-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ne-muted);
  margin-bottom: 4px;
}

.dep-top-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ne-brand);
}

.dep-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 420px;
}

.dep-nav {
  padding: 20px 0;
  border-right: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
  display: flex;
  flex-direction: column;
}

.dep-nav-label {
  margin: 0 0 10px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ne-muted);
}

.dep-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 420px;
  padding: 0 8px;
}

.dep-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
  position: relative;
}

.dep-nav-item:hover {
  background: var(--ne-coin-hover);
}

.dep-nav-item-active {
  background: var(--ne-coin-hover);
}

.dep-nav-item-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ne-brand);
}

.dep-nav-state {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ne-border-strong);
}

.dep-nav-item-active .dep-nav-state {
  background: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.25);
}

.dep-nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dep-nav-icon img,
.dep-nav-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dep-nav-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dep-nav-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dep-nav-sym {
  font-size: 11px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.03em;
}

.dep-nav-item-usdt .dep-nav-sym {
  color: #c9940a;
}

[data-theme="dark"] .dep-nav-item-usdt .dep-nav-sym {
  color: #f0c040;
}

.dep-panel {
  padding: 24px 28px 28px;
}

.dep-panel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ne-border);
}

.dep-panel-coin {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dep-coin-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ne-input-bg);
  border: 2px solid var(--ne-border);
  padding: 6px;
}

.dep-coin-badge img,
.dep-coin-badge svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dep-coin-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ne-text);
  line-height: 1.2;
}

.dep-coin-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-muted);
  letter-spacing: 0.02em;
}

.dep-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.dep-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dep-pill-auto {
  color: var(--ne-green);
  background: rgba(46, 139, 46, 0.1);
  border: 1px solid rgba(46, 139, 46, 0.25);
}

.dep-pill-auto .dep-pill-dot {
  background: var(--ne-green);
}

.dep-pill-tx {
  color: #c9940a;
  background: rgba(201, 148, 10, 0.12);
  border: 1px solid rgba(201, 148, 10, 0.25);
}

.dep-pill-tx .dep-pill-dot {
  background: #c9940a;
}

[data-theme="dark"] .dep-pill-tx {
  color: #f0c040;
  border-color: rgba(240, 192, 64, 0.2);
}

[data-theme="dark"] .dep-pill-tx .dep-pill-dot {
  background: #f0c040;
}

.dep-deposit-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.dep-qr-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  background: #fff;
  text-align: center;
}

.dep-qr {
  display: block;
  border-radius: 4px;
}

.dep-qr-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--ne-muted);
  font-weight: 600;
}

.dep-address-block {
  display: flex;
  flex-direction: column;
}

.dep-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ne-text);
  letter-spacing: 0.01em;
}

.dep-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-input-bg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 10px;
}

.dep-input-wrap:focus-within {
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.15);
}

.dep-input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  color: var(--ne-muted);
  background: var(--ne-coin-hover);
  border-right: 1px solid var(--ne-border);
}

.dep-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: none;
  background: transparent;
  color: var(--ne-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  outline: none;
}

.dep-input-standalone {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 4px;
  border: 1px solid var(--ne-border);
  border-radius: 8px;
  background: var(--ne-input-bg);
}

.dep-input-standalone:focus {
  outline: none;
  border-color: var(--ne-brand);
  box-shadow: 0 0 0 3px rgba(58, 139, 231, 0.15);
}

.dep-copy-btn {
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 14px;
}

.dep-copy-msg {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ne-green);
}

.dep-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.dep-meta-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  background: var(--ne-input-bg);
}

.dep-meta-card-wide {
  grid-column: 1 / -1;
}

.dep-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ne-muted);
  margin-bottom: 4px;
}

.dep-meta-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ne-text);
}

.dep-meta-contract {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ne-text);
  word-break: break-all;
  line-height: 1.45;
}

.dep-tx-verify {
  margin-bottom: 20px;
  padding: 18px 16px;
  border-radius: 8px;
  border: 1px solid var(--ne-brand);
  background: var(--ne-coin-hover);
}

.dep-tx-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ne-text);
}

.dep-tx-desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ne-muted);
}

.dep-tx-form {
  display: flex;
  flex-direction: column;
}

.dep-tx-amt-label {
  margin-top: 10px;
}

.dep-verify-btn {
  margin-top: 14px;
  width: 100%;
  padding: 11px 18px;
  font-size: 14px;
}

.dep-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.dep-feedback-ok,
.dep-tx-msg-ok {
  color: var(--ne-green);
  background: rgba(46, 139, 46, 0.1);
  border: 1px solid rgba(46, 139, 46, 0.2);
}

.dep-feedback-error,
.dep-tx-msg-error {
  color: var(--ne-error);
  background: rgba(176, 0, 32, 0.06);
  border: 1px solid rgba(176, 0, 32, 0.15);
}

[data-theme="dark"] .dep-feedback-error,
[data-theme="dark"] .dep-tx-msg-error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.2);
}

.dep-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ne-coin-hover);
  border: 1px solid var(--ne-border);
}

.dep-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ne-brand);
}

.dep-steps {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ne-muted);
}

.dep-steps li {
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .dep-top {
    flex-direction: column;
    padding: 20px;
  }

  .dep-top-aside {
    width: 100%;
    flex-direction: row;
  }

  .dep-top-stat {
    flex: 1;
  }

  .dep-body {
    grid-template-columns: 1fr;
  }

  .dep-nav {
    border-right: none;
    border-bottom: 1px solid var(--ne-border);
    padding: 16px 0;
  }

  .dep-nav-list {
    max-height: 220px;
  }

  .dep-panel {
    padding: 20px;
  }

  .dep-panel-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dep-deposit-grid {
    grid-template-columns: 1fr;
  }

  .dep-qr-card {
    justify-self: center;
  }

  .dep-copy-btn {
    width: 100%;
  }

  .dep-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dep-nav-list {
    max-height: 200px;
  }

  .dep-top-aside {
    flex-direction: column;
  }
}
