:root {
    --bg: #07111f;
    --bg-soft: #0c1929;
    --panel: #ffffff;
    --panel-soft: #f5f8fb;
    --ink: #102033;
    --muted: #6b7787;
    --line: #dfe7ef;
    --accent: #18c6a3;
    --accent-dark: #0da98a;
    --blue: #2b78ff;
    --warning: #f3a53b;
    --shadow: 0 24px 70px rgba(8, 22, 38, .12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    background: #eef3f7;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.nfc-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
    text-decoration: none;
}

.nfc-brand-mark {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(24,198,163,.28), rgba(43,120,255,.22));
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-weight: 900;
}

.nfc-brand-mark::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 7px;
    top: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(24,198,163,.8);
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(520px, 1.1fr);
}

.auth-story {
    position: relative;
    overflow: hidden;
    padding: 42px clamp(32px, 5vw, 74px);
    background:
        radial-gradient(circle at 15% 20%, rgba(24,198,163,.18), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(43,120,255,.20), transparent 38%),
        var(--bg);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.auth-story-main {
    margin: auto 0;
    max-width: 610px;
}

.auth-kicker {
    color: #69e0c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-story h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .98;
    letter-spacing: -.055em;
}

.auth-story p {
    max-width: 560px;
    color: #b9c7d6;
    font-size: 17px;
    line-height: 1.7;
}

.auth-points {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.auth-point {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #dbe5ef;
    font-size: 14px;
}

.auth-point span:first-child {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #05221d;
    background: var(--accent);
    font-weight: 900;
}

.auth-main {
    padding: 48px clamp(28px, 7vw, 96px);
    background: #f7f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 590px);
}

.auth-card-header {
    margin-bottom: 30px;
}

.auth-card-header h2 {
    margin: 0 0 9px;
    font-size: 36px;
    letter-spacing: -.04em;
}

.auth-card-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.field {
    display: grid;
    gap: 7px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 750;
}

.field input,
.field select {
    width: 100%;
    height: 50px;
    border: 1px solid #ced9e3;
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 4px rgba(24,198,163,.11);
}

.form-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #536273;
    font-size: 13px;
    line-height: 1.55;
}

.check-row input {
    margin-top: 3px;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    background: var(--accent);
    color: #06221d;
    font-weight: 850;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.primary-button:hover {
    background: #23d4b0;
    transform: translateY(-1px);
}

.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #ced9e3;
    background: #fff;
    text-decoration: none;
    font-weight: 750;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-switch a {
    color: #087b68;
    font-weight: 800;
}

.auth-status {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #e9f8f4;
    border: 1px solid #bceade;
    color: #176b5c;
    font-size: 13px;
    line-height: 1.5;
}

.auth-status.is-visible {
    display: block;
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 27px 18px 22px;
    background: var(--bg);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.portal-sidebar .nfc-brand {
    margin: 0 11px 30px;
}

.portal-nav {
    display: grid;
    gap: 4px;
}

.portal-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    color: #aebdcb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.portal-nav a:hover,
.portal-nav a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.nav-icon {
    width: 23px;
    text-align: center;
    opacity: .9;
}

.portal-sidebar-footer {
    margin-top: auto;
    padding: 18px 11px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.portal-user {
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

.portal-user-status {
    margin-top: 5px;
    color: #7f92a4;
    font-size: 11px;
}

.portal-main {
    min-width: 0;
}

.portal-topbar {
    min-height: 78px;
    padding: 0 clamp(24px, 4vw, 54px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-topbar-title {
    font-size: 15px;
    font-weight: 800;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-pill {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9f8f4;
    color: #13705f;
    font-size: 11px;
    font-weight: 800;
}

.portal-content {
    padding: 38px clamp(24px, 4vw, 54px) 70px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 0 0 7px;
    font-size: 34px;
    letter-spacing: -.04em;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.progress-panel {
    padding: 24px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0b1a2b, #10283c);
    color: #fff;
    box-shadow: var(--shadow);
}

.progress-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.progress-panel h2 {
    margin: 0;
    font-size: 19px;
}

.progress-panel p {
    margin: 6px 0 0;
    color: #aebdcc;
    font-size: 13px;
}

.progress-value {
    color: #66dec7;
    font-size: 14px;
    font-weight: 850;
}

.progress-track {
    height: 8px;
    margin-top: 19px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.11);
}

.progress-fill {
    width: 14%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(17,37,57,.045);
}

.portal-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.portal-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.portal-card-action {
    display: inline-flex;
    margin-top: 17px;
    color: #087b68;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.card-state {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef3f7;
    color: #647384;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.card-state.next {
    background: #e8f8f4;
    color: #13705f;
}

.portal-form {
    max-width: 900px;
    padding: 27px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.portal-form h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.portal-form > p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.placeholder-panel {
    padding: 34px;
    border: 1px dashed #bfcbd7;
    border-radius: 18px;
    background: rgba(255,255,255,.62);
}

.placeholder-panel h2 {
    margin: 0 0 8px;
}

.placeholder-panel p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.mobile-nav-button {
    display: none;
}

@media (max-width: 1000px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: 380px;
    }

    .auth-story h1 {
        font-size: 48px;
    }

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

@media (max-width: 780px) {
    .portal-shell {
        display: block;
    }

    .portal-sidebar {
        position: fixed;
        z-index: 30;
        left: 0;
        top: 0;
        width: 260px;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    body.portal-menu-open .portal-sidebar {
        transform: translateX(0);
    }

    .mobile-nav-button {
        display: inline-flex;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 10px;
        min-width: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

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

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

    .field-full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .auth-story {
        padding: 30px 24px;
        min-height: 330px;
    }

    .auth-story h1 {
        font-size: 40px;
    }

    .auth-main {
        padding: 36px 20px 50px;
    }

    .auth-card-header h2 {
        font-size: 30px;
    }

    .portal-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .portal-topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ========================================================================
   NFC PAL — Merchant Account Experience
   F1C-D4A/B-3B
   ======================================================================== */

.merchant-account-page {
  max-width: 1500px;
}

.merchant-security-badge,
.merchant-load-state,
.merchant-provider-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
}

.merchant-security-badge {
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  font-size: 13px;
}

.merchant-security-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
}

.merchant-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr);
  gap: 28px;
  padding: 32px;
  margin: 24px 0 34px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 38%),
    #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.merchant-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.merchant-hero-card h2,
.merchant-section h2,
.merchant-boundary-card h2 {
  margin: 0;
  color: #0f172a;
}

.merchant-hero-card h2 {
  max-width: 760px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.merchant-hero-card p {
  max-width: 820px;
  margin: 18px 0 0;
  line-height: 1.7;
  color: #475569;
}

.merchant-hero-status {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
}

.merchant-status-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .7;
}

.merchant-hero-status strong {
  font-size: 24px;
}

.merchant-hero-status small {
  margin-top: 8px;
  line-height: 1.5;
  opacity: .72;
}

.merchant-section {
  margin: 0 0 34px;
}

.merchant-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.merchant-load-state {
  padding: 8px 12px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
}

.merchant-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.merchant-provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.merchant-provider-card.recommended {
  border-color: rgba(37, 99, 235, .35);
}

.merchant-provider-card.recommended::before {
  content: "GENERAL BUSINESS";
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 11px;
  border-radius: 0 20px 0 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.merchant-provider-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 40px;
}

.merchant-provider-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 900;
  font-size: 18px;
}

.merchant-provider-name {
  margin: 0;
  font-size: 19px;
  color: #0f172a;
}

.merchant-provider-category {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
}

.merchant-provider-description {
  flex: 1;
  margin: 20px 0;
  color: #475569;
  line-height: 1.6;
  font-size: 14px;
}

.merchant-provider-status {
  width: fit-content;
  padding: 7px 10px;
  margin-bottom: 15px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.merchant-provider-action {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 12px;
  background: #e2e8f0;
  color: #64748b;
  font: inherit;
  font-weight: 800;
  cursor: not-allowed;
}

.merchant-information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.merchant-info-card {
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
}

.merchant-info-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

.merchant-info-card h3 {
  margin: 0 0 9px;
  color: #0f172a;
}

.merchant-info-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

.merchant-boundary-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 28px 30px;
  border-radius: 20px;
  background: #0f172a;
  color: #fff;
}

.merchant-boundary-card h2 {
  color: #fff;
}

.merchant-boundary-card p {
  margin: 0;
  align-self: center;
  line-height: 1.7;
  opacity: .76;
}

.merchant-provider-skeleton {
  height: 285px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    #f1f5f9 25%,
    #f8fafc 37%,
    #f1f5f9 63%
  );
}

@media (max-width: 1050px) {
  .merchant-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merchant-information-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .merchant-hero-card,
  .merchant-boundary-card,
  .merchant-provider-grid {
    grid-template-columns: 1fr;
  }

  .merchant-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .merchant-hero-card {
    padding: 22px;
  }
}

/* ========================================================================
   NFC PAL — Signup Controls
   D4D-3D.7E.7B
   ======================================================================== */

.check-row input[type="checkbox"],
.password-visibility-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    padding: 0;
    margin: 2px 0 0;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

.terms-check-row {
    align-items: flex-start;
}

.password-visibility-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #536273;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.password-visibility-control span {
    line-height: 18px;
}

.primary-button:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.auth-status.is-error {
    color: #9f2d2d;
    background: #fff2f2;
    border-color: #f0caca;
}

.auth-status.is-success {
    color: #12604f;
    background: #edf9f6;
    border-color: #bde9df;
}


/* NFC PAL A36.4C — ACTIVE NAVIGATION TEAL */

/*
 * Change only the active navigation link's foreground color.
 * Preserve existing active background, spacing and hover styling.
 */

.portal-sidebar .portal-nav a.active,
.portal-sidebar .portal-nav a.active:link,
.portal-sidebar .portal-nav a.active:visited,
.portal-sidebar .portal-nav a.active:hover,
.portal-sidebar .portal-nav a.active:focus,
.portal-sidebar .portal-nav a[aria-current="page"],
.portal-sidebar .portal-nav a[aria-current="page"]:hover {
    color: #86E2ED !important;
}

.portal-sidebar .portal-nav a.active .nav-icon,
.portal-sidebar .portal-nav a.active .nav-icon *,
.portal-sidebar .portal-nav a[aria-current="page"] .nav-icon,
.portal-sidebar .portal-nav a[aria-current="page"] .nav-icon * {
    color: #86E2ED !important;
}

/* END NFC PAL A36.4C */
