/* ==========
   Base
   ========== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .6);
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --radius: 18px;

  --primary: #111827;
  --accent: #4caf50;

  --btn: #111827;
  --btnText: #ffffff;

  --focus: rgba(76,175,80,.22);
}

*{ box-sizing: border-box; }
/* html,body{ height: 100%; } */
body{
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 20% 0%, #ffffff 0%, var(--bg) 55%, var(--bg) 100%);
}

a{ color: inherit; }
img{ display:block; }

/* ==========
   Layout
   ========== */
.container{
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247,248,251,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 56px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}
.brand__img{
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-block;
}
.brand__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4caf50, #75d3fd);
  box-shadow: 0 10px 30px rgba(76,175,80,.35);
}
.brand__name{
  font-weight: 650;
  font-size: 18px;
}

.pill{
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
}

.page-title{
  padding: 24px 0 18px;
}
.page-title h1{
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.page-title p{
  margin: 0;
  color: var(--muted);
}

.layout{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  padding-bottom: 32px;
  align-items: start;
}

.stack{
  display:flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========
   Card
   ========== */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__header{
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.card__header h2{
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -.02em;
}
.card__header p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.subcard{
  margin: 16px 18px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(247,248,251,.6);
}
.subcard__top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.subcard__top h3{
  margin: 0;
  font-size: 14px;
  letter-spacing: -.01em;
}
.small{ font-size: 12px; }
.muted{ color: var(--muted); }

/* ==========
   Form
   ========== */
.form{
  padding: 16px 18px 18px;
}
.field{
  display:flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}
label{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}
input, textarea, select{
  appearance: none;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  padding: 12px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
textarea{ resize: vertical; }

input:focus, textarea:focus, select:focus{
  border-color: rgba(76,175,80,.55);
  box-shadow: 0 0 0 5px var(--focus);
}

.hint{
  color: var(--muted);
  font-size: 12px;
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-block{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.address-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

/* ==========
   Segmented control
   ========== */
.segmented{
  display:flex;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
  gap: 4px;
}
.segmented__btn{
  flex:1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 10px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.segmented__btn[aria-selected="true"]{
  background: rgba(76,175,80,.14);
  box-shadow: 0 1px 0 rgba(15,23,42,.06) inset;
  color: #1b5e20;
}

.method-note{
  margin-top: 10px;
  font-size: 12px;
  color: #e55252;
}

/* ==========
   Plan options
   ========== */
.plan-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 18px 18px;
}
.plan{
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.plan:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  border-color: #c7d2fe;
}
.plan[data-selected="true"]{
  border-color: rgba(76,175,80,.55);
  box-shadow: 0 0 0 5px rgba(76,175,80,.14);
}
.plan__top{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan__price-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
}
/* CHECK ICON */
.plan__check{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  color: white;
  font-size: 14px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  transform: scale(.8);
  opacity: 0;

  transition:
    background-color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

/* SELECTED STATE */
.plan[data-selected="true"]{
  border-color: #fb710f;
  box-shadow: 0 8px 24px rgba(99,102,241,.2);
}

.plan[data-selected="true"] .plan__check{
  background: #fb710f;
  border-color: #fb710f;
  opacity: 1;
  transform: scale(1);
}
.plan:focus-visible{
  outline: 2px solid #fb710f;
  outline-offset: 2px;
}
@media (max-width: 640px){
  .plan{
    padding: 16px;
  }
}
.badge{
  position: absolute;
  top: -18px;
  right: 14px;

  background: linear-gradient(135deg, #c52222, #16a34a);
  color: #fff;

  font-size: 12px;
  font-weight: 600;
  line-height: 1;

  padding: 6px 10px;
  border-radius: 999px;

  box-shadow: 0 6px 18px rgba(34,197,94,.35);
  letter-spacing: .2px;
  pointer-events: none;
}

.badge.badge-best{
  background: linear-gradient(135deg, #ff6a00, #4415ff);
}

.plan[data-selected="true"] .badge{
  transform: scale(1.05);
}
.plan__label{
  font-weight: 650;
}
.plan__price{
  font-weight: 700;
}
.plan__meta{
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

/* ==========
   Summary
   ========== */
.summary-card{
  position: sticky;
  top: 88px;
}
.summary{
  padding: 16px 18px 18px;
}
.summary__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.summary__row--total{
  font-weight: 750;
}
.summary__value{
  font-weight: 650;
}
.divider{
  height: 1px;
  background: rgba(15,23,42,.08);
  margin: 10px 0;
}
.mini{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.mini__row{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.mini__value{
  max-width: 62%;
  text-align:right;
  color: rgba(15,23,42,.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========
   Buttons + Notices
   ========== */
.actions{
  margin-top: 14px;
}
.btn{
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn--primary{
  background: var(--btn);
  color: var(--btnText);
  box-shadow: 0 12px 26px rgba(17,24,39,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(17,24,39,.22);
}
.btn--primary:active{
  transform: translateY(0px);
}
.btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

.fineprint{
  margin: 10px 6px 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.notice{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(247,248,251,.6);
}
.notice--error{
  border-color: rgba(239,68,68,.22);
  background: rgba(239,68,68,.06);
  color: rgba(127,29,29,.95);
}
.notice--info{
  border-color: rgba(59,130,246,.20);
  background: rgba(59,130,246,.06);
}

/* ==========
   Footer
   ========== */
.footer{
  border-top: 1px solid var(--border);
  padding: 16px 0 24px;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

/* ==========
   Responsive
   ========== */
@media (max-width: 960px){
  .layout{
    grid-template-columns: 1fr;
  }
  .summary-card{
    position: static;
  }
}

@media (max-width: 560px){
  .container{ width: min(1180px, calc(100% - 26px)); }
  .grid-2{ grid-template-columns: 1fr; }
}

.segmented__btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.paypal-img {
  display: inline-block;
  max-width: 80px;
}

.crypto-img {
  display: inline-block;
  max-width: 32px;
  margin-right: 6px;
}