/* =========================
   ROOT & RESET
========================= */

:root {
  --green-dark: #0c3f44;
  --green: #0b8557;
  --green-soft: #e6f4ef;
  --bg: #f6faf9;
  --text: #0f2f2f;
  --muted: #6b8f8b;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 22px rgba(12, 63, 68, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */

.app {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5px 64px;
}

/* =========================
   TOP BAR
========================= */

.topbar {
  background: var(--white);
  border-bottom: 1px solid #e9f2f0;
}

.topbar-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.brand-badge {
  width: 36px;
  height: 36px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--white);
  border: 1px solid #dcebea;
  color: var(--green-dark);
}

/* =========================
   HERO
========================= */

.hero-wrap {
  background: linear-gradient(135deg, #0c3f44, #0b8557);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  padding: 64px 18px 96px;
}

.hero {
  max-width: 720px;
  margin: auto;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero p {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero .btn {
  padding: 14px 26px;
  font-size: 16px;
}

/* =========================
   RATE CARD
========================= */

.rate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: -48px auto 56px;
  max-width: 640px;
  text-align: center;
}

.rate-card .label {
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.rate-card .value {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.rate-card .badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   SECTIONS
========================= */

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-top: 64px;
  margin-bottom: 8px;
  align-content: center;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 560px;
}

/* =========================
   GRIDS
========================= */

.grid {
  display: grid;
  gap: 5px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

/* =========================
   RATE TILES
========================= */

.rate-tile {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rate-tile .pair {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.rate-tile b {
  font-size: 16px;
}

.pill {
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   SOFT CARDS (How it works)
========================= */

.card-soft {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-soft b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.card-soft p {
  color: var(--muted);
  font-size: 15px;
}





/* ============= STEPS =========*/
/* ===============================
   PAGE HEADER
================================ */
.page-head {
  margin-top: 26px;
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0c3f44;
}

.page-head p {
  font-size: 15px;
  color: #6f7f7b;
  margin: 0;
}

/* ===============================
   FORM CARD
================================ */
.card-soft {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* ===============================
   INPUTS
================================ */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0e3b34;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dfe9e6;
  font-size: 16px;
}

.input:focus {
  outline: none;
  border-color: #0b7453;
}

/* Disable browser validation banners */
input:invalid {
  box-shadow: none;
}

/* ===============================
   RECEIVE BOX
================================ */
.receive-box {
  margin: 22px 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f4fbf8;
  text-align: center;
}

.receive-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #7d918c;
  margin-bottom: 6px;
}

.receive-amount {
  font-size: 28px;
  font-weight: 800;
  color: #0c3f44;
}

.receive-rate {
  font-size: 13px;
  margin-top: 4px;
  color: #6f7f7b;
}

/* ===============================
   BUTTON
================================ */
.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0c3f44, #0b7453);
  color: #fff;
  padding: 15px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-primary:active {
  transform: scale(.98);
}

/* =========================
   FOOTER (if needed)
========================= */

.footer {
  margin-top: 10px;
  padding: 5px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}


/* ===============================
   METHOD SELECTION
================================ */
.method-group {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dfe9e6;
  background: #fff;
  cursor: pointer;
}

.method-option input {
  accent-color: #0b7453;
  transform: scale(1.1);
}

.method-option b {
  font-size: 15px;
  color: #0c3f44;
}

.method-option small {
  font-size: 13px;
  color: #6f7f7b;
}

/* ===============================
   BUTTON ROW
================================ */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-row .btn {
  flex: 1;
}



/* ===============================
   PAYMENT STEP
================================ */
.total-box {
  background: #f1faf6;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.total-box strong {
  font-size: 22px;
  color: #0b7453;
}

.bank-card {
  border: 1px solid #e3efea;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.bank-row span {
  color: #6f7f7b;
}

.bank-note {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  background: #f9fbfa;
  padding: 10px;
  border-radius: 10px;
}

.summary-mini {
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

/* ===============================
   SUCCESS PAGE
================================ */
.success-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.success-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.success-card h1 {
  margin: 10px 0;
  color: #0c3f44;
}

.success-card p {
  color: #667;
  font-size: 14px;
}

.txn-box {
  background: #f1faf6;
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
}

.txn-box span {
  display: block;
  font-size: 12px;
  color: #6f7f7b;
}

.txn-box b {
  font-size: 15px;
}

/* ===============================
   AUTH (LOGIN / REGISTER)
================================ */

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

.auth-title {
  margin: 0;
  font-size: 26px;
  color: #0c3f44;
}

.auth-sub {
  margin: 6px 0 20px;
  font-size: 14px;
  color: #6f7f7b;
}

.auth-form .field {
  margin-bottom: 16px;
}

.auth-error {
  background: #fdecea;
  color: #a94442;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.auth-footer a {
  color: #0b7453;
  font-weight: 600;
  text-decoration: none;
}


/* ===========================
   DASHBOARD LAYOUT
=========================== */

.dashboard-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.dashboard-card h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.dashboard-meta {
  font-size: 14px;
  color: #6b7d78;
  margin-bottom: 18px;
}

/* ===========================
   STATS
=========================== */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: #f4fbf8;
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  color: #4f615c;
}

.stat b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: #0c3f44;
}

/* ===========================
   ACTION BUTTONS
=========================== */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions .btn {
  flex: 1;
  text-align: center;
}

/* ===========================
   SECTIONS
=========================== */

.section {
  margin-bottom: 36px;
}

.section h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

/* ===========================
   FILTERS
=========================== */

.filter-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.filter-actions .btn {
  flex: 1;
}

/* ===========================
   EMPTY STATE
=========================== */

.empty-state {
  background: #f8fdfb;
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  font-size: 15px;
  color: #6b7d78;
}

.empty-state .btn {
  margin-top: 14px;
}

/* ===========================
   SUPPORT
=========================== */

.support p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.support a {
  color: #0b7453;
  font-weight: 600;
}

/* ===========================
   DESKTOP ENHANCEMENTS
=========================== */

@media (min-width: 768px) {

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-actions {
    grid-column: span 2;
    justify-content: flex-start;
  }

  .filter-actions .btn {
    flex: unset;
    min-width: 160px;
  }
}

/* =========================
   DESKTOP ENHANCEMENTS
========================= */

@media (min-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding-bottom: 8px;
  }
}