/* ============================================================
   Cheaply: Layout System
   Airbnb-style: full-width, grid-first, no sidebars
   ============================================================ */

/* ── Wallet Redesign: Airbnb Minimalist ────────────────────── */
.wallet-page {
  padding: 40px 0 80px;
  background: var(--gray-50);
  min-height: calc(100vh - 80px);
}

.container-tight {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header-simple {
  margin-bottom: 32px;
}

.page-title-main {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--gray-500);
  font-size: 16px;
}

.wallet-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.wallet-card-primary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.balance-meta {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
}

.balance-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}

.balance-display .currency-symbol {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
}

.balance-display .amount-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.wallet-action-group {
  display: flex;
  gap: 16px;
}

.transaction-list {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item:hover {
  background: var(--gray-50);
}

.tx-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.tx-in {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.tx-out {
  background: var(--color-border);
  color: var(--color-text);
}

.tx-info {
  flex: 1;
}

.tx-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 15px;
  margin-bottom: 2px;
}

.tx-meta {
  font-size: 13px;
  color: var(--gray-500);
}

.tx-amount-v2 {
  font-weight: 700;
  font-size: 16px;
}

.tx-amount-v2.positive {
  color: var(--color-text);
}

.tx-amount-v2.negative {
  color: var(--gray-900);
}

.wallet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card-simple {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.info-card-simple h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-card-simple p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.support-box-minimal {
  font-size: 14px;
  color: var(--gray-500);
}

.link-underlined {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

/* Modal Minimal, Airbnb Style */
.modal-minimal {
  border-radius: var(--radius-xl) !important;
  border: none !important;
  padding: 8px;
}

.modal-header-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.modal-header-minimal .modal-title {
  font-weight: 800;
  font-size: 18px;
}

.btn-close-minimal {
  background: none;
  border: none;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  color: var(--gray-600);
}

.btn-close-minimal:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.form-group-minimal {
  padding: 24px;
}

.form-group-minimal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.input-minimal {
  width: 100%;
  font-size: 32px;
  font-weight: 700;
  border: none;
  padding: 0;
  color: var(--gray-900);
  outline: none;
}

.input-minimal::placeholder {
  color: var(--gray-300);
}

.input-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 12px;
}

.modal-actions-minimal {
  padding: 0 24px 24px;
}

@media (max-width: 768px) {
  .wallet-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Page wrapper ──────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Push content below fixed navbar */
.page-body {
  margin-top: var(--header-height);
  flex: 1;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  max-width: var(--container-2xl);
}

.container-narrow {
  max-width: 720px;
}

/* ── Deal grid: Airbnb listing grid ───────────────────────── */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

/* ── Section spacing ───────────────────────────────────────── */
.section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.section-sm {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.section-lg {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* ── Trust strip ───────────────────────────────────────────── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.trust-item {
  padding: var(--space-5);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
}

.trust-item-icon {
  width: 32px;
  height: 32px;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.trust-item-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: 6px;
}

.trust-item-text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* ── Flex utilities ────────────────────────────────────────── */
.flex {
  display: flex;
}

.iflex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.flex-1 {
  flex: 1;
}

.flex-none {
  flex: none;
}

.shrink-0 {
  flex-shrink: 0;
}

.gap-0 {
  gap: 4px;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.gap-4 {
  gap: 32px;
}

.gap-6 {
  gap: 48px;
}

/* ── Spacing utilities ─────────────────────────────────────── */
.p-0 {
  padding: 4px;
}

.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 16px;
}

.p-3 {
  padding: 24px;
}

.p-4 {
  padding: 32px;
}

.p-6 {
  padding: 48px;
}

.px-2 {
  padding-left: 16px;
  padding-right: 16px;
}

.px-3 {
  padding-left: 24px;
  padding-right: 24px;
}

.px-6 {
  padding-left: 48px;
  padding-right: 48px;
}

.py-2 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.py-3 {
  padding-top: 24px;
  padding-bottom: 24px;
}

.py-6 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-6 {
  margin-top: 48px;
}

.mt-auto {
  margin-top: auto;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mb-6 {
  margin-bottom: 48px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ── Display utilities ─────────────────────────────────────── */
.block {
  display: block;
}

.inline {
  display: inline;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

/* ── Width / height ────────────────────────────────────────── */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

/* ── Position ──────────────────────────────────────────────── */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* ── Overflow ──────────────────────────────────────────────── */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

/* ── Border radius ─────────────────────────────────────────── */
.rounded {
  border-radius: var(--radius-xs);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #0d0d0d;
  color: #999;
  padding: 48px 0 0;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top section: brand left + nav columns right */
.footer-top {
  display: flex;
  gap: 48px;
  padding-bottom: 40px;
  align-items: flex-start;
}

.footer-brand {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
  /* invert white logo on dark bg if needed */
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: var(--gray-400);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin: 0 0 28px;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-link,
.footer-social-link:visited {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--white);
}

.footer-social-link svg {
  display: block;
}

/* Nav columns grid */
.footer-nav {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col a:visited {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 7px 0;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom-right a:visited {
  color: var(--gray-500);
}

/* Divider line */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-right a {
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-right a:hover {
  color: var(--white);
}

/* Footer currency dropdown: custom component, inherits .curr-dd base */
.curr-dd-footer .curr-dd-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gray-400);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.curr-dd-footer .curr-dd-btn:hover,
.curr-dd-footer.curr-dd-open .curr-dd-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.curr-dd-footer .curr-dd-list {
  top: auto;
  bottom: calc(100% + 4px);
  right: 0;
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
}

.curr-dd-footer .curr-dd-item { color: var(--gray-400); }
.curr-dd-footer .curr-dd-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.curr-dd-footer .curr-dd-item.curr-dd-selected { background: rgba(255,255,255,0.08); color: var(--white); }

/* Responsive: mobile-only collapse */
@media (max-width: 767px) {
  .site-footer {
    padding-top: 36px;
    margin-top: 32px;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-brand {
    flex: none;
    max-width: 100%;
  }

  .footer-tagline {
    max-width: 280px;
  }

  .footer-nav {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 32px;
  }

  .footer-bottom-right {
    gap: 16px;
  }
}

/* Admin: Premium table component */
.admin-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table-wrap thead tr {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.admin-table-wrap thead th {
  padding: 14px 20px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.admin-table-wrap tbody tr {
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background var(--transition-fast);
}

.admin-table-wrap tbody tr:hover {
  background: var(--color-bg-secondary);
}

.admin-table-wrap tbody tr:last-child {
  border-bottom: none;
}

.admin-table-wrap tbody td {
  padding: 16px 20px;
  font-size: var(--text-sm);
  color: var(--color-text);
  vertical-align: middle;
}

/* Admin: Page header */
.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.admin-page-sub {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: 4px;
}         