/* ═══════════════════════════════════════════════════════════════
   WALLET WIDGET
═══════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────────── */
.wallet-modal__overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center;
  justify-content: center;
  animation: walletFadeIn 0.2s ease;
}
@keyframes walletFadeIn { from { opacity: 0 } to { opacity: 1 } }


/* ── Modal shell ─────────────────────────────────────────────── */
.wallet-modal {
  width: 100%; max-width: 480px;
  height: 85vh; max-height: 85vh;
  background: #0f0f0f;
  border-radius: 20px ;
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--ff-body, 'DM Sans', sans-serif);
  animation: walletSlideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes walletSlideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }

/* ── Header ──────────────────────────────────────────────────── */
.wallet-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wallet-modal__title {
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.02em;
}
.wallet-modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.06); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.2s;
}
.wallet-modal__close:hover { background: rgba(255,255,255,0.12); }

/* ── Balance card ────────────────────────────────────────────── */
.wallet-modal__balance-card {
  margin: 16px; padding: 20px; border-radius: 20px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e 50%, #0f3460);
  border: 1px solid rgba(255,255,255,0.06);
}
.wallet-modal__balance-label {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px;
}
.wallet-modal__balance-amount {
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-size: 32px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.wallet-modal__balance-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.wallet-modal__balance-stat { flex: 1; }
.wallet-modal__balance-stat-val { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.wallet-modal__balance-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.4); }
.wallet-modal__balance-div { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }

.wallet-modal__withdraw-btn {
  width: 100%; padding: 12px; border-radius: 14px;
  background: var(--c-accent, #b8f53d); color: #000;
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-weight: 700; font-size: 15px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter 0.2s;
}
.wallet-modal__withdraw-btn:hover { filter: brightness(1.1); }
.wallet-modal__withdraw-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.wallet-modal__withdraw-info {
  text-align: center; font-size: 11px; color: rgba(255,255,255,0.35);
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.wallet-modal__withdraw-info i { font-size: 10px; }

/* ── Tabs ────────────────────────────────────────────────────── */
.wallet-modal__tabs {
  display: flex; padding: 0 16px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wallet-modal__tab {
  flex: 1; padding: 12px;
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.5); background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; font-family: inherit; transition: color 0.2s, border-color 0.2s;
}
.wallet-modal__tab.is-active { color: #fff; border-bottom-color: var(--c-accent, #b8f53d); }

/* ── Scrollable content ──────────────────────────────────────── */
.wallet-modal__content {
  flex: 1; overflow-y: auto; scrollbar-width: none;
}
.wallet-modal__content::-webkit-scrollbar { display: none; }

/* ── Empty / error states ────────────────────────────────────── */
.wallet-modal__empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 60px 20px; color: rgba(255,255,255,0.25); text-align: center;
}
.wallet-modal__empty i { font-size: 36px; }
.wallet-modal__empty p { font-size: 13px; }

/* ── Skeleton ────────────────────────────────────────────────── */
.wallet-modal__skeleton { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.wallet-skel-card {
  height: 160px; border-radius: 20px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}
.wallet-skel-line {
  height: 14px; border-radius: 8px; background: rgba(255,255,255,0.06);
  animation: skelShimmer 1.4s infinite;
}
.wallet-skel-line.short { width: 55%; }
@keyframes skelShimmer {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* ═══════════════════════════════════════════════════════════════
   TRANSACTIONS TAB
═══════════════════════════════════════════════════════════════ */
.wallet-modal__tx-list { display: flex; flex-direction: column; }

.wallet-modal__tx {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.wallet-modal__tx:hover { background: rgba(255,255,255,0.02); }
.wallet-modal__tx--clickable:active { background: rgba(255,255,255,0.04); }

/* Money transaction */
.wallet-modal__tx-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.wallet-modal__tx-icon.is-in  { background: rgba(34,197,94,0.1);  color: #8ab633; }
.wallet-modal__tx-icon.is-out { background: rgba(239,68,68,0.1);  color: #ef4444; }

.wallet-modal__tx-info { flex: 1; min-width: 0; }
.wallet-modal__tx-name { font-size: 14px; font-weight: 500; color: #fff; }
.wallet-modal__tx-item {
  font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet-modal__tx-date { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }

.wallet-modal__tx-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0;
}
.wallet-modal__tx-amount { font-size: 14px; font-weight: 700; }
.wallet-modal__tx-amount.is-in  { color: #8ab633; }
.wallet-modal__tx-amount.is-out { color: #ef4444; }

.wallet-modal__tx-badge { font-size: 10px; padding: 2px 8px; border-radius: 99px; }
.wallet-modal__tx-badge--pending   { background: rgba(245,166,35,0.15);  color: #f5a623; }
.wallet-modal__tx-badge--failed    { background: rgba(239,68,68,0.15);   color: #ef4444; }
.wallet-modal__tx-badge--cancelled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }

/* Order transaction */
.wallet-modal__tx-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,0.3);
}
.wallet-modal__tx-thumb img { width: 100%; height: 100%; object-fit: cover; }

.wallet-modal__tx--order {
  border-left: 3px solid transparent; transition: border-color 0.2s;
}
.wallet-modal__tx--order:hover { border-left-color: var(--c-accent, #b8f53d); }

.wallet-modal__order-badge {
  padding: 3px 10px; border-radius: 99px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}

.wallet-modal__tx-action-cta {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--c-accent, #b8f53d);
  background: rgba(184,245,61,0.08);
  border: 1px solid rgba(184,245,61,0.15);
  margin-top: 5px; width: fit-content;
}
.wallet-modal__tx-action-cta--buyer {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

.wallet-modal__action-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent, #b8f53d);
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ═══════════════════════════════════════════════════════════════
   EARNINGS TAB
═══════════════════════════════════════════════════════════════ */
.wallet-modal__earnings-list {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
}
.wallet-modal__earning {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
}
.wallet-modal__earning-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--c-accent, #b8f53d);
}
.wallet-modal__earning-info { display: flex; flex-direction: column; gap: 2px; }
.wallet-modal__earning-info span { font-size: 12px; color: rgba(255,255,255,0.4); }
.wallet-modal__earning-info strong { font-size: 16px; font-weight: 700; color: #fff; }

.wallet-modal__info-banner {
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5;
}
.wallet-modal__info-banner i { color: var(--c-accent, #b8f53d); margin-top: 2px; flex-shrink: 0; }
.wallet-modal__info-banner strong { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   BANK TAB
═══════════════════════════════════════════════════════════════ */
.wallet-modal__bank-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; }

.wallet-modal__bank-card {
  position: relative;
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
}
.wallet-modal__bank-card-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--c-accent, #b8f53d);
}


.wallet-modal__bank-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 82, 82, 0.4);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 14px;
}

.wallet-modal__bank-delete:hover {
  background: rgba(255, 82, 82, 0.1);
  color: rgba(255, 82, 82, 0.9);
}

.wallet-modal__bank-card-info { flex: 1; }
.wallet-modal__bank-card-name { font-size: 14px; font-weight: 600; color: #fff; }
.wallet-modal__bank-card-acct { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.wallet-modal__bank-card-num  { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; letter-spacing: 1px; }

.wallet-modal__add-bank {
  width: 100%; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.wallet-modal__add-bank:hover { border-color: rgba(255,255,255,0.2); color: #fff; }

.wallet-modal__bank-hint {
     display: flex;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
    padding: 4px 0;
    flex-direction: column;
}
.wallet-modal__bank-hint i { color: var(--c-accent, #b8f53d); margin-top: 2px; }

/* ── Add bank form ───────────────────────────────────────────── */
.wallet-modal__form-header {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px;
}
.wallet-modal__back {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.06); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* Shared input */
.wallet-modal__input {
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-family: inherit; font-size: 15px;
  outline: none; width: 100%; transition: border-color 0.2s;
}
.wallet-modal__input:focus { border-color: var(--c-accent, #b8f53d); }
.wallet-modal__input--readonly {
  opacity: 0.5; cursor: default; user-select: none;
  border-color: rgba(255,255,255,0.04);
}
.wallet-modal__input--readonly:focus { border-color: rgba(255,255,255,0.04); }

.wallet-modal__select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer;
}
.wallet-modal__select option { background: #1a1a1a; color: #fff; }

.wallet-modal__field { display: flex; flex-direction: column; gap: 8px; }
.wallet-modal__field label {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Bank searchable dropdown */
.wallet-modal__searchable-select { display: flex; flex-direction: column; }

.wallet-modal__search-results {
  max-height: 220px; overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: #161616;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.wallet-modal__search-results:empty { display: none; }

.wallet-modal__bank-option--search {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.wallet-modal__bank-option--search:last-child { border-bottom: none; }
.wallet-modal__bank-option--search:hover { background: rgba(255,255,255,0.05); }
.wallet-modal__bank-option--search.is-selected {
  background: rgba(184,245,61,0.08);
}
.wallet-modal__bank-option-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--c-accent, #b8f53d);
}
.wallet-modal__bank-option-name { font-size: 14px; font-weight: 500; color: #fff; flex: 1; }

.wallet-modal__search-loading,
.wallet-modal__search-empty {
  padding: 16px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.35);
}

.wallet-modal__selected-bank {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; margin-top: 8px;
  background: rgba(184,245,61,0.06); border: 1px solid rgba(184,245,61,0.15);
  font-size: 13px; font-weight: 600; color: var(--c-accent, #b8f53d);
}

/* Account name box */
.wallet-modal__account-name-box {
  min-height: 46px; padding: 12px 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; display: flex; align-items: center;
}
.wallet-modal__resolve-state {
  font-size: 13px; color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 8px;
}
.wallet-modal__resolve-state.is-success { color: var(--c-accent, #b8f53d); font-weight: 600; }
.wallet-modal__resolve-state.is-error   { color: #ef4444; }
.wallet-modal__resolve-state i { flex-shrink: 0; }

.wallet-modal__hint-small {
  font-size: 11px; color: rgba(255,255,255,0.3);
  display: flex; align-items: flex-start; gap: 5px; line-height: 1.5;
}
.wallet-modal__hint-small i { color: var(--c-accent, #b8f53d); margin-top: 1px; }

.wallet-modal__form-error {
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  border-radius: 10px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  font-size: 12px; color: #ef4444; line-height: 1.5;
}

/* ── Withdraw selection (saved accounts) ─────────────────────── */
.wallet-modal__bank-option {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.15s;
}
.wallet-modal__bank-option:hover    { border-color: rgba(255,255,255,0.15); }
.wallet-modal__bank-option.is-selected { border-color: var(--c-accent, #b8f53d); background: rgba(184,245,61,0.04); }
.wallet-modal__bank-option-num { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.wallet-modal__no-bank {
  display: flex; align-items: center; gap: 8px; padding: 14px;
  border-radius: 12px;
  background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.15);
  font-size: 12px; color: #f5a623;
}

/* ═══════════════════════════════════════════════════════════════
   WITHDRAW FLOW
═══════════════════════════════════════════════════════════════ */
.wallet-modal__withdraw-container { display: flex; flex-direction: column; height: 100%; }
.wallet-modal__withdraw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff; font-weight: 600; font-size: 15px;
}
.wallet-modal__withdraw-body {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
}

.wallet-modal__withdraw-balance {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.04);
}
.wallet-modal__withdraw-balance span  { font-size: 13px; color: rgba(255,255,255,0.5); }
.wallet-modal__withdraw-balance strong{ font-size: 18px; font-weight: 700; color: #fff; }

.wallet-modal__amount-wrap { display: flex; align-items: stretch; }
.wallet-modal__currency {
  padding: 14px 16px; border-radius: 12px 0 0 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-right: none; color: #fff; font-size: 16px; font-weight: 600;
}
.wallet-modal__input--amount { border-radius: 0 12px 12px 0; flex: 1; }

.wallet-modal__quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-modal__quick-amount {
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.wallet-modal__quick-amount:hover { background: rgba(255,255,255,0.1); }
.wallet-modal__error { font-size: 11px; color: #ef4444; }

/* Confirm screen */
.wallet-modal__confirm {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.wallet-modal__confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--c-accent, #b8f53d);
}
.wallet-modal__confirm-amount {
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.04em;
}
.wallet-modal__confirm-details {
  width: 100%; padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column; gap: 10px;
}
.wallet-modal__confirm-row {
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5);
}
.wallet-modal__confirm-row.is-total {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px;
  color: #fff; font-weight: 600; font-size: 14px;
}
.wallet-modal__confirm-row.is-total span:last-child { color: var(--c-accent, #b8f53d); }

/* Success */
.wallet-modal__withdraw-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 40px 20px; text-align: center; height: 100%;
}
.wallet-modal__success-icon { font-size: 64px; color: var(--c-accent, #b8f53d); }
.wallet-modal__withdraw-success h3 { font-size: 20px; font-weight: 700; color: #fff; }
.wallet-modal__withdraw-success p  { font-size: 16px; color: rgba(255,255,255,0.8); }
.wallet-modal__success-note { font-size: 13px; color: rgba(255,255,255,0.4); }

/* Shared button */
.wallet-modal__btn {
  padding: 16px; border-radius: 14px; width: 100%;
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: filter 0.2s, background 0.2s;
}
.wallet-modal__btn--primary { background: var(--c-accent, #b8f53d); color: #000; }
.wallet-modal__btn--primary:hover { filter: brightness(1.08); }
.wallet-modal__btn--primary:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.wallet-modal__btn--ghost { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); }
.wallet-modal__btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ═══════════════════════════════════════════════════════════════
   PIN SCREEN
═══════════════════════════════════════════════════════════════ */
.wallet-modal__pin-container {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px; text-align: center;
}
.wallet-modal__pin-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px;
  background: var(--c-surface2, rgba(255,255,255,0.06));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--c-accent, #b8f53d);
  border: 1px solid rgba(255,255,255,0.08);
}
.wallet-modal__pin-icon--locked { color: #ef4444; background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); }
.wallet-modal__pin-title {
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 8px; letter-spacing: -0.02em;
}
.wallet-modal__pin-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin: 0 0 24px; line-height: 1.5; max-width: 280px;
}

.wallet-modal__pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.wallet-modal__pin-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); background: transparent;
  transition: all 0.2s;
}
.wallet-modal__pin-dot.is-filled { background: var(--c-accent, #b8f53d); border-color: var(--c-accent, #b8f53d); }

.wallet-modal__pin-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.wallet-modal__pin-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; max-width: 260px; width: 100%;
}
.wallet-modal__pin-key {
  height: 52px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05); color: #fff;
  font-family: var(--ff-display, 'Syne', sans-serif);
  font-size: 20px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.wallet-modal__pin-key:active { background: rgba(255,255,255,0.1); transform: scale(0.96); }
.wallet-modal__pin-key--empty { background: transparent; border: none; cursor: default; pointer-events: none; }

.wallet-modal__pin-error {
  font-size: 12px; color: #ef4444;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.1);
  margin-bottom: 16px; max-width: 260px; width: 100%;
}
.wallet-modal__pin-loading {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 0; font-size: 13px; color: rgba(255,255,255,0.4);
}
.wallet-modal__pin-loading i { color: var(--c-accent, #b8f53d); }

/* ═══════════════════════════════════════════════════════════════
   ORDER DETAIL SHEET  (ods__)
═══════════════════════════════════════════════════════════════ */
.ods-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: odsBgIn 0.2s ease both;
}
@keyframes odsBgIn { from{opacity:0} to{opacity:1} }

@media (min-width: 600px) {
  .ods-overlay { align-items: center; }
  .ods { border-radius: 20px !important; }
}

.ods {
  width: 100%; max-width: 480px; max-height: 88vh;
  background: #111; border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ods__handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
  margin: 12px auto 0; flex-shrink: 0;
}

.ods__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ods__title { font-size: 16px; font-weight: 700; color: #fff; }
.ods__close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.ods__close:hover { background: rgba(255,255,255,0.14); }

.ods__body {
  flex: 1; overflow-y: auto; padding: 20px;
  scrollbar-width: none;
  display: flex; flex-direction: column; gap: 14px;
}
.ods__body::-webkit-scrollbar { display: none; }

/* Product row */
.ods__product {
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.ods__product-thumb {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,0.3);
}
.ods__product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ods__product-info { flex: 1; min-width: 0; }
.ods__product-title  { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ods__product-price  { font-size: 16px; font-weight: 800; color: var(--c-accent, #b8f53d); }
.ods__product-date   { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 3px; }
.ods__status-badge {
  padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}

/* Party */
.ods__party {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.ods__party-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.06); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,0.3);
}
.ods__party-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ods__party-name { font-size: 14px; font-weight: 600; color: #fff; }
.ods__party-role  { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* Section title */
.ods__section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
}

/* Timeline */
.ods__timeline { display: flex; align-items: center; padding: 4px 0; }
.ods__timeline-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1;
}
.ods__timeline-step span {
  font-size: 10px; color: rgba(255,255,255,0.25); text-align: center; white-space: nowrap;
}
.ods__timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.ods__timeline-step.done .ods__timeline-dot,
.ods__timeline-step.current .ods__timeline-dot {
  background: var(--c-accent, #b8f53d); border-color: var(--c-accent, #b8f53d);
}
.ods__timeline-step.done span    { color: rgba(255,255,255,0.6); }
.ods__timeline-step.current span { color: var(--c-accent, #b8f53d); font-weight: 600; }
.ods__timeline-step.current .ods__timeline-dot { box-shadow: 0 0 0 4px rgba(184,245,61,0.2); }
.ods__timeline-line {
  flex: 1; height: 2px; background: rgba(255,255,255,0.08); margin-bottom: 18px;
}

/* Info cards */
.ods__info-card {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; display: flex; flex-direction: column; gap: 8px;
}
.ods__info-card--danger { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.ods__info-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; font-size: 13px;
}
.ods__info-row span     { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.ods__info-row strong   { color: #fff; text-align: right; font-weight: 500; }

/* Actions */
.ods__actions { display: flex; flex-direction: column; gap: 10px; }

.ods__action-btn {
  width: 100%; padding: 14px; border-radius: 13px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.ods__action-btn--primary   { background: var(--c-accent, #b8f53d); color: #080808; }
.ods__action-btn--primary:hover { filter: brightness(1.08); }
.ods__action-btn--secondary { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.ods__action-btn--secondary:hover { background: rgba(255,255,255,0.12); }
.ods__action-btn--danger    { background: rgba(239,68,68,0.08); color: #ef4444; border: 1px solid rgba(239,68,68,0.15); }
.ods__action-btn--danger:hover { background: rgba(239,68,68,0.14); }
.ods__action-btn--ghost     { background: transparent; color: rgba(255,255,255,0.4); }
.ods__action-btn--ghost:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); }
.ods__action-btn:disabled   { opacity: 0.4; cursor: not-allowed; filter: none; }

.ods__divider { height: 1px; background: rgba(255,255,255,0.06); }

/* Notice banners */
.ods__complete-notice, .ods__disputed-notice, .ods__dispatch-badge,
.ods__info-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 13px; line-height: 1.5;
}
.ods__complete-notice  { background: rgba(184,245,61,0.06); border: 1px solid rgba(184,245,61,0.12); color: rgba(255,255,255,0.7); }
.ods__complete-notice i { color: var(--c-accent, #b8f53d); font-size: 16px; margin-top: 1px; }
.ods__disputed-notice  { background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.15); color: #f5a623; }
.ods__dispatch-badge   { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); color: #60a5fa; font-weight: 600; align-items: center; }
.ods__dispatch-badge i { font-size: 18px; }
.ods__info-banner      { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.ods__info-banner i    { color: var(--c-accent, #b8f53d); flex-shrink: 0; margin-top: 1px; }
.ods__info-banner strong { color: rgba(255,255,255,0.85); font-weight: 500; }

/* Friendly dispatch prompt */
.ods__friendly-prompt {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: rgba(184,245,61,0.04); border: 1px solid rgba(184,245,61,0.1);
  border-radius: 14px;
}
.ods__friendly-prompt-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(184,245,61,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--c-accent, #b8f53d);
}
.ods__friendly-prompt-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.ods__friendly-prompt-sub   { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* Report form */
.ods__report-form { display: flex; flex-direction: column; gap: 12px; }
.ods__field       { display: flex; flex-direction: column; gap: 6px; }
.ods__field label {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ods__input, .ods__select, .ods__textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #fff; font-size: 14px; font-family: inherit;
  outline: none; width: 100%; transition: border-color 0.2s;
}
.ods__input:focus, .ods__select:focus, .ods__textarea:focus {
  border-color: var(--c-accent, #b8f53d);
}
.ods__select   { appearance: none; }
.ods__select option { background: #1a1a1a; color: #fff; }
.ods__textarea { resize: vertical; min-height: 70px; }
.ods__error    { font-size: 12px; color: #ef4444; font-weight: 500; min-height: 14px; }

/* Delivery code entry */
.ods__code-entry { display: flex; flex-direction: column; gap: 12px; }
.ods__code-entry-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6;
}
.ods__code-entry-label i { color: var(--c-accent, #b8f53d); margin-top: 2px; }

.ods__code-single-wrap { display: flex; flex-direction: column; gap: 10px; }
.ods__code-single {
  width: 100%; padding: 16px;
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px; color: #fff;
  font-family: var(--ff-display, 'Syne', monospace);
  font-size: 24px; font-weight: 700; letter-spacing: 8px;
  text-align: center; text-transform: uppercase;
  outline: none; transition: border-color 0.2s;
}
.ods__code-single:focus { border-color: var(--c-accent, #b8f53d); box-shadow: 0 0 0 3px rgba(184,245,61,0.08); }
.ods__code-single::placeholder { color: rgba(255,255,255,0.15); letter-spacing: 2px; font-size: 16px; }

.ods__code-verify-btn {
  width: 100%; padding: 14px; border-radius: 14px;
  background: var(--c-accent, #b8f53d); color: #080808;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter 0.2s;
}
.ods__code-verify-btn:hover { filter: brightness(1.05); }
.ods__code-verify-btn:disabled { opacity: 0.35; cursor: not-allowed; filter: none; }

.ods__code-warning {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.12);
  border-radius: 10px; font-size: 12px; color: #f5a623; line-height: 1.5;
}
.ods__code-warning i { margin-top: 1px; flex-shrink: 0; }

/* Buyer delivery code display */
.ods__delivery-code-display {
  padding: 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; text-align: center;
  display: flex; flex-direction: column; gap: 10px;
}
.ods__delivery-code-display-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ods__delivery-code-display-label i { color: var(--c-accent, #b8f53d); }
.ods__delivery-code-display-value {
  font-family: var(--ff-display, 'Syne', monospace);
  font-size: 28px; font-weight: 800; color: #fff; letter-spacing: 12px; padding: 8px 0;
}
.ods__delivery-code-reveal {
  padding: 10px 20px; border-radius: 10px; margin: 0 auto;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.ods__delivery-code-reveal:hover { background: rgba(255,255,255,0.1); color: #fff; }
