/* REQ-012 NGX subscription — OPay visual language */

#view-ngx_subscription_intro {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #c8f0dc 0%, transparent 55%),
    linear-gradient(180deg, #e8f8f0 0%, #f2f9f6 42%, #ffffff 100%);
  overflow: hidden;
}

#view-ngx_subscription_intro .ngx-intro-scroll {
  min-height: 0;
}

#view-ngx_subscription_intro .ngx-intro-topbar {
  background: transparent;
  border-bottom: 0;
}

#view-ngx_subscription_intro .ngx-intro-footer {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 184, 118, 0.12);
}

.ngx-intro-shell {
  padding: 8px 16px 24px;
  display: grid;
  gap: 18px;
}

.ngx-intro-visual {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.ngx-intro-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.ngx-intro-orb-a {
  width: 150px;
  height: 150px;
  background: rgba(0, 184, 118, 0.16);
  top: 8px;
  right: 28px;
}

.ngx-intro-orb-b {
  width: 90px;
  height: 90px;
  background: rgba(0, 144, 92, 0.12);
  bottom: 10px;
  left: 36px;
}

.ngx-intro-graphic {
  position: relative;
  width: 148px;
  height: 148px;
}

.ngx-intro-phone {
  width: 96px;
  height: 124px;
  margin: 12px auto 0;
  border-radius: 18px;
  background: linear-gradient(160deg, #00b876 0%, #00905c 100%);
  box-shadow: 0 16px 28px rgba(0, 144, 92, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  position: relative;
  z-index: 1;
}

.ngx-intro-coin {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.1);
  z-index: 2;
}

.ngx-intro-coin-1 {
  top: 8px;
  right: 0;
}

.ngx-intro-coin-2 {
  bottom: 18px;
  left: 0;
  color: #00b876;
}

.ngx-intro-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  color: #0f2e22;
  letter-spacing: -0.02em;
}

.ngx-intro-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 184, 118, 0.12);
  color: var(--opay-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ngx-intro-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a6358;
}

.ngx-live-offer {
  width: 100%;
  text-align: left;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: none;
  display: grid;
  gap: 10px;
}

.ngx-live-offer-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ngx-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.18);
}

.ngx-live-offer-top em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #027a48;
}

.ngx-live-offer-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ngx-live-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eaecf0;
  flex-shrink: 0;
}

.ngx-live-offer-main strong {
  display: block;
  color: #101828;
  font-size: 14px;
}

.ngx-live-offer-main span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
}

.ngx-live-offer-main > i {
  margin-left: auto;
  color: #98a2b3;
  font-size: 16px;
}

.ngx-benefit-list {
  display: grid;
  gap: 10px;
}

.ngx-benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 184, 118, 0.1);
}

.ngx-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--opay);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.ngx-benefit-icon i {
  font-size: 18px;
  line-height: 1;
}

.ngx-benefit-copy {
  min-width: 0;
  flex: 1;
}

.ngx-benefit-copy strong {
  display: block;
  color: #101828;
  font-size: 14px;
  margin-bottom: 2px;
}

.ngx-benefit-copy p {
  margin: 0;
  color: #5b6b63;
  font-size: 12px;
  line-height: 1.45;
}

/* OPay-standard agreement checkbox: green fill + white check */
.ngx-agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  cursor: pointer;
  user-select: none;
}

.ngx-agree-input {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.ngx-agree-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  transition: none;
}

.ngx-agree-box i {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ngx-agree-input:checked + .ngx-agree-box {
  background: var(--opay);
  border-color: var(--opay);
  color: #fff;
}

.ngx-agree-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #344054;
}

.ngx-link {
  border: 0;
  background: none;
  color: var(--opay-dark);
  font-weight: 700;
  padding: 0;
  font-size: inherit;
}

/* Shared pages */
.ngx-page {
  padding: 16px;
  display: grid;
  gap: 14px;
  background: #f5f7f6;
  min-height: 100%;
  align-content: start;
}

.ngx-page.ngx-list-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ngx-list-page {
  padding-top: 8px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ngx-list-hero {
  padding: 4px 2px 2px;
}

.ngx-list-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--opay-dark);
}

.ngx-list-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #0f2e22;
  letter-spacing: -0.02em;
}

.ngx-list-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6b63;
}

.ngx-offer-tile {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: none;
  border: 1px solid #eaecf0;
  display: grid;
  gap: 0;
  flex-shrink: 0;
}

.ngx-offer-tile-top,
.ngx-detail-hero-main,
.ngx-detail-head,
.ngx-broker-row,
.ngx-doc-row,
.ngx-wallet-card,
.ngx-units-offer,
.ngx-order-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ngx-offer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eaecf0;
  flex-shrink: 0;
}

.ngx-offer-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ngx-offer-tile-copy,
.ngx-order-copy {
  flex: 1;
  min-width: 0;
}

.ngx-offer-tile-copy strong,
.ngx-detail-head strong,
.ngx-wallet-card strong,
.ngx-units-offer strong,
.ngx-broker-row strong,
.ngx-order-copy strong {
  display: block;
  color: #101828;
  font-size: 14px;
  line-height: 1.3;
}

.ngx-offer-tile-copy em,
.ngx-detail-head em,
.ngx-broker-row span,
.ngx-wallet-card span,
.ngx-units-offer span,
.ngx-order-copy em {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.ngx-badge,
.ngx-pill-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ngx-badge.active {
  background: #ecfdf3;
  color: #027a48;
  padding: 4px 10px;
}

.ngx-offer-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f2f4f7;
}

.ngx-offer-metrics small,
.ngx-kv span {
  display: block;
  font-size: 11px;
  color: #667085;
}

.ngx-offer-metrics strong,
.ngx-kv strong {
  color: #101828;
  font-size: 13px;
}

.ngx-service-note {
  margin: auto 0 0;
  padding: 16px 8px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #98a2b3;
  text-align: center;
}

.ngx-section-card,
.ngx-detail-hero,
.ngx-form-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: none;
  padding: 16px;
}

.ngx-section-card h3,
.ngx-detail-hero h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #101828;
}

.ngx-section-card > p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.ngx-detail-hero-main {
  align-items: flex-start;
  margin-bottom: 12px;
}

.ngx-detail-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ngx-detail-status-row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #667085;
}

.ngx-detail-hero-main strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: #101828;
}

.ngx-detail-hero > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #667085;
}

.ngx-detail-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eaecf0;
  background: #fff;
}

.ngx-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f4f7;
}

.ngx-kv:last-child,
.ngx-form-card .ngx-kv.tight:last-of-type {
  border-bottom: 0;
}

.ngx-kv.tight {
  padding: 8px 0;
}

.ngx-detail-head.compact {
  margin-bottom: 8px;
}

.ngx-broker-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--opay-light);
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ngx-doc-row {
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: #f7faf8;
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  color: inherit;
}

.ngx-doc-row:first-of-type {
  margin-top: 0;
}

.ngx-doc-row span,
.ngx-doc-row em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ngx-doc-row em {
  color: var(--opay-dark);
  font-style: normal;
  font-weight: 700;
}

.ngx-units-offer {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: none;
}

.ngx-units-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eaecf0;
  background: #fff;
}

.ngx-page.ngx-units-page {
  gap: 10px;
  padding: 12px 16px;
}

.ngx-form-card {
  display: grid;
  gap: 0;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: none;
}

.ngx-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  margin: 0 0 8px;
}

.ngx-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1.5px solid #e8eee9;
}

.ngx-stepper.error {
  border-color: #fda29b;
  background: #fef3f2;
}

.ngx-stepper-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--opay-dark);
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  cursor: pointer;
}

.ngx-units-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #101828;
  outline: none;
  padding: 0;
  line-height: 1.2;
}

.ngx-form-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 2px;
  font-size: 12px;
  color: #667085;
}

.ngx-form-meta strong {
  color: var(--opay-dark);
}

.ngx-form-err {
  margin: 4px 0 2px;
  color: #d92d20;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ngx-units-page .ngx-kv {
  padding: 8px 0;
}

.ngx-wallet-card {
  padding: 12px;
  background: #f7faf8;
  border-radius: 14px;
  border: 0;
  box-shadow: none;
}

.ngx-wallet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--opay-light);
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.ngx-summary-amount {
  text-align: center;
  padding: 8px 8px 4px;
}

.ngx-summary-amount small {
  display: block;
  font-size: 13px;
  color: #667085;
  margin-bottom: 4px;
}

.ngx-summary-amount > strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #101828;
  letter-spacing: -0.02em;
}

.ngx-summary-amount > span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #667085;
}

.ngx-success-page {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px 120px;
  position: relative;
  background: #f5f7f6;
}

.ngx-success-page h2 {
  margin: 0 0 8px;
  color: #101828;
}

.ngx-success-page p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.ngx-success-icon,
.ngx-sheet-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--opay-light);
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ngx-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--opay);
  color: #fff;
  font-size: 34px;
  margin: 0 auto 16px;
}

.ngx-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ngx-orders-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: flex-start;
  gap: 10px;
}

.ngx-orders-page.is-empty {
  min-height: 100%;
  justify-content: center;
}

.ngx-order-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: none;
  flex: 0 0 auto;
  height: auto;
  align-self: stretch;
}

.ngx-order-card .ngx-offer-metrics {
  margin-top: 10px;
  padding-top: 10px;
}

.ngx-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  gap: 8px;
}

.ngx-empty-art {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eefaf4;
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 4px;
}

.ngx-empty-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #344054;
}

.ngx-empty-state span {
  font-size: 13px;
  line-height: 1.45;
  color: #98a2b3;
  max-width: 240px;
}

.ngx-terms-doc {
  padding: 16px;
  color: #344054;
  line-height: 1.55;
  background: #fff;
  min-height: 100%;
}

.ngx-terms-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #00905c, #00b876);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.ngx-terms-doc h2,
.ngx-terms-doc h3 {
  color: #101828;
}

.ngx-risk-box {
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
}

.ngx-terms-foot {
  margin-top: 24px;
  font-size: 12px;
  color: #98a2b3;
}

#ngx-proceed-modal,
#ngx-receipt-modal {
  align-items: flex-end;
}

#ngx-proceed-modal .ngx-sheet,
#ngx-receipt-modal .ngx-receipt-wrap {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 24px;
  animation: slideUp .2s ease;
}

.ngx-sheet-icon {
  margin: 0 auto 12px;
}

.ngx-sheet h3,
.ngx-sheet-sub {
  text-align: center;
}

.ngx-sheet-sub {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
}

.ngx-sheet-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.ngx-sheet-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ngx-sheet-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--opay-light);
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

.ngx-sheet-item-copy strong {
  display: block;
  color: #101828;
  margin-bottom: 2px;
  font-size: 13px;
}

.ngx-sheet-item-copy p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.ngx-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ngx-receipt-wrap {
  background: transparent !important;
  padding-bottom: 8px !important;
}

.ngx-receipt-card {
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.ngx-receipt-card::after {
  content: '';
  display: block;
  height: 14px;
  background:
    radial-gradient(circle at 10px -4px, transparent 8px, #fff 8px) repeat-x;
  background-size: 20px 14px;
}

.ngx-receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 0;
}

.ngx-receipt-tag {
  background: #eff8ff;
  color: #175cd3;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.ngx-receipt-brand {
  width: 28px;
  height: 28px;
}

.ngx-receipt-amt {
  font-size: 34px;
  font-weight: 800;
  padding: 8px 16px 0;
  color: #101828;
}

.ngx-receipt-panel {
  margin: 12px;
  background: #f7faf8;
  border-radius: 14px;
  padding: 8px 12px;
}

.ngx-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eaecf0;
  font-size: 13px;
}

.ngx-receipt-row:last-child {
  border-bottom: 0;
}

.ngx-receipt-row span {
  color: #667085;
}

.ngx-receipt-row strong {
  text-align: right;
  color: #101828;
  max-width: 58%;
  word-break: break-word;
}

.btn.disabled,
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 420px) {
  .ngx-offer-metrics,
  .ngx-success-actions,
  .ngx-sheet-actions {
    grid-template-columns: 1fr;
  }
}
