/* public/home/index.1092.css */
/* --------------------------------------------------
   AnchorPay – Home
   Shared visual language with Friends / Settings
-----------------------------------------------------*/

:root {
  --ap-bg: #f3f4f6;
  --ap-surface: #ffffff;
  --ap-ink: #0b1021;
  --ap-muted: #6b7280;
  --ap-primary: #1f3a8a;
  --ap-primary-soft: #e0ebff;
  --ap-teal: #14b8a6;
  --ap-danger: #ef4444;
  --ap-border: #e5e7eb;
  --ap-radius-lg: 18px;
  --ap-radius-pill: 999px;
  --ap-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
  --ap-shadow-subtle: 0 10px 28px rgba(15, 23, 42, 0.1);
}

/* ---------- Base ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: var(--ap-bg);
  color: var(--ap-ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(243, 244, 246, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}

.logo span {
  color: var(--ap-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status pill (account verification) */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--ap-radius-pill);
  border: 1px solid #d4d4d8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f9fafb;
  color: #4b5563;
}

.status-pill span:last-child {
  font-size: 0.85rem;
}

.status-pill--verified {
  border-color: var(--ap-primary);
  background: #eff6ff;
  color: var(--ap-primary);
}

/* ---------- Layout ---------- */

.ap-main {
  min-height: calc(100vh - 56px);
  padding: 12px 16px 72px;
}

.ap-main-wrap {
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */

.ap-card {
  background: radial-gradient(circle at top left, #ffffff, #f9fafb);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow-soft);
  padding: 16px 18px 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ap-card--wallet {
  margin-top: 6px;
  margin-bottom: 18px;
  background: radial-gradient(
      circle at top right,
      rgba(20, 184, 166, 0.18),
      transparent 55%
    ),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.22), transparent 55%),
    #0b1021;
  color: #f9fafb;
  border: none;
}

.ap-wallet-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-wallet-title {
  margin: 0 0 4px;
  font-size: 1.18rem;
  font-weight: 600;
}

.ap-wallet-title span {
  font-weight: 700;
}

.ap-wallet-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.78;
}

.ap-wallet-balance {
  margin: 3px 0 10px;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.ap-btn {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.08s ease-out,
    background-color 0.08s ease-out;
}

.ap-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1f3a8a);
  color: #f9fafb;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.4);
}

.ap-btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* ---------- Deposits section ---------- */

.ap-section {
  background: transparent;
}

.ap-section--deposits {
  margin-top: 4px;
}

.ap-section-title {
  margin: 14px 2px 8px;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Filter row */

.ap-toggle-row {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ap-toggle-label {
  font-size: 0.85rem;
  color: var(--ap-muted);
}

/* iOS-style toggle */

.ap-toggle-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
  position: relative;
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    border-color 0.16s ease-out;
}

.ap-toggle-checkbox::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 41, 55, 0.4);
  transition: transform 0.16s ease-out;
}

.ap-toggle-checkbox:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.ap-toggle-checkbox:checked::after {
  transform: translateX(14px);
}

/* Counts row */

.ap-deposit-counts {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ap-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.ap-deposit-counts-separator {
  width: 1px;
  height: 12px;
  background: #e5e7eb;
}

/* Empty state */

.ap-empty-state {
  margin: 6px 4px 0;
  font-size: 0.9rem;
  color: var(--ap-muted);
}

.ap-empty-state-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ---------- Deposit list ---------- */

.ap-deposits-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* reset default button look inside the list */
.ap-deposits-list button {
  background: none;
  border: none;
  padding: 0;
}

/* one deposit row – apply to BOTH legacy and new class names */
.deposit-row,
.ap-deposit-row {
  width: 100%;
  border: none;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 14px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.deposit-row:active,
.ap-deposit-row:active {
  transform: translateY(1px) scale(0.99);
}

/* left side: email + meta */
.deposit-row-main,
.ap-deposit-main,
.ap-deposit-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  max-width: 72%;
}

.deposit-row-title,
.ap-deposit-title,
.ap-deposit-row-email {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-row-meta,
.ap-deposit-meta,
.ap-deposit-row-meta {
  font-size: 0.8rem;
  color: var(--ap-muted);
}

/* right side: amount + (optional) status pill */
.deposit-row-amount,
.ap-deposit-amount,
.ap-deposit-row-amount {
  font-size: 0.95rem;
  font-weight: 600;
}

.deposit-row-right,
.ap-deposit-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* optional status chip */
.ap-deposit-chip {
  padding: 3px 10px 4px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4b5563;
}

.ap-deposit-chip--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

/* ---------- Bottom navigation ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  padding: 8px 10px 10px;
  background: rgba(243, 244, 246, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.bottom-nav a {
  flex: 1;
  margin: 0 4px;
  text-align: center;
  padding: 7px 4px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ap-muted);
  font-weight: 500;
}

.bottom-nav a.active {
  background: #111827;
  color: #f9fafb;
}

/* ---------- Small screens tweaks ---------- */

@media (max-width: 380px) {
  .topbar {
    padding-inline: 12px;
  }

  .ap-main {
    padding-inline: 12px;
  }

  .ap-card {
    padding-inline: 14px;
  }
}
