/* ==========================================================================
   TRANSACTION RECEIPTS MASTER STYLESHEET
   Clones of Trust Wallet, Bybit, Binance, MetaMask, and Bank Wire vouchers
   ========================================================================== */

:root {
  --rc-bg: #FFFFFF;
  --rc-card: #F4F5F7;
  --rc-card-border: transparent;
  --rc-text: #18191B;
  --rc-muted: #71767F;
  --rc-accent: #0052FF;
  --rc-status: #00C087;
  --rc-border: #E2E4E8;
  --rc-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base resets inside the receipt */
.receipt-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--rc-font);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PHONE MOCKUP FRAME (iPhone 15 Pro style)
   ========================================================================== */
.phone-mockup {
  width: 390px;
  min-height: 844px;
  max-width: 100%;
  background: var(--rc-bg);
  border-radius: 46px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 10px #1C1C1E, 0 0 0 12px #2C2C2E;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* Dynamic Island / Top Notch */
.phone-notch-bar {
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 0;
  color: var(--rc-text);
  font-size: 14.5px;
  font-weight: 600;
  z-index: 20;
  user-select: none;
}

.notch-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
}

.notch-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notch-icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Phone Screen Scrollable Body */
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 18px 24px;
  overflow-y: auto;
  background: var(--rc-bg);
  color: var(--rc-text);
  position: relative;
}

/* Home Indicator Bar */
.phone-home-indicator {
  padding: 8px 0 6px;
  background: var(--rc-bg);
  display: flex;
  justify-content: center;
  user-select: none;
}

.home-bar-pill {
  width: 134px;
  height: 5px;
  background: var(--rc-text);
  opacity: 0.85;
  border-radius: 10px;
}

/* ==========================================================================
   TEMPLATE 1: TRUST WALLET (EXACT SCREENSHOT MATCH)
   ========================================================================== */
.tw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-bottom: 24px;
}

.tw-header-btn {
  background: none;
  border: none;
  color: var(--rc-text);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-header-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--rc-text);
  fill: none;
  stroke-width: 2.2;
}

.tw-header-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--rc-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-brand-slot {
  max-height: 22px;
  max-width: 90px;
  object-fit: contain;
  display: none;
}

.tw-amount-section {
  text-align: center;
  margin-bottom: 28px;
}

.tw-crypto-amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--rc-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tw-fiat-amount {
  font-size: 15px;
  font-weight: 500;
  color: var(--rc-muted);
  margin-top: 4px;
}

.tw-card {
  background: var(--rc-card);
  border: 1px solid var(--rc-card-border);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.tw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14.5px;
}

.tw-row:first-child {
  padding-top: 2px;
}

.tw-row:last-child {
  padding-bottom: 2px;
}

.tw-label {
  color: var(--rc-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.tw-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rc-muted);
  color: var(--rc-card);
  font-size: 9.5px;
  font-weight: 800;
  font-style: normal;
  cursor: pointer;
}

.tw-val {
  color: var(--rc-text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.tw-val-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.tw-explorer-btn {
  display: block;
  width: 100%;
  background: var(--rc-bg);
  border: 1px dashed var(--rc-border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  color: var(--rc-accent);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.tw-explorer-btn:hover {
  background: var(--rc-card);
}

/* Bottom Tab Navigation Bar (Screenshot Match) */
.tw-bottom-nav {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 14px 6px;
  display: flex;
  justify-content: space-between;
  background: var(--rc-bg);
}

.tw-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--rc-muted);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.tw-tab-item.active {
  color: var(--rc-accent);
}

.tw-tab-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   TEMPLATE 2: BYBIT (SIGNATURE WITHDRAWAL & DEPOSIT VOUCHER)
   ========================================================================== */
.bybit-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.bybit-status-hero {
  text-align: center;
  padding: 10px 0 24px;
}

.bybit-success-icon {
  width: 58px;
  height: 58px;
  background: rgba(0, 192, 135, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--rc-status);
}

.bybit-status-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rc-text);
  margin-bottom: 6px;
}

.bybit-amount-hero {
  font-size: 32px;
  font-weight: 800;
  color: var(--rc-text);
  letter-spacing: -0.02em;
}

.bybit-card {
  background: var(--rc-card);
  border: 1px solid var(--rc-card-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.bybit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.bybit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bybit-row:first-child {
  padding-top: 0;
}

.bybit-lbl {
  color: var(--rc-muted);
  font-weight: 500;
}

.bybit-val {
  color: var(--rc-text);
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bybit-tag {
  background: rgba(247, 166, 0, 0.14);
  color: #F7A600;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bybit-btn-primary {
  width: 100%;
  background: var(--rc-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 13.5px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s ease;
}

/* ==========================================================================
   TEMPLATE 3: BINANCE (MIDNIGHT / PRO TRANSFER VOUCHER)
   ========================================================================== */
.binance-hero {
  text-align: center;
  padding: 14px 0 26px;
}

.binance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240, 185, 11, 0.14);
  color: #F0B90B;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.binance-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--rc-text);
}

.binance-table-box {
  background: var(--rc-card);
  border-radius: 16px;
  padding: 20px;
}

/* ==========================================================================
   TEMPLATE 4: METAMASK (WEB3 ACTIVITY SHEET)
   ========================================================================== */
.mm-sheet {
  background: var(--rc-card);
  border-radius: 20px;
  padding: 24px 20px;
}

.mm-identicon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5F6D, #FFC371);
}

/* ==========================================================================
   TEMPLATE 5: INSTITUTIONAL BANK WIRE VOUCHER (FEDWIRE / SWIFT MT103)
   ========================================================================== */
.wire-voucher {
  background: var(--rc-card);
  border: 1px solid var(--rc-border);
  border-radius: 12px;
  padding: 24px 20px;
  font-size: 13px;
  line-height: 1.6;
}

.wire-header-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--rc-accent);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.wire-stamp-badge {
  border: 2px solid var(--rc-status);
  color: var(--rc-status);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}

/* Copy button helper */
.rc-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rc-muted);
  display: inline-flex;
  align-items: center;
  padding: 2px;
}
.rc-copy-btn:hover {
  color: var(--rc-accent);
}

/* Clean Card View (When phone mockup frame is disabled) */
.clean-card-mode {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--rc-border);
  border-radius: 24px;
}
.clean-card-mode .phone-notch-bar,
.clean-card-mode .phone-home-indicator {
  display: none !important;
}
