:root {
  --ink: #102219;
  --muted: #6d7871;
  --green: #176b45;
  --green-dark: #0d4a31;
  --lime: #d6f26f;
  --cream: #f5f7f1;
  --line: #dde5dc;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
  height: 78px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(16, 34, 25, 0.08);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  background: #176b45;
}

.brand > span > span { color: var(--green); }

.nav-links {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4eedf;
  color: var(--green-dark);
  font-weight: 800;
}

.logout-button {
  height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: #526159;
  font: 700 13px "DM Sans", sans-serif;
  cursor: pointer;
}

.logout-button svg {
  width: 16px;
  fill: currentColor;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  padding: 48px max(24px, calc((100% - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(214, 242, 111, 0.55), transparent 20%),
    linear-gradient(135deg, #eff5e9 0%, #f9faf6 75%);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 15px 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -3.5px;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  text-decoration: none;
  font: 800 14px "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  padding: 0 22px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(23, 107, 69, 0.16);
}

.button-primary:hover { background: var(--green-dark); }

.text-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.text-link span { color: var(--green); margin-left: 5px; }

.hero-art {
  height: 330px;
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 270px;
  height: 270px;
  right: 35px;
  background: var(--lime);
  opacity: 0.8;
}

.orb-two {
  width: 110px;
  height: 110px;
  right: 0;
  bottom: 15px;
  background: #9fd9b9;
}

.phone-card {
  width: 286px;
  height: 310px;
  padding: 18px;
  position: relative;
  z-index: 2;
  transform: rotate(3deg);
  border: 7px solid #183828;
  border-radius: 32px;
  background: #f8faf7;
  box-shadow: 0 24px 50px rgba(23, 69, 45, 0.22);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  margin: 0 5px 13px;
}

.phone-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf0eb;
}

.profile-photo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.phone-profile strong,
.phone-profile small { display: block; }
.phone-profile strong { font-size: 12px; }
.phone-profile small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.chat-bubble {
  max-width: 190px;
  margin-top: 15px;
  padding: 9px 11px;
  font-size: 10px;
  line-height: 1.35;
  border-radius: 12px;
}

.chat-left { background: #e9eee7; border-bottom-left-radius: 3px; }
.chat-right {
  margin-left: auto;
  background: var(--green);
  color: white;
  border-bottom-right-radius: 3px;
}

.dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: 24px;
}

.service-panel,
.wallet-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(31, 53, 40, 0.04);
}

.service-panel { padding: 28px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  letter-spacing: -1px;
}

.service-form { display: grid; gap: 10px; }

.service-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 20px 46px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border 0.18s ease, background 0.18s ease;
}

.service-option:has(input:checked) {
  border-color: #79a88e;
  background: #f4f8f1;
}

.service-option input {
  position: absolute;
  opacity: 0;
}

.radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #b5c0b8;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px white;
}

.service-option:has(input:checked) .radio-mark {
  border-color: var(--green);
  background: var(--green);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #dce9d7;
  color: var(--green);
  font-size: 23px;
  font-weight: 700;
}

.service-icon-lock {
  background: #e8edcf;
  transform: rotate(180deg);
  font-size: 18px;
}

.service-text strong,
.service-text small { display: block; }
.service-text strong { font-size: 15px; }
.service-text small { margin-top: 5px; color: var(--muted); }
.service-price { font-family: "Manrope", sans-serif; font-size: 17px; }

.continue-button {
  width: 100%;
  margin-top: 8px;
}

.continue-button span { margin-left: auto; padding-left: 16px; }

.wallet-panel { overflow: hidden; }

.wallet-top {
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px;
  background: var(--green-dark);
  color: white;
}

.wallet-top span,
.wallet-top strong { display: block; }
.wallet-top div > span { color: #bed0c5; font-size: 13px; }
.wallet-top strong {
  margin-top: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  letter-spacing: -1.5px;
}

.wallet-badge {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: #dce8df;
  font-size: 10px;
  font-weight: 800;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.wallet-actions .button { min-height: 42px; }
.button-wallet { background: var(--lime); color: var(--ink); }
.bitcoin-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
}
.button-outline { background: white; border: 1px solid var(--line); color: var(--ink); }

.wallet-history { padding: 20px 22px 22px; }
.history-heading { display: flex; justify-content: space-between; align-items: center; }
.history-heading h3 { margin: 0; font-size: 14px; }
.history-heading span { color: var(--green); font-size: 11px; font-weight: 800; }
.empty-state { min-height: 125px; display: grid; place-content: center; text-align: center; }
.empty-state > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #edf2e9;
  color: var(--green);
}
.empty-state p { margin: 0; font-size: 13px; font-weight: 800; }
.empty-state small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.how-it-works {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.steps article {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid var(--line);
}
.steps article:last-child { border-right: 0; }
.step-number {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.steps h3 { margin: 0 0 8px; font-family: "Manrope", sans-serif; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  background: #e8efdf;
  border-top: 1px solid var(--line);
}
.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 0 30px;
  border-right: 1px solid #ccd7c5;
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { font-size: 14px; }
.trust-strip span { color: var(--muted); font-size: 12px; }

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px max(24px, calc((100% - 1180px) / 2));
  background: #102219;
  color: white;
}
footer p { color: #9cad9f; font-size: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand > span > span { color: var(--lime); }

.toast {
  max-width: calc(100% - 32px);
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 30px);
  padding: 14px 18px;
  border-radius: 9px;
  background: #102219;
  color: white;
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  font-size: 13px;
  font-weight: 700;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.payment-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16,34,25,0.28);
}
.payment-dialog::-webkit-scrollbar { display: none; }
.payment-dialog::backdrop { background: rgba(16,34,25,0.65); }
.payment-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.payment-dialog-header h2 { margin: 5px 0 0; font-size: 24px; }
.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.payment-dialog-body { display: grid; gap: 12px; padding: 24px; }
.payment-dialog-body p { margin: 0 0 4px; color: var(--muted); }
.payment-dialog-body label { font-size: 12px; font-weight: 800; }
.payment-qr-container { display: grid; place-items: center; }
.payment-qr-container img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  image-rendering: pixelated;
}
.payment-qr-container #paymentQr[hidden] { display: none; }
.payment-qr-hint { text-align: center; font-size: 12px; }
.payment-dialog-body input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.payment-address-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.payment-address-row input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-family: "DM Sans", monospace;
  font-size: 13px;
  letter-spacing: -0.25px;
}
.copy-address {
  min-width: 76px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.payment-dialog-body small { color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 320px; }
  .hero h1 { font-size: 48px; }
  .phone-card { width: 250px; }
  .dashboard { grid-template-columns: 1fr 300px; }
}

@media (max-width: 760px) {
  .topbar { height: 68px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .logout-button span { display: none; }
  .logout-button { width: 38px; padding: 0; justify-content: center; }
  .avatar { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); letter-spacing: -2.5px; }
  .hero-art { height: 300px; margin-top: 20px; }
  .orb-one { right: calc(50% - 150px); }
  .orb-two { right: calc(50% - 190px); }

  .dashboard { grid-template-columns: 1fr; padding-top: 38px; }
  .wallet-panel { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps article:last-child { border-bottom: 0; }
  .step-number { margin-bottom: 18px; }
  .trust-strip { grid-template-columns: 1fr; gap: 18px; }
  .trust-strip div { border-right: 0; padding: 0; }
  footer { align-items: flex-start; gap: 20px; }
}

@media (max-width: 520px) {
  .payment-address-row { grid-template-columns: minmax(0, 1fr) 68px; }
  .payment-address-row input {
    min-width: 0;
    font-size: 11px;
    letter-spacing: -0.25px;
  }
  .copy-address { min-width: 68px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 11px; }
  .brand { gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-art { height: 280px; }
  .phone-card { width: 238px; height: 292px; }
  .dashboard { padding-left: 16px; padding-right: 16px; }
  .service-panel { padding: 20px 16px; }
  .section-heading h2 { font-size: 24px; }
  .service-option {
    grid-template-columns: 18px 40px 1fr auto;
    gap: 9px;
    padding: 12px 10px;
  }

  .service-icon { width: 40px; height: 40px; }
  .service-text small { max-width: 150px; }
  .how-it-works { padding-left: 16px; padding-right: 16px; }
  footer { flex-direction: column; }
  footer p { margin: 0; }
}

@media (max-height: 700px) {
  .payment-dialog-header { padding: 14px 18px; }
  .payment-dialog-body { gap: 8px; padding: 16px 18px; }
  .payment-qr-container img { width: min(180px, 100%); }
}
