:root {
    --ams-primary: #eb5310;
    --ams-primary-dark: #b33f08;
    --ams-accent: #eb5310;
    --ams-highlight: #c3f000;
    --ams-surface: #f7f3f7;
    --ams-surface-strong: #ffffff;
    --ams-text: #1c2331;
    --ams-muted: #5f6572;
    --ams-border: rgba(235, 83, 16, 0.14);
    --ams-shadow: 0 18px 45px rgba(121, 42, 8, 0.14);
    --ams-radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ams-text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(195, 240, 0, 0.18), transparent 24%),
        radial-gradient(circle at right center, rgba(235, 83, 16, 0.16), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #f8f4f8 48%, #ffffff 100%);
}

h1, h2, h3, h4, h5, h6, .navbar-brand strong {
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.topbar {
    background: var(--ams-primary-dark);
    color: #fff;
    font-size: 0.92rem;
    padding: 0.85rem 0;
}

.topbar a {
    color: #fff;
}

.ams-navbar {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(235, 83, 16, 0.08);
}

.brand-logo,
.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.35rem;
}

.brand-copy small {
    color: var(--ams-muted);
    font-size: 0.82rem;
}

.nav-link {
    font-weight: 700;
    color: var(--ams-text);
    padding: 0.75rem 1rem !important;
    border-radius: 999px;
}

.nav-link.active,
.nav-link:hover {
    color: var(--ams-primary);
    background: rgba(235, 83, 16, 0.08);
}

.btn-brand {
    background: linear-gradient(135deg, var(--ams-accent), #ff8b4c);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.45rem;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(235, 83, 16, 0.28);
}

.btn-brand:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-brand {
    border: 2px solid var(--ams-primary);
    color: var(--ams-primary);
    border-radius: 999px;
    padding: 0.95rem 1.45rem;
    font-weight: 800;
}

.btn-outline-brand:hover {
    background: var(--ams-primary);
    color: #fff;
}

.hero-section,
.inner-hero {
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 5.5rem 0 4rem;
}

.inner-hero {
    padding: 4.5rem 0 3rem;
}

.inner-hero-image {
    background:
        linear-gradient(100deg, rgba(121, 42, 8, 0.92), rgba(235, 83, 16, 0.7)),
        url("../img/hero-community.png") center/cover no-repeat;
    color: #fff;
}

.inner-hero-loan {
    background:
        linear-gradient(120deg, rgba(179, 63, 8, 0.93), rgba(235, 83, 16, 0.74)),
        url("../img/hero-community.png") center/cover no-repeat;
    color: #fff;
}

.eyebrow,
.mini-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.eyebrow {
    font-size: 0.76rem;
    color: var(--ams-primary);
    margin-bottom: 1rem;
}

.inner-hero .eyebrow,
.inner-hero-loan .eyebrow,
.mini-label {
    color: var(--ams-highlight);
}

.hero-section h1,
.inner-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.9rem);
    line-height: 0.95;
    margin-bottom: 1.25rem;
}

.hero-copy,
.inner-hero p,
.section-title p,
.section-card p,
.info-panel p,
.benefit-card p,
.program-card p,
.value-card p,
.contact-card p,
.loan-highlight p,
.mission-panel p,
.cta-shell p {
    color: var(--ams-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.inner-hero-loan p {
    color: rgba(255, 255, 255, 0.86);
}

.inner-hero-image p {
    color: rgba(255, 255, 255, 0.84);
    max-width: 60ch;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    animation: floatOrb 7s ease-in-out infinite;
}

.hero-orb-one {
    width: 220px;
    height: 220px;
    background: rgba(195, 240, 0, 0.18);
    top: 70px;
    left: -60px;
}

.hero-orb-two {
    width: 280px;
    height: 280px;
    background: rgba(235, 83, 16, 0.16);
    right: -80px;
    bottom: 20px;
    animation-delay: 1.2s;
}

.hero-visual {
    position: relative;
    min-height: 540px;
    isolation: isolate;
}

.hero-card-glow {
    position: absolute;
    inset: auto -30px -20px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(195, 240, 0, 0.62), transparent 68%);
    z-index: -1;
    animation: pulseGlow 5s ease-in-out infinite;
}

.hero-photo-frame {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(9, 38, 36, 0.24);
    border: 10px solid rgba(255, 255, 255, 0.58);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 32, 31, 0.04), rgba(7, 32, 31, 0.36));
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 50px rgba(8, 45, 43, 0.18);
    border-radius: 24px;
    padding: 1rem 1.15rem;
    max-width: 240px;
    animation: floatCard 6.5s ease-in-out infinite;
}

.floating-badge span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ams-primary);
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.floating-badge strong {
    font-size: 1rem;
    line-height: 1.5;
}

.badge-top {
    top: 26px;
    left: -18px;
}

.badge-bottom {
    right: -22px;
    bottom: 24px;
    animation-delay: 1.4s;
}

.hero-metrics .metric-card {
    background: #fff;
    border: 1px solid var(--ams-border);
    border-radius: 22px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 10px 25px rgba(18, 41, 40, 0.05);
    height: 100%;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    font-family: "Outfit", sans-serif;
    color: var(--ams-primary);
}

.metric-card span {
    color: var(--ams-muted);
}

.story-visual-shell {
    position: relative;
}

.story-image-wrap {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 50px rgba(121, 42, 8, 0.18);
    margin-bottom: 1.25rem;
}

.story-image,
.impact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image {
    min-height: 320px;
    max-height: 390px;
}

.story-panel-grid {
    position: relative;
    z-index: 1;
}

.story-copy-card,
.impact-shell {
    position: relative;
    overflow: hidden;
}

.section-space {
    padding: 4.5rem 0;
}

.section-card,
.info-panel,
.benefit-card,
.program-card,
.value-card,
.contact-card,
.loan-highlight,
.mission-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius);
    box-shadow: var(--ams-shadow);
}

.section-card,
.contact-card,
.loan-highlight,
.mission-panel {
    padding: 2rem;
}

.accent-card {
    background: linear-gradient(180deg, rgba(235, 83, 16, 0.98), rgba(235, 83, 16, 0.9));
    color: #fff;
}

.accent-card p,
.accent-card .eyebrow {
    color: rgba(255, 255, 255, 0.84);
}

.info-panel {
    padding: 1.4rem;
    height: 100%;
}

.info-panel h3,
.benefit-card h3,
.program-card h3,
.value-card h3,
.loan-highlight h3,
.contact-card h2,
.section-card h2,
.mission-panel h3,
.cta-shell h2 {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
}

.section-title {
    max-width: 760px;
}

.impact-shell {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 247, 0.96));
    border: 1px solid var(--ams-border);
    border-radius: 36px;
    box-shadow: var(--ams-shadow);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
}

.impact-image-column {
    min-height: 100%;
}

.impact-image {
    height: 100%;
    min-height: 420px;
}

.impact-copy {
    padding: 2.5rem;
}

.impact-points {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.impact-point {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(235, 83, 16, 0.09);
}

.impact-point strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
}

.impact-point span {
    color: var(--ams-muted);
}

.portal-help-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
}

.benefit-card,
.program-card,
.value-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    height: 100%;
}

.benefit-card::before,
.program-card::before,
.value-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--ams-primary), var(--ams-highlight));
}

.benefit-number,
.program-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ams-primary);
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

#benefits-grid .col-md-6,
#programs-list .col-md-6 {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

#benefits-grid .col-md-6:nth-child(2),
#programs-list .col-md-6:nth-child(2) {
    animation-delay: 0.12s;
}

#benefits-grid .col-md-6:nth-child(3),
#programs-list .col-md-6:nth-child(3) {
    animation-delay: 0.24s;
}

#programs-list .col-md-6:nth-child(4) {
    animation-delay: 0.36s;
}

#programs-list .col-md-6:nth-child(5) {
    animation-delay: 0.48s;
}

#programs-list .col-md-6:nth-child(6) {
    animation-delay: 0.6s;
}

.mission-panel {
    background: linear-gradient(145deg, var(--ams-primary), #ff8b4c);
    color: #fff;
    position: relative;
}

.mission-panel p {
    color: rgba(255, 255, 255, 0.88);
}

.quote-mark {
    font-size: 5rem;
    line-height: 0.8;
    color: rgba(195, 240, 0, 0.64);
}

.step-list {
    display: grid;
    gap: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(235, 83, 16, 0.1);
}

.step-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.step-index {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--ams-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-list {
    padding-left: 1.1rem;
    margin: 0;
}

.feature-list li {
    margin-bottom: 0.85rem;
    color: var(--ams-text);
    line-height: 1.7;
}

.accordion-item {
    border: 1px solid var(--ams-border);
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-button {
    font-weight: 700;
    padding: 1.1rem 1.2rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(235, 83, 16, 0.08);
    color: var(--ams-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.contact-stack {
    display: grid;
    gap: 1.15rem;
}

.contact-stack strong {
    display: block;
    margin-bottom: 0.3rem;
}

.contact-office-intro {
    max-width: 620px;
    margin-bottom: 2rem;
}

.contact-office-intro h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.office-list {
    display: grid;
    gap: 1.4rem;
}

.office-card {
    background: linear-gradient(180deg, #fff8e9, #fff6df);
    border: 1px solid rgba(235, 83, 16, 0.45);
    border-radius: 26px;
    padding: 1.55rem;
    box-shadow: 0 16px 34px rgba(235, 83, 16, 0.09);
}

.office-label {
    color: var(--ams-accent);
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.office-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(235, 83, 16, 0.14);
    font-size: 0.9rem;
}

.office-address {
    color: #5d5567;
    font-size: 1.06rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.office-phone,
.office-meta a,
.contact-extra-links a {
    color: var(--ams-accent);
    font-weight: 700;
}

.office-meta,
.contact-extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}

.contact-extra {
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(235, 83, 16, 0.08);
}

.contact-extra strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.contact-extra p {
    margin-bottom: 0.85rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ams-border);
    border-radius: 30px;
    box-shadow: var(--ams-shadow);
    padding: 2rem;
}

.demo-note,
.demo-otp-box {
    margin-top: 1rem;
    background: rgba(235, 83, 16, 0.1);
    border: 1px dashed rgba(235, 83, 16, 0.48);
    border-radius: 18px;
    padding: 0.95rem 1rem;
}

.demo-otp-box span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ams-accent);
    font-weight: 800;
}

.demo-otp-box strong {
    display: block;
    font-size: 2rem;
    font-family: "Outfit", sans-serif;
    margin-top: 0.25rem;
}

.portal-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.portal-sidebar {
    position: sticky;
    top: 124px;
    display: grid;
    gap: 1rem;
}

.portal-brand-card,
.portal-nav,
.dashboard-shell,
.eligibility-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ams-border);
    border-radius: 28px;
    box-shadow: var(--ams-shadow);
    padding: 1.5rem;
}

.portal-nav {
    display: grid;
    gap: 1rem;
}

.portal-link,
.portal-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    font-weight: 700;
    background: rgba(235, 83, 16, 0.06);
}

.portal-link.active,
.portal-sublink.active {
    background: rgba(235, 83, 16, 0.16);
    color: #b33f08;
}

.portal-group {
    display: grid;
    gap: 0.75rem;
}

.portal-group-title {
    font-family: "Outfit", sans-serif;
    font-size: 0.98rem;
    color: var(--ams-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.portal-status {
    font-size: 0.78rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-weight: 800;
}

.portal-status.done {
    background: rgba(235, 83, 16, 0.16);
    color: #b33f08;
}

.portal-status.pending {
    background: rgba(235, 83, 16, 0.14);
    color: #b33f08;
}

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

.dashboard-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reference-chip {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(235, 83, 16, 0.14);
    color: var(--ams-accent);
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 1rem;
}

.activation-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(235, 83, 16, 0.45);
    border-radius: 22px;
    background: linear-gradient(110deg, rgba(255, 247, 233, 0.98), rgba(255, 255, 255, 0.94));
}

.activation-panel h3 {
    margin: 0.25rem 0 0.4rem;
    font-size: 1.3rem;
}

.activation-panel p,
.tree-share-bar p {
    margin: 0;
    color: var(--ams-muted);
}

.share-reference {
    display: grid;
    gap: 0.55rem;
    min-width: 190px;
    text-align: right;
}

.share-reference strong {
    color: #b33f08;
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
}

.dashboard-tile {
    padding: 1.25rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(235, 83, 16, 0.18);
    box-shadow: 0 12px 28px rgba(121, 42, 8, 0.08);
}

.dashboard-tile span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b33f08;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.dashboard-tile strong {
    font-size: 1.05rem;
    font-family: "Outfit", sans-serif;
}

.portal-progress {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.progress-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(235, 83, 16, 0.18);
}

.progress-step strong {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(235, 83, 16, 0.12);
    color: var(--ams-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
}

.progress-step.done strong {
    background: rgba(235, 83, 16, 0.2);
    color: #b33f08;
}

.progress-step h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.progress-step p {
    margin: 0;
    color: var(--ams-muted);
}

.portal-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-card {
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 236, 0.95));
    border: 1px solid rgba(235, 83, 16, 0.16);
    box-shadow: 0 14px 26px rgba(121, 42, 8, 0.08);
}

.action-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
}

.action-card p {
    margin: 0;
    color: var(--ams-muted);
}

.legal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(235, 83, 16, 0.08);
}

.legal-check .form-check-input {
    margin-top: 0.3rem;
}

.upload-note {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--ams-muted);
}

.payment-highlight {
    display: grid;
    gap: 0.9rem;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(235, 83, 16, 0.18);
}

.payment-row span {
    color: var(--ams-muted);
}

.payment-row strong {
    font-family: "Outfit", sans-serif;
}

.eligibility-card.is-eligible {
    background: linear-gradient(135deg, #c93d08, var(--ams-accent));
    color: #fff;
}

.eligibility-card.is-pending {
    background: linear-gradient(135deg, rgba(255, 248, 233, 0.96), rgba(255, 244, 225, 0.96));
}

.eligibility-card.is-eligible p,
.eligibility-card.is-eligible .eyebrow {
    color: rgba(255, 255, 255, 0.86);
}

.eligibility-checklist {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ams-text);
}

.check-item.done {
    border: 1px solid rgba(235, 83, 16, 0.42);
}

.tree-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ams-border);
    border-radius: 28px;
    box-shadow: var(--ams-shadow);
    padding: 1.5rem;
}

.tree-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.4rem 0;
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(235, 83, 16, 0.1);
}

.leg-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.leg-summary-card {
    padding: 1.1rem;
    border: 1px solid rgba(235, 83, 16, 0.22);
    border-radius: 20px;
    background: #fff;
}

.leg-summary-card span,
.leg-summary-card small {
    display: block;
    color: var(--ams-muted);
}

.leg-summary-card span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.leg-summary-card strong {
    display: block;
    margin: 0.35rem 0;
    color: #b33f08;
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
}

.member-tree {
    margin-top: 2rem;
    padding: 1.4rem 0 0;
    text-align: center;
    overflow: hidden;
}

.tree-node {
    display: grid;
    gap: 0.3rem;
    width: min(100%, 250px);
    margin: 0 auto;
    padding: 1.1rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(235, 83, 16, 0.28);
    box-shadow: 0 12px 28px rgba(121, 74, 21, 0.09);
}

.tree-node span {
    color: #b33f08;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tree-node strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
}

.tree-node small {
    color: var(--ams-muted);
}

.tree-node-root {
    background: linear-gradient(135deg, #c93d08, var(--ams-accent));
    border-color: transparent;
    color: #fff;
}

.tree-node-root span,
.tree-node-root small {
    color: rgba(255, 255, 255, 0.84);
}

.tree-node-empty {
    border-style: dashed;
    background: rgba(255, 249, 239, 0.9);
}

.tree-branches {
    width: 50%;
    height: 42px;
    margin: 0 auto;
    border: solid rgba(235, 83, 16, 0.58);
    border-width: 0 0 0 2px;
    position: relative;
}

.tree-branches::before {
    content: "";
    position: absolute;
    left: 0;
    right: -100%;
    bottom: 0;
    border-top: 2px solid rgba(235, 83, 16, 0.58);
}

.tree-legs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    position: relative;
}

.tree-legs::before,
.tree-legs::after {
    content: "";
    position: absolute;
    top: -42px;
    height: 42px;
    border-left: 2px solid rgba(235, 83, 16, 0.58);
}

.tree-legs::before {
    left: 25%;
}

.tree-legs::after {
    right: 25%;
}

.network-dashboard {
    display: grid;
    gap: 1.25rem;
}

.network-heading,
.network-referral-card,
.network-tree-card,
.network-next-step {
    border: 1px solid var(--ams-border);
    border-radius: 28px;
    box-shadow: var(--ams-shadow);
}

.network-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.94);
}

.network-heading h2 {
    margin: 0.2rem 0 0.5rem;
}

.network-heading p {
    max-width: 570px;
    margin: 0;
    color: var(--ams-muted);
}

.network-account-status,
.network-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.network-account-status {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(235, 83, 16, 0.12);
    color: var(--ams-primary-dark);
    white-space: nowrap;
}

.network-account-status span,
.network-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ams-accent);
    box-shadow: 0 0 0 4px rgba(235, 83, 16, 0.14);
}

.network-referral-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(110deg, #fff6f0, #fff);
}

.network-kicker {
    display: block;
    color: var(--ams-primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.network-referral-card strong {
    display: block;
    margin: 0.35rem 0;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    letter-spacing: 0.04em;
}

.network-referral-card p {
    margin: 0;
    color: var(--ams-muted);
}

.network-referral-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.network-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.network-metric {
    min-height: 168px;
    padding: 1.25rem;
    border: 1px solid rgba(235, 83, 16, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
}

.network-metric-emphasis {
    background: linear-gradient(135deg, #c93d08, var(--ams-accent));
    border-color: transparent;
    color: #fff;
}

.network-metric span,
.network-metric small {
    display: block;
    color: var(--ams-muted);
}

.network-metric span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.network-metric strong {
    display: block;
    margin: 0.5rem 0 0.3rem;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
}

.network-metric-emphasis span,
.network-metric-emphasis strong,
.network-metric-emphasis small {
    color: #fff;
}

.network-metric-emphasis small {
    color: rgba(255, 255, 255, 0.84);
}

.metric-progress {
    height: 7px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(235, 83, 16, 0.14);
}

.metric-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ams-accent);
}

.network-metric-emphasis .metric-progress {
    background: rgba(255, 255, 255, 0.25);
}

.network-metric-emphasis .metric-progress i {
    background: #fff;
}

.network-tree-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
}

.network-tree-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.network-tree-title h3 {
    margin: 0.25rem 0 0;
    font-size: 1.35rem;
}

.network-legend {
    color: var(--ams-muted);
    white-space: nowrap;
}

.tree-node {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tree-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(121, 42, 8, 0.14);
}

.tree-node-complete {
    border-color: rgba(235, 83, 16, 0.48);
    background: linear-gradient(145deg, #fff, #fff2e9);
}

.network-next-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    background: #fff;
}

.network-next-step-number {
    display: inline-flex;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(235, 83, 16, 0.12);
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-weight: 800;
}

.network-next-step strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
}

.network-next-step p {
    margin: 0.25rem 0 0;
    color: var(--ams-muted);
}

.network-next-step .btn {
    margin-left: auto;
    white-space: nowrap;
}

.leg-detail-dashboard {
    display: grid;
    gap: 1.25rem;
}

.leg-detail-heading,
.leg-share-card,
.placement-grid,
.leg-bottom-actions {
    border-radius: 28px;
}

.leg-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ams-border);
    box-shadow: var(--ams-shadow);
}

.leg-detail-heading h2 {
    margin: 0.25rem 0 0.5rem;
}

.leg-detail-heading p {
    margin: 0;
    color: var(--ams-muted);
}

.leg-completion-badge {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(235, 83, 16, 0.12);
    color: var(--ams-primary-dark);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.leg-share-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(110deg, #fff4ed, #fff);
    border: 1px solid rgba(235, 83, 16, 0.28);
}

.leg-share-card span {
    display: block;
    color: var(--ams-primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.leg-share-card strong {
    display: block;
    margin: 0.35rem 0;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.leg-share-card p {
    margin: 0;
    color: var(--ams-muted);
}

.placement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.placement-card {
    position: relative;
    min-height: 205px;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(235, 83, 16, 0.2);
    border-radius: 24px;
    background: #fff;
}

.placement-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -45px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(235, 83, 16, 0.08);
}

.placement-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(235, 83, 16, 0.12);
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-weight: 800;
}

.placement-card span,
.placement-card p {
    display: block;
    color: var(--ams-muted);
}

.placement-card span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.placement-card strong {
    display: block;
    margin: 0.35rem 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
}

.placement-card p {
    margin: 0;
    max-width: 230px;
}

.placement-status {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #fff2e9;
    color: var(--ams-primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.member-detail-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, 1.1fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px dashed rgba(235, 83, 16, 0.4);
    border-radius: 26px;
    background: #fffaf6;
}

.member-detail-card.is-paid {
    border-style: solid;
    background: linear-gradient(110deg, #fff, #fff1e8);
}

.member-detail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(235, 83, 16, 0.12);
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.member-detail-card.is-paid .member-detail-avatar {
    background: var(--ams-primary);
    color: #fff;
}

.member-detail-info span,
.member-detail-fields span {
    display: block;
    color: var(--ams-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-detail-info h3 {
    margin: 0.3rem 0;
    font-size: 1.35rem;
}

.member-detail-info p {
    margin: 0;
    color: var(--ams-muted);
}

.member-detail-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.member-detail-fields > div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(235, 83, 16, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.member-detail-fields strong {
    display: block;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 0.98rem;
}

.member-payment.is-paid {
    color: #a43a08;
}

.placement-filled {
    border-color: rgba(235, 83, 16, 0.46);
    background: linear-gradient(145deg, #fff, #fff3eb);
}

.placement-filled .placement-status {
    background: var(--ams-primary);
    color: #fff;
}

.leg-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 0;
}

.team-eligibility-dashboard {
    display: grid;
    gap: 1.25rem;
}

.team-eligibility-heading,
.team-review-note,
.team-leg-review-card {
    border: 1px solid var(--ams-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ams-shadow);
}

.team-eligibility-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem;
}

.team-eligibility-heading h2 {
    margin: 0.25rem 0 0.5rem;
}

.team-eligibility-heading p {
    max-width: 640px;
    margin: 0;
    color: var(--ams-muted);
}

.team-ready-badge {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: #fff1e8;
    color: var(--ams-primary-dark);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.team-ready-badge.is-ready {
    background: var(--ams-primary);
    color: #fff;
}

.team-eligibility-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-eligibility-metrics article {
    padding: 1.2rem;
    border: 1px solid rgba(235, 83, 16, 0.2);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #fff5ef);
}

.team-eligibility-metrics span,
.team-eligibility-metrics small {
    display: block;
    color: var(--ams-muted);
}

.team-eligibility-metrics span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-eligibility-metrics strong {
    display: block;
    margin: 0.4rem 0;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
}

.team-review-note {
    padding: 1.2rem 1.35rem;
    background: rgba(235, 83, 16, 0.08);
}

.team-review-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 1.12rem;
}

.team-review-note p {
    margin: 0;
    color: var(--ams-muted);
}

.team-leg-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.team-leg-review-card {
    overflow: hidden;
}

.team-leg-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    background: linear-gradient(110deg, #fff4ed, #fff);
    border-bottom: 1px solid rgba(235, 83, 16, 0.14);
}

.team-leg-review-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.team-leg-review-header span {
    color: var(--ams-primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.team-member-list {
    display: grid;
}

.team-member-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(235, 83, 16, 0.1);
}

.team-member-row:last-child {
    border-bottom: 0;
}

.team-member-avatar {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #fff2e9;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-weight: 800;
}

.team-member-row.is-placed .team-member-avatar {
    background: var(--ams-primary);
    color: #fff;
}

.team-member-row strong,
.team-member-row small {
    display: block;
}

.team-member-row strong {
    font-family: "Outfit", sans-serif;
}

.team-member-row small {
    color: var(--ams-muted);
    font-size: 0.78rem;
}

.team-member-status {
    margin-left: auto;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #fff2e9;
    color: var(--ams-primary-dark);
    font-size: 0.73rem;
    font-weight: 800;
    white-space: nowrap;
}

.team-member-status.pending {
    background: rgba(235, 83, 16, 0.14);
}

.team-eligibility-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.enquiry-card {
    height: 100%;
}

.enquiry-copy {
    margin-bottom: 1rem;
}

.map-showcase {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(249, 244, 235, 0.95));
    border: 1px solid rgba(235, 83, 16, 0.16);
    border-radius: 32px;
    box-shadow: var(--ams-shadow);
    padding: 2rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
}

.map-copy h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    margin-bottom: 0.9rem;
}

.map-panel {
    display: grid;
    gap: 1rem;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.map-pin-card {
    background: #fff;
    border: 1px solid rgba(235, 83, 16, 0.08);
    border-radius: 22px;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.map-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ams-accent);
    margin-top: 0.35rem;
    box-shadow: 0 0 0 8px rgba(235, 83, 16, 0.12);
    flex-shrink: 0;
}

.map-dot-secondary {
    background: var(--ams-primary);
    box-shadow: 0 0 0 8px rgba(235, 83, 16, 0.12);
}

.map-pin-card strong {
    display: block;
    font-family: "Outfit", sans-serif;
    margin-bottom: 0.25rem;
}

.map-pin-card p {
    margin: 0;
    color: var(--ams-muted);
}

.map-surface {
    position: relative;
    min-height: 270px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(235, 83, 16, 0.06), rgba(235, 83, 16, 0.08)),
        repeating-linear-gradient(
            0deg,
            rgba(235, 83, 16, 0.08) 0,
            rgba(235, 83, 16, 0.08) 1px,
            transparent 1px,
            transparent 48px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(235, 83, 16, 0.08) 0,
            rgba(235, 83, 16, 0.08) 1px,
            transparent 1px,
            transparent 48px
        );
    border: 1px solid rgba(235, 83, 16, 0.08);
}

.map-route {
    position: absolute;
    border: 3px dashed rgba(235, 83, 16, 0.45);
    border-color: rgba(235, 83, 16, 0.45) transparent transparent transparent;
    border-radius: 50%;
}

.map-route-one {
    width: 240px;
    height: 160px;
    top: 48px;
    left: 62px;
    transform: rotate(10deg);
}

.map-route-two {
    width: 170px;
    height: 110px;
    top: 114px;
    left: 160px;
    transform: rotate(-18deg);
}

.map-bubble {
    position: absolute;
    padding: 0.7rem 0.95rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(121, 42, 8, 0.12);
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
}

.map-bubble::before {
    content: "";
    position: absolute;
    left: 16px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.map-bubble-one {
    top: 58px;
    left: 38px;
}

.map-bubble-two {
    bottom: 42px;
    right: 34px;
}

.form-control,
.form-select {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    border-color: rgba(235, 83, 16, 0.2);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ams-primary);
    box-shadow: 0 0 0 0.25rem rgba(235, 83, 16, 0.12);
}

.form-message {
    color: var(--ams-primary);
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px);
    transition: 0.25s ease;
}

.form-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-shell {
    background: linear-gradient(135deg, var(--ams-primary-dark), var(--ams-primary));
    color: #fff;
    border-radius: 34px;
    padding: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--ams-shadow);
}

.cta-shell p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 60ch;
}

.site-footer {
    background:
        linear-gradient(110deg, rgba(117, 36, 5, 0.96), rgba(235, 83, 16, 0.84)),
        url("../img/footer-bg-1-1.png") center/cover no-repeat;
    color: rgba(255, 255, 255, 0.86);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover {
    background: #fff;
    color: var(--ams-primary-dark);
    transform: translateY(-3px);
}

.footer-socials svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.4rem;
}

.earnings-panel,
.loan-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ams-border);
    border-radius: 28px;
    box-shadow: var(--ams-shadow);
    padding: 1.5rem;
}

.earnings-grid,
.loan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 1rem;
}

.earnings-card,
.loan-summary-card {
    min-height: 145px;
    padding: 1.2rem;
    border: 1px solid rgba(235, 83, 16, 0.2);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #fff5ee);
}

.earnings-card span,
.earnings-card small,
.loan-summary-card span {
    display: block;
    color: var(--ams-muted);
}

.earnings-card span,
.loan-summary-card span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.earnings-card strong,
.loan-summary-card strong {
    display: block;
    margin: 0.6rem 0 0.35rem;
    color: var(--ams-primary-dark);
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
}

.section-divider {
    height: 1px;
    margin: 1.75rem 0;
    background: rgba(235, 83, 16, 0.18);
}

.portal-subtitle {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.empty-state {
    padding: 1.4rem;
    border: 1px dashed rgba(235, 83, 16, 0.45);
    border-radius: 22px;
    background: rgba(255, 245, 238, 0.8);
}

.empty-state strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
}

.empty-state p {
    margin: 0.45rem 0 1rem;
    color: var(--ams-muted);
}

.earnings-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.earnings-section-heading .portal-subtitle {
    margin: 0.2rem 0 0;
}

.leg-earnings-list,
.transaction-list {
    overflow: hidden;
    border: 1px solid rgba(235, 83, 16, 0.2);
    border-radius: 22px;
}

.leg-earning-row,
.transaction-row {
    display: grid;
    grid-template-columns: 1.2fr 1.35fr 0.9fr 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(235, 83, 16, 0.1);
    background: #fff;
}

.leg-earning-row:last-child,
.transaction-row:last-child {
    border-bottom: 0;
}

.leg-earning-row > div > span,
.transaction-row > span:not(.transaction-pill) {
    color: var(--ams-muted);
    font-size: 0.78rem;
}

.leg-earning-row > div > span {
    display: block;
    margin-bottom: 0.2rem;
}

.leg-earning-row strong {
    display: block;
    overflow-wrap: anywhere;
    font-family: "Outfit", sans-serif;
}

.leg-earning-leg span {
    color: var(--ams-primary-dark) !important;
    font-size: 0.76rem !important;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.transaction-row-head {
    background: rgba(235, 83, 16, 0.1);
    color: var(--ams-primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.transaction-row-head span {
    color: inherit !important;
    font-size: inherit !important;
}

.transaction-pill {
    display: inline-flex;
    justify-self: start;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.transaction-pill.is-complete {
    background: rgba(235, 83, 16, 0.14);
    color: var(--ams-primary-dark);
}

.transaction-pill.is-pending {
    background: #fff1e8;
    color: #b33f08;
}

.emi-payment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #c93d08, var(--ams-accent));
    color: #fff;
}

.emi-payment-card .eyebrow,
.emi-payment-card p {
    color: rgba(255, 255, 255, 0.84);
}

.emi-payment-card h3 {
    margin: 0.3rem 0;
    font-size: 1.4rem;
}

.emi-payment-card p {
    margin-bottom: 0;
}

.emi-payment-card .btn-brand {
    background: #fff;
    color: var(--ams-primary-dark);
    box-shadow: none;
    white-space: nowrap;
}

.payment-history {
    overflow: hidden;
    border: 1px solid rgba(235, 83, 16, 0.2);
    border-radius: 20px;
}

.history-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(235, 83, 16, 0.1);
    color: var(--ams-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.history-row-data {
    background: #fff;
    color: var(--ams-text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.payment-status {
    display: inline-flex;
    justify-self: start;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.history-row .payment-status {
    background: rgba(235, 83, 16, 0.14);
    color: var(--ams-primary-dark);
}

.history-row .payment-status-due {
    background: #fff1e8;
    color: #b33f08;
}

.reveal-up {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-2 {
    transition-delay: 0.12s;
}

.reveal-delay-3 {
    transition-delay: 0.22s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(18px); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 4.25rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 24px;
        box-shadow: var(--ams-shadow);
    }

    .cta-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        min-height: 460px;
    }

    .impact-shell {
        grid-template-columns: 1fr;
    }

    .impact-image {
        min-height: 300px;
    }

    .badge-top {
        left: 16px;
    }

    .badge-bottom {
        right: 16px;
    }

    .map-showcase {
        grid-template-columns: 1fr;
    }

    .portal-help-grid,
    .portal-layout,
    .portal-action-grid {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        text-align: center;
    }

    .brand-logo,
    .footer-logo {
        width: 54px;
        height: 54px;
    }

    .section-card,
    .contact-card,
    .loan-highlight,
    .mission-panel {
        padding: 1.5rem;
    }

    .hero-actions .btn,
    .cta-shell .btn {
        width: 100%;
    }

    .step-item {
        flex-direction: column;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-photo-frame {
        border-width: 6px;
        border-radius: 28px;
    }

    .floating-badge {
        position: static;
        max-width: none;
        margin-top: 1rem;
        animation: none;
    }

    .hero-orb {
        display: none;
    }

    .impact-copy {
        padding: 1.5rem;
    }

    .office-card {
        padding: 1.2rem;
    }

    .office-meta,
    .contact-extra-links {
        flex-direction: column;
        gap: 0.55rem;
    }

    .map-showcase {
        padding: 1.4rem;
    }

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

    .map-surface {
        min-height: 220px;
    }

    .map-route-one {
        width: 160px;
        height: 110px;
        top: 42px;
        left: 24px;
    }

    .map-route-two {
        width: 120px;
        height: 86px;
        top: 104px;
        left: 102px;
    }

    .map-bubble-one {
        top: 28px;
        left: 18px;
    }

    .map-bubble-two {
        right: 18px;
        bottom: 26px;
    }

    .auth-card,
    .portal-brand-card,
    .portal-nav,
    .dashboard-shell,
    .eligibility-card,
    .tree-panel {
        padding: 1.25rem;
    }

    .dashboard-header-row,
    .payment-row,
    .check-item,
    .activation-panel,
    .tree-share-bar,
    .emi-payment-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-reference {
        min-width: 0;
        text-align: left;
    }

    .leg-summary-grid,
    .tree-legs,
    .network-metrics {
        grid-template-columns: 1fr;
    }

    .tree-branches,
    .tree-legs::before,
    .tree-legs::after {
        display: none;
    }

    .tree-legs {
        margin-top: 1rem;
    }

    .history-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .network-heading,
    .network-referral-card,
    .network-tree-title,
    .network-next-step,
    .leg-detail-heading,
    .leg-share-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .network-referral-actions {
        justify-content: flex-start;
    }

    .network-next-step .btn {
        margin-left: 0;
    }

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

    .team-eligibility-heading,
    .team-leg-review-grid,
    .team-eligibility-metrics {
        grid-template-columns: 1fr;
    }

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

    .team-member-row {
        flex-wrap: wrap;
    }

    .team-member-status {
        margin-left: 0;
    }

    .member-detail-card {
        grid-template-columns: 1fr;
    }

    .member-detail-fields {
        grid-template-columns: 1fr;
    }
}
