:root {
    --noupia-primary: #039BE5;
    --noupia-primary-rgb: 3, 155, 229;
    --noupia-secondary: #FFFFFF;
    --noupia-ink: #16332C;
    --noupia-muted: #61746E;
    --noupia-surface: #F5F8F7;
}

/* MobileKit and its bundled Bootstrap utilities still consume these
   framework tokens for active, focus, primary-alert and primary-button UI. */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --bs-primary: var(--noupia-primary);
    --bs-primary-rgb: var(--noupia-primary-rgb);
    --bs-link-color: var(--noupia-primary);
    --bs-link-hover-color: #117EF2;
}

body {
    background: var(--noupia-surface);
    color: var(--noupia-ink);
}

/* Keep every form hint in the recognizable Noupia brand color. */
input::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder {
    color: var(--noupia-primary) !important;
    opacity: 1;
}

.home-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; min-height: 260px; background: #07243f; display: flex; align-items: flex-end; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; z-index: -2; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 28, 54, .94), rgba(3, 28, 54, .42) 60%, rgba(3, 28, 54, .10)); }
.home-hero-copy { padding: 24px; max-width: 420px; color: #fff; }
.home-hero-eyebrow { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.home-hero-copy h1, .home-hero-copy h2 { color: #fff; font-size: 30px; line-height: 1.12; margin-bottom: 10px; letter-spacing: -.7px; }
.home-hero-copy p { color: #fff; max-width: 235px; margin: 0; font-size: 15px; line-height: 1.5; }
.home-action { color: inherit; text-decoration: none; border-radius: var(--noupia-radius-panel); border: 1px solid rgba(0, 0, 0, .035); box-shadow: none; }
.home-action-send { background: #f5eee4; --home-art-color: #ad6c25; --home-art-surface: #eddbbf; }
.home-action-carry { background: #eaf0f7; --home-art-color: #416994; --home-art-surface: #d4e1f1; }
.home-action-work { background: #edf7fd; --home-art-color: var(--noupia-primary); --home-art-surface: #d9effc; }
.home-action-earnings { background: #f0ebfb; --home-art-color: #7041bd; --home-art-surface: #e2d7f8; }
.home-action-earnings .home-action-art { width: 84px; height: 84px; }
.home-action-earnings .home-action-icon { font-size: 56px; }
.home-action .card-body { padding: 22px 10px; }
.home-action-art { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 14px; background: var(--home-art-surface); transform: rotate(-6deg); }
.home-action .home-action-icon {
    display: block; font-size: 48px; color: var(--home-art-color); transform: rotate(6deg); filter: drop-shadow(0 5px 2px rgba(0, 0, 0, .12));
}
.home-action h2 { margin-bottom: 6px; font-size: 18px; }
.home-action p { margin: 0; font-size: 14px; color: var(--noupia-muted); }
.home-action:hover { color: inherit; }
.home-action:active { transform: scale(.98); }
.home-action:focus-visible { outline: 3px solid var(--noupia-primary); outline-offset: 3px; }
.email-otp-illustration { display: flex; justify-content: center; margin: 2px 0 22px; }
.email-otp-illustration .home-action-art { display: flex; width: 76px; height: 76px; align-items: center; justify-content: center; border-radius: 24px; margin: 0; background: #d9effc; transform: rotate(-6deg); }
.email-otp-illustration .home-action-icon { display: block; font-size: 48px; color: var(--noupia-primary); transform: rotate(6deg); filter: drop-shadow(0 5px 2px rgba(0, 0, 0, .12)); }
.auth-choice-divider { margin: 26px 0; text-align: center; color: var(--noupia-ink); font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.6px; }
.journey-list-item .in::after { display: none !important; }
/* Work reuses home-sized art; balance tiles use the same treatment at compact scale. */
.work-enroll { padding: 0; font: inherit; cursor: pointer; }
.work-enroll .card-body { display: block; width: 100%; }
.work-tile-title { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 700; }
.work-tile-subtitle { display: block; font-size: 14px; color: var(--noupia-muted); }
.earnings-balances .earnings-balance { background: transparent; min-width: 0; }
.earnings-balances .earnings-balance .card-body { padding: 14px 4px; width: 100%; }
.earnings-balances .home-action-art { width: 42px; height: 42px; border-radius: 10px; margin-bottom: 12px; }
.earnings-balances .home-action-icon { font-size: 25px; }
.earnings-balance-label { font-size: 10px; font-weight: 600; text-transform: uppercase; overflow-wrap: anywhere; }
.earnings-balance-amount { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.earnings-balance-heading small { font-size: inherit; font-weight: inherit; text-transform: uppercase; }
.payout-country-flag { object-fit: contain; vertical-align: middle; }
.payout-profile-remove { background: transparent; border: 0; width: 40px; height: 40px; padding: 0; }
.payout-profile-remove ion-icon { font-size: 21px; }
/* Earnings action sheets stay compact; only their content scrolls. */
#payout-methods-sheet,
#add-payout-method,
#payout-history-sheet,
#earnings-transactions-sheet,
#balance-topup-sheet,
#balance-history-sheet,
#balance-payments-sheet,
#balance-refunds-sheet {
    height: 400px;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
}
#payout-methods-sheet .offcanvas-body,
#add-payout-method .offcanvas-body,
#payout-history-sheet .offcanvas-body,
#earnings-transactions-sheet .offcanvas-body,
#balance-topup-sheet .offcanvas-body,
#balance-history-sheet .offcanvas-body,
#balance-payments-sheet .offcanvas-body,
#balance-refunds-sheet .offcanvas-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.payout-history-list { display: grid; gap: 10px; padding: 1px 0 8px; }
.payout-history-item { display: block; padding: 13px; border: 1px solid rgba(17,24,39,.1); border-radius: 14px; color: inherit; background: rgba(0,0,0,.018); text-decoration: none; }
a.payout-history-item:active { transform: scale(.99); }
.payout-history-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.payout-history-reference { display: flex; flex: 1 1 auto; min-width: 0; align-items: flex-start; gap: 9px; }
.payout-history-icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(3, 120, 210,.12); color: var(--noupia-primary); }
.payout-history-icon ion-icon { font-size: 18px; }
.payout-history-reference > div { min-width: 0; }
.payout-history-reference strong { display: block; min-width: 0; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.payout-history-reference time { display: block; margin-top: 3px; color: #6b7280; font-size: 12px; line-height: 1.25; }
.payout-history-value { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; max-width: 42%; text-align: right; }
.payout-history-value > strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.payout-history-value .badge { max-width: 100%; padding: 5px 8px; border-radius: 999px; font-size: 10px; line-height: 1.15; text-align: center; text-transform: uppercase; white-space: normal; }
.payout-history-method, .payout-history-failure { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(17,24,39,.09); font-size: 13px; line-height: 1.35; }
.payout-history-method > ion-icon, .payout-history-failure > ion-icon { flex: 0 0 auto; margin-top: 1px; color: var(--noupia-primary); font-size: 17px; }
.payout-history-method > span, .payout-history-failure > span { min-width: 0; overflow-wrap: anywhere; }
.payout-history-chevron { margin-left: auto; color: #6b7280 !important; }
.payout-history-failure { color: #9f2633; }
.payout-history-failure > ion-icon { color: currentColor; }
body.dark-mode-active .payout-history-item { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.03); }
body.dark-mode-active .payout-history-reference time,
body.dark-mode-active .payout-history-chevron { color: rgba(255,255,255,.6) !important; }
body.dark-mode-active .payout-history-method,
body.dark-mode-active .payout-history-failure { border-color: rgba(255,255,255,.1); }
.payout-methods-list { display: grid; gap: 10px; padding: 1px 0 8px; }
.payout-method-card, .payout-add-method-card { width: 100%; border: 1px solid rgba(17,24,39,.1); border-radius: 14px; background: rgba(0,0,0,.018); }
.payout-method-card { padding: 13px 13px 0; }
.payout-method-summary { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.payout-method-icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 11px; background: rgba(3, 120, 210,.12); color: var(--noupia-primary); }
.payout-method-icon ion-icon { font-size: 19px; }
.payout-method-copy { flex: 1 1 auto; min-width: 0; }
.payout-method-copy p, .payout-method-copy strong, .payout-method-copy span, .payout-method-copy small { display: block; min-width: 0; overflow-wrap: anywhere; }
.payout-method-copy p { margin: 0 0 2px; color: #6b7280; font-size: 12px; line-height: 1.25; }
.payout-method-copy strong { font-size: 15px; line-height: 1.3; }
.payout-method-copy > span { margin-top: 2px; color: #6b7280; font-size: 13px; line-height: 1.3; }
.payout-method-copy small { margin-top: 5px; color: #6b7280; font-size: 11px; line-height: 1.3; }
.payout-method-preferred { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; padding: 5px 7px; border-radius: 999px; background: rgba(3, 120, 210,.12); color: var(--noupia-primary); font-size: 10px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.payout-method-preferred ion-icon { font-size: 12px; }
.payout-method-actions { display: flex; min-height: 40px; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 11px 0 0; border-top: 1px solid rgba(17,24,39,.09); }
.payout-method-actions form { margin: 0; }
.payout-method-actions .btn { white-space: nowrap; }
.payout-method-remove { margin-left: auto; }
.payout-add-method-card { display: flex; align-items: center; gap: 10px; padding: 12px; color: inherit; text-align: left; }
.payout-add-method-card > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.payout-add-method-card strong, .payout-add-method-card small { display: block; }
.payout-add-method-card strong { font-size: 14px; line-height: 1.3; }
.payout-add-method-card small { margin-top: 2px; color: #6b7280; font-size: 12px; line-height: 1.3; }
.payout-add-method-card > ion-icon { flex: 0 0 auto; color: #6b7280; font-size: 18px; }
.payout-add-method-card:disabled { opacity: .68; }
body.dark-mode-active .payout-method-card,
body.dark-mode-active .payout-add-method-card { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.03); }
body.dark-mode-active .payout-method-copy p,
body.dark-mode-active .payout-method-copy > span,
body.dark-mode-active .payout-method-copy small,
body.dark-mode-active .payout-add-method-card small,
body.dark-mode-active .payout-add-method-card > ion-icon { color: rgba(255,255,255,.64); }
body.dark-mode-active .payout-method-actions { border-color: rgba(255,255,255,.1); }
.earnings-transaction-list { display: grid; gap: 10px; padding: 1px 0 8px; }
.earnings-transaction-item { padding: 13px; border: 1px solid rgba(17,24,39,.1); border-radius: 14px; background: rgba(0,0,0,.018); }
.earnings-transaction-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.earnings-transaction-copy { display: flex; flex: 1 1 auto; min-width: 0; gap: 9px; }
.earnings-transaction-icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(3, 120, 210,.12); color: var(--noupia-primary); }
.earnings-transaction-icon ion-icon { font-size: 18px; }
.earnings-transaction-copy > div { min-width: 0; }
.earnings-transaction-copy strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.earnings-transaction-copy time { display: block; margin-top: 3px; color: #6b7280; font-size: 12px; line-height: 1.25; }
.earnings-transaction-value { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; max-width: 42%; text-align: right; }
.earnings-transaction-value > strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.earnings-transaction-value .badge { max-width: 100%; padding: 5px 8px; border-radius: 999px; font-size: 10px; line-height: 1.15; text-align: center; text-transform: uppercase; white-space: normal; }
.earnings-transaction-reference { display: flex; align-items: center; min-width: 0; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(17,24,39,.09); color: #6b7280; font-size: 13px; line-height: 1.35; }
.earnings-transaction-reference > span { min-width: 0; overflow-wrap: anywhere; }
body.dark-mode-active .earnings-transaction-item { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.03); }
body.dark-mode-active .earnings-transaction-copy time,
body.dark-mode-active .earnings-transaction-reference { color: rgba(255,255,255,.64); }
body.dark-mode-active .earnings-transaction-reference { border-color: rgba(255,255,255,.1); }
.earnings-balance-available { --home-art-color: #117ef2; --home-art-surface: #d9effc; }
.earnings-balance-pending { --home-art-color: #995700; --home-art-surface: #ffedc4; }
.earnings-balance-processing { --home-art-color: #7041bd; --home-art-surface: #eee3ff; }
.earnings-balance-paid { --home-art-color: #176caf; --home-art-surface: #deefff; }
.earnings-balance-other { --home-art-color: #555555; --home-art-surface: #e9e9e9; }
.home-steps { list-style: none; padding: 0; margin: 18px 0 0; }
.home-steps li { display: flex; gap: 14px; padding-bottom: 20px; }
.home-step-number { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #e1ece7; color: #245c46; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.home-steps h3 { font-size: 16px; margin: 0 0 5px; }
.home-steps p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--noupia-muted); }
body.dark-mode-active .home-action { background: #292929; border-color: #383838; }
body.dark-mode-active .home-action-send { --home-art-surface: #423425; --home-art-color: #edb669; }
body.dark-mode-active .home-action-carry { --home-art-surface: #363636; --home-art-color: #d3d3d3; }
body.dark-mode-active .home-action-work { --home-art-surface: #253e32; --home-art-color: #70d5a5; }
body.dark-mode-active .home-action-earnings { --home-art-surface: #372d50; --home-art-color: #c6adff; }
body.dark-mode-active .home-step-number { background: #292929; color: #fff; }
@media (min-width: 768px) {
    .home-hero { min-height: 300px; align-items: center; }
    .home-hero::before { background: linear-gradient(90deg, rgba(8, 22, 17, .9), rgba(8, 22, 17, .1)); }
    .home-hero-copy { padding: 36px; }
    .home-hero-copy h1, .home-hero-copy h2 { font-size: 38px; }
    .home-steps { display: flex; gap: 24px; }
    .home-steps li { flex: 1; }
}

/* Compact inner-page variant of the home hero. Content can grow with text zoom. */
.home-hero.page-hero { min-height: 150px; align-items: center; }
.page-hero .home-hero-image { object-position: center 60%; }
.page-hero::before { background: linear-gradient(90deg, rgba(8, 22, 17, .92), rgba(8, 22, 17, .52)); }
.page-hero .home-hero-copy { padding: 20px; max-width: 430px; }
.page-hero .home-hero-copy h1 { color: #fff; font-size: 28px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.6px; overflow-wrap: anywhere; }
.page-hero .home-hero-copy p { max-width: 245px; }
@media (min-width: 768px) {
    .home-hero.page-hero { min-height: 170px; }
    .page-hero .home-hero-copy { padding: 24px; }
    .page-hero .home-hero-copy h1 { font-size: 32px; }
}

/* Neutral dark form surfaces, including carrier fields and native selects. */
body.dark-mode-active .form-control,
body.dark-mode-active .custom-select,
body.dark-mode-active .form-select {
    background-color: #1a1a1a !important;
    color: #ffffff;
}

/* Reuse MobileKit listview/forms with small account-specific layout overrides. */
.account-settings .listview.inset { margin: 0; }
.notification-settings-card { margin: 0; }

/* Unified operational/financial activity feed. The larger tap targets match
   MobileKit list rows while letting the status remain scannable on one line. */
.activities-list .item { padding-top: 15px; padding-bottom: 15px; }
.activities-list .icon-box { width: 54px; height: 54px; min-width: 54px; margin-right: 14px; font-size: 28px; }
.activities-list .in { min-height: 54px; }
.activities-list footer { margin-top: 4px; color: var(--bs-secondary-color, #6c757d); font-size: .82rem; }
.activities-list .activity-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.activities-list .activity-summary { flex: 1 1 140px; min-width: 0; }
.activities-list .badge { flex: 0 0 auto; margin-left: 0; white-space: nowrap; }
/* A long lifecycle state cannot share a narrow mobile row with the chevron.
   Keep it readable by moving only the badge below the activity summary. */
@media (max-width: 390px) {
    .activities-list .activity-row { flex-wrap: wrap; gap: 6px 10px; }
    .activities-list .activity-row .badge { margin-left: 0; }
}

/* Anchor targets must clear the fixed MobileKit header when opened from Activities. */
[id^="earnings"], [id^="payout-"] { scroll-margin-top: 78px; }
.account-settings .account-field, .account-logout { width: 100%; min-width: 0; }
.account-settings .in { min-width: 0; }
.account-settings .account-email { overflow-wrap: anywhere; min-width: 0; }
.account-copy-badge { border: 0; flex-shrink: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.account-copy-badge:focus-visible { outline: 2px solid var(--noupia-primary); outline-offset: 3px; }
.account-copy-fallback { position: fixed; top: 0; left: -9999px; }
.account-settings .form-group.basic { padding: 8px 0; }
/* Keep MobileKit's understated field underline, not the extra rectangular ring. */
.account-settings .form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--noupia-primary) !important;
}
.account-list-button {
    width: 100%; border: 0; background: transparent; color: inherit;
    text-align: left; font: inherit;
}
.account-settings .form-switch { position: relative; flex: 0 0 56px; }
.account-settings .form-switch .form-check-input {
    display: block; position: absolute; opacity: 0; width: 56px; height: 30px;
    margin: 0; z-index: 4; cursor: pointer;
}
.account-settings .form-check-input:focus-visible ~ .form-check-label {
    outline: 2px solid var(--noupia-primary); outline-offset: 4px; border-radius: 20px;
}
.account-settings .form-check-input:checked ~ .form-check-label:after {
    background-color: var(--noupia-primary); border-color: var(--noupia-primary) !important;
}
body.dark-mode-active {
    --noupia-surface: #1a1a1a;
    --noupia-ink: #ffffff;
    --noupia-muted: #b0b0b0;
    background: var(--noupia-surface); color: var(--noupia-ink);
}
body.dark-mode-active .account-settings .text-muted,
body.dark-mode-active .account-settings .listview-title { color: var(--noupia-muted) !important; }
body.dark-mode-active #account-kyc .modal-content { background: #292929; color: #ffffff; }
body.dark-mode-active #account-kyc .btn-close { filter: invert(1); }

.bg-primary,
.btn-primary,
.badge-primary {
    background-color: var(--noupia-primary) !important;
    border-color: var(--noupia-primary) !important;
}

.text-primary,
.btn-link,
.btn-outline-primary {
    color: var(--noupia-primary) !important;
}

.btn-outline-primary {
    border-color: var(--noupia-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--noupia-primary) !important;
    color: var(--noupia-secondary) !important;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 112px;
    max-height: 30px;
    object-fit: contain;
}

.hero-card {
    border: 0;
    background: linear-gradient(145deg, #FFFFFF 0%, #EAF7F2 100%);
}

.hero-logo {
    display: block;
    width: auto;
    max-width: 152px;
    max-height: 52px;
    margin: 0 0 24px;
    object-fit: contain;
}

.avatar-circle {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #EAF7F2;
    color: var(--noupia-primary);
    font-size: 25px;
}

.appBottomMenu .item.active,
.appBottomMenu .item.active ion-icon,
.appBottomMenu .item:focus-visible {
    color: var(--noupia-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: #EAF7F2;
    color: #08775A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}

.status-badge.status-warning {
    background: #FFF4D8;
    color: #8A5A00;
}

.status-badge.status-danger {
    background: #FDE9E7;
    color: #A83225;
}

.action-card,
.data-card {
    margin-bottom: 12px;
}

.data-card .card-body,
.action-card .card-body {
    padding: 16px;
}

.meta-line {
    margin: 5px 0 0;
    color: var(--noupia-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.empty-state {
    padding: 28px 18px;
    text-align: center;
    color: var(--noupia-muted);
}

.empty-state ion-icon {
    display: block;
    margin: 0 auto 10px;
    color: var(--noupia-primary);
    font-size: 42px;
}

.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.inline-actions .btn {
    flex: 1 1 120px;
}

.field-error {
    margin: 6px 0 0;
    color: #A83225;
    font-size: 12px;
}

.screen[hidden] {
    display: none !important;
}

#message-region {
    min-height: 0;
}

.app-alert {
    margin: 12px 16px 0;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--noupia-primary) !important;
    outline-offset: 2px;
}

/* Shared MobileKit geometry; radio circles, switches and joined controls stay native. */
.appHeader .pageTitle .brand-wordmark { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -1.4px; line-height: 1; }
.appHeader .pageTitle .header-brand-logo { display: block; width: auto; max-width: 168px; height: 34px; max-height: 34px; margin: 0 auto; object-fit: contain; }

.not-found-page .app-content,
.maintenance-page .app-content {
  min-height: 100vh;
}

.not-found-page .error-page,
.maintenance-page .error-page {
  padding-top: max(96px, calc(env(safe-area-inset-top) + 72px));
}

.not-found-illustration {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 180px;
  margin-bottom: 18px;
}

.not-found-illustration ion-icon {
  order: 1;
  width: 110px;
  height: 110px;
}

.not-found-illustration span {
  order: 2;
  margin-top: 4px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}

.maintenance-illustration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin-bottom: 18px;
}

.maintenance-illustration ion-icon {
  width: 150px;
  height: 150px;
}
.app-content { --noupia-radius-panel: 10px; --noupia-radius-control: 5px; }
.app-content .card, .app-content .listview, .app-content .list-group,
.app-content .wide-block { border-radius: var(--noupia-radius-panel); }
.app-content .listview > :first-child, .app-content .list-group > :first-child,
.app-content .card > .card-header { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.app-content .listview > :last-child, .app-content .list-group > :last-child,
.app-content .card > .card-footer { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.app-content .form-control, .app-content .form-select, .app-content .custom-select,
.app-content .form-group :is(.form-control, .custom-select, .form-select),
.app-content .btn:not(.btn-icon):not(.rounded-pill), .app-content .alert,
.app-content .dropdown-menu { border-radius: var(--noupia-radius-control); }
.app-content .modal-content { border-radius: var(--noupia-radius-panel); }
.app-content .modal-header { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.app-content .form-group.basic .form-control, .app-content .form-group.basic .custom-select {
    border: 1px solid #b5b5b5; padding-left: 12px; padding-right: 12px;
}
.app-content .input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.app-content .input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.dark-mode-active .app-content .form-control,
body.dark-mode-active .app-content .form-group :is(.form-control, .custom-select, .form-select),
body.dark-mode-active .app-content .custom-select,
body.dark-mode-active .app-content .form-select { border-color: #1a1a1a; }
/* Replace Bootstrap's blue glow with the configured brand border. Preserve keyboard focus. */
body .app-content :is(.form-group, .searchbox, .input-group) :is(.form-control, .custom-select, .form-select):focus,
body .app-content :is(.form-control, .custom-select, .form-select):focus {
    border-color: var(--noupia-primary) !important; outline: none !important; box-shadow: none !important;
}
body .app-content .form-check-input:focus {
    border-color: var(--noupia-primary) !important; box-shadow: none !important;
    outline: 2px solid var(--noupia-primary); outline-offset: 2px;
}
.app-content input:is([type="checkbox"], [type="radio"], [type="range"]) { accent-color: var(--noupia-primary); }
.app-content input:is([type="checkbox"], [type="radio"], [type="range"]):focus-visible {
    outline: 2px solid var(--noupia-primary); outline-offset: 2px;
}
body .app-content .form-check-input:focus-visible ~ .form-check-label {
    outline: 2px solid var(--noupia-primary); outline-offset: 3px; border-radius: 6px;
}
body .app-content .form-check-input:checked ~ .form-check-label:after {
    background-color: var(--noupia-primary) !important; border-color: var(--noupia-primary) !important;
}
body .app-content .btn:focus, body .app-content .accordion-button:focus {
    box-shadow: none !important;
}

@media (min-width: 768px) {
    #appCapsule {
        max-width: 760px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(20, 56, 46, .08);
        min-height: 100vh;
    }

    .appHeader,
    .appBottomMenu {
        width: min(760px, 100%);
        left: 50%;
        transform: translateX(-50%);
    }
}
/* Phase 25: small identity emblem reuses brand colors, not a new component framework. */
.kyc-emblem {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(3, 155, 229, .12);
  color: var(--noupia-primary, #039BE5);
  font-size: 34px;
}
.noupia-suspended-emblem {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 53, 69, .12);
  color: #dc3545;
  font-size: 36px;
}
/* App-like selection on MobileKit only. Editable/read-only inputs remain copyable. */
body.noupia-user-app,
body.noupia-user-app * {
  -webkit-user-select: none;
  user-select: none;
}
body.noupia-user-app input,
body.noupia-user-app textarea,
body.noupia-user-app [contenteditable]:not([contenteditable="false"]),
body.noupia-user-app [contenteditable]:not([contenteditable="false"]) * {
  -webkit-user-select: text;
  user-select: text;
}
/* Phase 26: one coordinate picker can be attached to any location workflow. */
.location-picker { border: 1px solid rgba(3, 155, 229, .14); box-shadow: none; }
.carrier-status-list { border: 1px solid rgba(3, 155, 229, .14); }
.carrier-manual-location { max-height: 480px; opacity: 1; overflow: hidden; transition: opacity .2s ease, max-height .25s ease, margin .25s ease; }
.carrier-manual-location.is-hidden { max-height: 0; opacity: 0; margin: 0 !important; pointer-events: none; }
.location-picker-actions { display: flex; align-items: stretch; min-width: 0; }
.location-picker-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.location-picker-actions > span { flex: 0 0 auto; }
.location-picker-actions ion-icon { vertical-align: -2px; }
.location-picker-selected { display: flex; align-items: center; gap: 10px; }
.location-picker-selected-icon { color: var(--noupia-primary); font-size: 30px; line-height: 1; }
.location-picker-selected-copy { display: grid; flex: 1; min-width: 0; }
.location-picker-selected-copy span { color: var(--noupia-muted); font-size: 13px; overflow-wrap: anywhere; }
.location-picker-message:not(:empty) { margin-top: 12px; }
.location-map-modal-content { overflow: hidden; }
.location-map-wrap { position: relative; height: min(55vh, 420px); background: #f2f5f4; }
#noupia-location-map { width: 100%; height: 100%; }
.location-map-center-pin { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -100%); color: var(--noupia-primary); font-size: 40px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.28)); }
.location-map-center-pin:after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 12px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.22); transform: translateX(-50%); }
.location-map-search { border-bottom: 1px solid rgba(0,0,0,.08); background: #fff; }
.location-map-search:focus-within { border-color: var(--noupia-primary); box-shadow: inset 0 -2px 0 var(--noupia-primary); }
#noupia-location-place-search { min-height: 44px; }
#noupia-location-place-search gmp-place-autocomplete { display: block; width: 100%; }
.location-map-search-status:not(:empty) { margin-top: 8px !important; }
body.dark-mode-active .location-picker, body.dark-mode-active .carrier-status-list, body.dark-mode-active .location-map-wrap { background: #292929; border-color: #383838; }
@media (max-width: 575px) { .location-map-wrap { height: 54vh; } .location-map-modal-content { border-radius: 0; } }
/* Create-delivery wizard: MobileKit's native progress component, with only
   small Noupia presentation refinements. */
.shipment-wizard { overflow: hidden; }
.shipment-wizard .form-wizard-section .button-item { border: 0; background: transparent; }
.shipment-wizard .form-wizard-section .button-item:disabled { cursor: default; opacity: 1; }
.trip-mode-list .form-check { margin: 0; }
.trip-mode-list .trip-mode-radio-label { cursor: pointer; }
.trip-mode-list .trip-mode-radio-label ion-icon { color: var(--noupia-primary); font-size: 21px; }
.trip-mode-list .form-check .form-check-label:after { border-color: #a8aaa9; }
body.dark-mode-active .trip-mode-list .form-check .form-check-label:after { border-color: rgba(255, 255, 255, .58); }
.trip-status-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 30px; padding: 6px 10px; color: #fff !important; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.trip-status-badge.bg-primary { background-color: var(--noupia-primary) !important; }
.trip-status-badge.bg-danger { background-color: #dc3545 !important; }
.trip-status-badge.bg-warning { background-color: #b7791f !important; }
.trip-cancel-button { text-transform: uppercase; }
.trip-pause-button { text-transform: uppercase; }
.trip-card-stack { display: grid; gap: 14px; }
.trip-card { overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--noupia-radius-panel); background: #fff; box-shadow: 0 5px 16px rgba(20, 56, 46, .06); }
.trip-card-header { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; }
.trip-card-heading { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.trip-card-heading time { overflow: hidden; color: var(--noupia-ink); font-size: 17px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.trip-card-meta { color: var(--noupia-muted); font-size: 13px; line-height: 1.35; }
.trip-card-body { padding: 0 16px 16px; }
.trip-route { display: flex; align-items: center; gap: 8px; color: var(--noupia-ink); font-size: 17px; line-height: 1.35; }
.trip-route ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 18px; }
.trip-route-map a { color: var(--noupia-primary); text-decoration: none; }
.trip-route-detail { margin-top: 3px; color: var(--noupia-muted); font-size: 13px; }
.trip-arrival { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; color: var(--noupia-ink); font-size: 14px; }
.trip-arrival span { color: var(--noupia-muted); }
.trip-arrival time { font-weight: 600; }
.trip-card-actions { display: flex; align-items: center; min-height: 60px; padding: 10px 16px; border-top: 1px solid rgba(0, 0, 0, .08); }
.trip-card-actions form { margin: 0; }
.trip-card-cancelled { box-shadow: none; opacity: .78; }
.trip-empty-state { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 92px; text-align: center; }
.trip-empty-state ion-icon { color: var(--noupia-primary); font-size: 28px; }
body.dark-mode-active .trip-card { border-color: #383838; background: #292929; box-shadow: none; }
body.dark-mode-active .trip-card-actions { border-color: #3d3d3d; }
.notification-card-stack { display: grid; gap: 14px; }
.notification-card { display: block; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--noupia-radius-panel); background: #fff; box-shadow: 0 5px 16px rgba(20, 56, 46, .06); color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.notification-card:focus-visible { outline: 3px solid rgba(3, 155, 229, .38); outline-offset: 2px; }
.notification-card:active { transform: scale(.985); }
.notification-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 11px; }
.notification-card-time { display: block; margin-top: 8px; color: var(--noupia-primary); font-size: 12px; line-height: 1.35; }
.notification-card-icon { display: inline-flex; flex: 0 0 auto; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(3, 155, 229, .12); color: var(--noupia-primary); font-size: 20px; }
.notification-card-body { padding: 0 16px 16px; }
.notification-card-subject { display: block; color: var(--noupia-ink); font-size: 16px; line-height: 1.35; }
.notification-card-message { margin: 4px 0 0; color: var(--noupia-muted); font-size: 14px; line-height: 1.45; }
body.dark-mode-active .notification-card { border-color: #383838; background: #292929; box-shadow: none; color: #fff; }
body.dark-mode-active .notification-card-subject { color: #fff; }
body.dark-mode-active .notification-card-time { color: var(--noupia-primary); }
body.dark-mode-active .notification-card-message { color: #b8b8b8; }
.journey-card-status { margin: 0; color: var(--noupia-ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
.journey-card-compensation { margin: 4px 0 0; color: var(--noupia-primary); font-size: 14px; line-height: 1.45; }
.journey-card-compensation-pending { color: var(--noupia-muted); }
body.dark-mode-active .journey-card-status { color: #fff; }
body.dark-mode-active .journey-card-compensation-pending { color: #b8b8b8; }
.carrier-trip-airport-search { position: relative; margin-bottom: 16px; }
.carrier-trip-airport-search .input-icon { color: var(--noupia-primary); }
.carrier-trip-airport-search .input-icon ion-icon { color: inherit; }
.carrier-trip-airport-results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 100%; margin: 0; overflow: hidden; border: 1px solid rgba(3, 155, 229, .24); background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
.carrier-trip-airport-results .list-group-item { width: 100%; padding: 11px 14px; border-color: rgba(0, 0, 0, .09); background: #fff; color: inherit; text-align: left; white-space: normal; }
.carrier-trip-airport-results .list-group-item:active,
.carrier-trip-airport-results .list-group-item:hover { background: rgba(3, 155, 229, .08); color: inherit; }
body.dark-mode-active .carrier-trip-airport-results,
body.dark-mode-active .carrier-trip-airport-results .list-group-item { background: #292929; color: #fff; border-color: #3d3d3d; }
body.dark-mode-active .carrier-trip-airport-results .text-muted { color: #b8b8b8 !important; }
body.dark-mode-active .carrier-trip-airport-results .list-group-item:active,
body.dark-mode-active .carrier-trip-airport-results .list-group-item:hover { background: #333f3a; }
.wizard-intro { display: flex; gap: 12px; align-items: center; margin: 2px 0 18px; }
.wizard-intro-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(3,155,229,.12); color: var(--noupia-primary); font-size: 23px; }
.package-size-options { width: 100%; display: flex; }
.package-size-options .btn { flex: 1 1 auto; padding-left: 4px; padding-right: 4px; }
.shipment-photo-upload { min-height: 146px; }
.shipment-photo-upload label { position: relative; min-height: 146px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shipment-photo-upload label small { display: block; margin-top: 7px; color: var(--noupia-muted); font-style: normal; font-weight: 400; }
.shipment-photo-upload label img { width: 100%; height: 100%; min-height: 146px; object-fit: cover; }
.wizard-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px; margin: 16px 0; border-radius: var(--noupia-radius-panel); background: rgba(3,155,229,.08); color: var(--noupia-muted); font-size: 13px; }
.wizard-note ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 20px; }
/* Bootstrap modals are appended in the normal document flow. Theme them from
   the same SSR body class/cookie that themes the rest of MobileKit. */
body.dark-mode-active .location-map-modal-content,
body.dark-mode-active .location-map-modal-content .modal-header,
body.dark-mode-active .location-map-modal-content .modal-footer,
body.dark-mode-active .location-map-selection { background: #292929; color: #fff; border-color: #3d3d3d; }
body.dark-mode-active .location-map-modal-content .btn-close { filter: invert(1) grayscale(1) brightness(2); }
body.dark-mode-active .location-map-modal-content .text-muted { color: #b8b8b8 !important; }
body.dark-mode-active .location-map-search { background: #292929; border-color: #3d3d3d; color-scheme: dark; }
.shipment-detail-photo { width: 100%; max-width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--noupia-radius-panel); }
.tracking-share-button { align-items: center; justify-content: center; gap: 5px; }
.tracking-share-button ion-icon { display: block; font-size: 16px; }
/* Keep the delivery reference readable: the share action sits below it on the right. */
.d-flex.justify-content-between.align-items-center.mb-2:has(> .tracking-share-button) { align-items: stretch !important; flex-wrap: wrap; }
.d-flex.justify-content-between.align-items-center.mb-2:has(> .tracking-share-button) > h2 { flex: 0 0 100%; }
.d-flex.justify-content-between.align-items-center.mb-2:has(> .tracking-share-button) > .tracking-share-button { margin-top: 8px; margin-left: auto; }
.noupia-release-qr { display: block; width: fit-content; margin: 0 auto; overflow: hidden; border-radius: 10px; line-height: 0; }
.noupia-release-qr canvas, .noupia-release-qr img { display: block; border-radius: 10px; }
/* Full-width MobileKit action sheet camera surface for a deliberate QR scan. */
.journey-qr-camera { position: relative; height: max(300px, calc(50vh - 80px)); background: #111; overflow: hidden; }
.journey-qr-camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.journey-qr-camera-message { position: absolute; left: 16px; right: 16px; bottom: 20px; text-align: center; color: #fff; background: rgba(0,0,0,.62); border-radius: 5px; padding: 10px; }
/* Paid receipts follow the account theme on-screen, while print stays a
   conventional white document. */
.payout-receipt-page,
.payout-receipt-page #appCapsule,
.payout-receipt-page .app-content { background: #f5f7f6 !important; color: #141515 !important; }
.payout-receipt-page #appCapsule { max-width: none; margin: 0; box-shadow: none; min-height: 100vh; }
.payout-receipt-page .appHeader { width: 100%; left: 0; transform: none; }
.payout-receipt-toolbar .pageTitle { font-size: 18px; font-weight: 600; }
.payout-receipt-toolbar .right { display: flex; align-items: center; gap: 2px; }
.payout-receipt-toolbar button.headerButton { appearance: none; border: 0; background: transparent; color: inherit; padding: 0; }
.payout-receipt-page .app-content,
.payout-receipt-page .payout-receipt-section { width: 100%; margin: 0 !important; padding: 0 !important; }
.payout-receipt-page .payout-receipt { width: 100%; min-height: calc(100vh - 58px); margin: 0 !important; padding: 34px 24px 24px; border-radius: 0; box-shadow: none; }
.payout-receipt .invoiceBackgroundLogo { width: 90%; left: 5%; top: 51%; }
.payout-receipt .payout-receipt-watermark img { width: 100%; opacity: .055; }
.payout-receipt-logo { color: var(--noupia-primary); font-size: 28px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.payout-receipt .invoice-id { font-size: 11px; overflow-wrap: anywhere; text-align: right; }
.payout-receipt .invoice-person { position: relative; }
.payout-receipt .invoice-detail { position: relative; overflow: visible; }
.payout-receipt .invoice-detail .table { width: 100%; min-width: 0; margin-bottom: 0; table-layout: fixed; }
.payout-receipt .invoice-detail .table td { vertical-align: top; }
.payout-receipt .invoice-detail .table td:nth-child(2),
.payout-receipt .invoice-detail .table td:nth-child(3) { color: #4f5050; font-size: 10px; font-weight: 500; }
.payout-receipt .invoice-detail .table td { overflow-wrap: anywhere; word-break: normal; }
.payout-receipt .invoice-detail .receipt-detail-table { margin-bottom: 14px; }
.payout-receipt .invoice-detail .receipt-detail-table:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
    .payout-receipt .invoice-detail .table thead { display: none; }
    .payout-receipt .invoice-detail .table,
    .payout-receipt .invoice-detail .table tbody,
    .payout-receipt .invoice-detail .table tr { display: block; width: 100%; }
    .payout-receipt .invoice-detail .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; padding: 12px 0; border-top: 2px solid #141515; border-bottom: 1px solid #e1e1e1; }
    .payout-receipt .invoice-detail .table td,
    .payout-receipt .invoice-detail .table td:nth-child(2),
    .payout-receipt .invoice-detail .table td:nth-child(3) { display: block; min-width: 0; padding: 0 !important; border: 0; color: #141515; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
    .payout-receipt .invoice-detail .table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #4f5050; font-size: 10px; font-weight: 600; text-transform: uppercase; }
    .payout-receipt .invoice-detail .table td:last-child { color: var(--noupia-primary); }
}
.payout-receipt-reference { position: relative; display: flex; flex-direction: column; gap: 3px; margin-top: 18px; color: #4f5050; font-size: 11px; overflow-wrap: anywhere; }
.payout-receipt-reference strong { color: #141515; }
.payout-receipt .invoice-total { position: relative; }
.payout-receipt .invoice-bottom { position: relative; }
body.dark-mode-active.payout-receipt-page,
body.dark-mode-active.payout-receipt-page #appCapsule,
body.dark-mode-active.payout-receipt-page .app-content { background: #161616 !important; color: #fff !important; }
body.dark-mode-active.payout-receipt-page .payout-receipt { background: #262626; color: #fff; border: 1px solid rgba(255,255,255,.09); }
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-id,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-to p,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-from p,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td:nth-child(2),
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td:nth-child(3),
body.dark-mode-active.payout-receipt-page .payout-receipt-reference { color: rgba(255,255,255,.64); }
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-to h4,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-from h4,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table tbody,
body.dark-mode-active.payout-receipt-page .payout-receipt-reference strong { color: #fff; }
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview,
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview li { border-color: rgba(255,255,255,.11); background: transparent; }
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview li { color: #fff; }
body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview li:after { background: rgba(255,255,255,.11); }
body.dark-mode-active.payout-receipt-page .payout-receipt .payout-receipt-watermark img { opacity: .1; }
@media (max-width: 480px) {
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table tbody tr { border-top-color: rgba(255,255,255,.58); border-bottom-color: rgba(255,255,255,.11); }
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td:nth-child(2),
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td:nth-child(3) { color: #fff; }
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td::before { color: rgba(255,255,255,.58); }
}
@media print {
    body.payout-receipt-page { background: #fff !important; }
    body.payout-receipt-page .appHeader,
    body.payout-receipt-page .appBottomMenu,
    body.payout-receipt-page #loader { display: none !important; }
    body.payout-receipt-page #appCapsule,
    body.payout-receipt-page .app-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
    body.payout-receipt-page .payout-receipt-section { padding: 0 !important; }
    body.payout-receipt-page .payout-receipt,
    body.dark-mode-active.payout-receipt-page .payout-receipt { margin: 0 !important; min-height: 0 !important; background: #fff !important; color: #141515 !important; border: 0 !important; box-shadow: none !important; }
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-id,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-to p,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-from p,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td:nth-child(2),
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table td:nth-child(3),
    body.dark-mode-active.payout-receipt-page .payout-receipt-reference { color: #4f5050 !important; }
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-to h4,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-person .invoice-from h4,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table tbody,
    body.dark-mode-active.payout-receipt-page .payout-receipt-reference strong,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview li { color: #141515 !important; }
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-detail .table,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview,
    body.dark-mode-active.payout-receipt-page .payout-receipt .invoice-total .listview li { border-color: #e1e1e1 !important; }
}
/* Profile photos are stored square for a predictable crop and presented as a
   circular avatar only in the interface. */
.profile-avatar-section { display: flex; justify-content: center; margin-top: -4px; margin-bottom: 14px; }
.profile-avatar-shell { position: relative; width: 100px; height: 100px; }
.profile-avatar-image, .profile-avatar-fallback { display: flex; width: 100px; height: 100px; align-items: center; justify-content: center; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.18); object-fit: cover; color: var(--noupia-primary); font-size: 32px; font-weight: 700; line-height: 1; }
.profile-avatar-edit { position: absolute; right: -4px; bottom: -1px; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 3px solid #fff; border-radius: 50%; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.18); font-size: 18px; }
.profile-avatar-edit:hover, .profile-avatar-edit:focus { color: #fff; }
.header-profile-link { display: inline-flex !important; align-items: center; justify-content: center; }
.header-profile-avatar { display: block; width: 31px; height: 31px; border: 2px solid rgba(255,255,255,.96); border-radius: 50%; object-fit: cover; }
.header-profile-initials { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--noupia-primary); font-size: 11px; font-weight: 700; line-height: 1; }
.header-notifications-link { position: relative; display: inline-flex !important; align-items: center; justify-content: center; }
.header-notification-badge { position: absolute; top: 7px; right: 1px; display: inline-flex; min-width: 16px; height: 16px; padding: 0 3px; align-items: center; justify-content: center; border: 1px solid var(--noupia-primary); border-radius: 9px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
.noupia-stakeholder-chip { display: flex; box-sizing: border-box; width: max-content; min-width: 120px; height: 40px; margin-top: 10px; max-width: 100%; color: inherit; vertical-align: top; }
.noupia-stakeholder-chip.chip-media { padding-left: 40px; }
.noupia-stakeholder-chip.chip-media img, .noupia-stakeholder-avatar { width: 40px; height: 40px; border-radius: 50%; position: absolute; left: 0; top: 0; object-fit: cover; }
.noupia-stakeholder-avatar { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--noupia-primary); font-size: 13px; font-weight: 700; line-height: 1; }
.noupia-stakeholder-chip .chip-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
body.dark-mode-active .noupia-stakeholder-chip { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.journey-detail-page > .journey-detail-card { margin: 0 16px !important; }
.journey-detail-page > .journey-detail-card + .journey-detail-card { margin-top: 16px !important; }
.journey-detail-hero .section { margin-bottom: 16px !important; }
.journey-detail-hero .home-hero.page-hero { min-height: 132px; }
.journey-detail-hero .page-hero .home-hero-copy { padding: 18px 20px; }
.journey-detail-hero .page-hero .home-hero-copy h1 { font-size: 27px; margin-bottom: 5px; }
.journey-detail-hero .page-hero .home-hero-copy p { margin-bottom: 0; }
.journey-detail-page .journey-detail-back { display: inline-flex; align-items: center; gap: 3px; margin: 0 16px 8px; color: var(--noupia-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.journey-detail-page .journey-detail-back ion-icon { font-size: 20px; }
.journey-detail-summary { display: grid; gap: 16px; margin-bottom: 18px; }
.journey-detail-summary-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.journey-detail-heading-copy { flex: 1 1 auto; min-width: 0; }
.journey-detail-kicker { margin: 0 0 5px; color: var(--noupia-primary); font-size: 12px; font-weight: 700; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; }
.journey-detail-reference { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.journey-detail-reference strong { color: inherit; font-weight: 600; }
.journey-detail-status { flex: 0 0 auto; max-width: 46%; padding: 7px 10px; border-radius: 999px; font-size: 11px; line-height: 1.2; text-align: center; text-transform: uppercase; white-space: normal; }
.journey-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.journey-detail-fact { display: flex; min-width: 0; min-height: 68px; flex-direction: column; justify-content: center; gap: 5px; padding: 11px 12px; border: 1px solid rgba(17, 24, 39, .09); border-radius: 12px; background: rgba(0, 0, 0, .018); }
.journey-detail-fact-label { display: flex; min-width: 0; align-items: center; gap: 5px; color: #6b7280; font-size: 11px; font-weight: 600; line-height: 1.2; }
.journey-detail-fact-label ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 16px; }
.journey-detail-fact > strong { min-width: 0; color: inherit; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.journey-detail-fact-route { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; }
body.dark-mode-active .journey-detail-reference,
body.dark-mode-active .journey-detail-fact-label { color: rgba(255,255,255,.64); }
body.dark-mode-active .journey-detail-fact { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
.journey-accordion-body { padding: 14px 16px 16px !important; background: rgba(0,0,0,.012); }
.journey-package-summary { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(17,24,39,.09); border-radius: 14px; background: rgba(0,0,0,.018); }
.journey-package-icon, .journey-panel-link-icon, .journey-route-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: var(--noupia-primary); }
.journey-package-icon { width: 42px; height: 42px; border-radius: 13px; background: rgba(3, 120, 210,.12); }
.journey-package-icon ion-icon { font-size: 23px; }
.journey-panel-eyebrow { margin: 0 0 4px; color: #6b7280; font-size: 11px; font-weight: 600; letter-spacing: .025em; line-height: 1.25; text-transform: uppercase; }
.journey-package-summary strong { display: block; font-size: 15px; line-height: 1.25; }
.journey-panel-meta { margin: 3px 0 0; color: #6b7280; font-size: 13px; line-height: 1.35; }
.journey-panel-link { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 10px; padding: 0 12px; border: 1px solid rgba(17,24,39,.09); border-radius: 12px; color: inherit; text-decoration: none; }
.journey-panel-link-icon { width: 27px; height: 27px; border-radius: 9px; background: rgba(3, 120, 210,.1); }
.journey-panel-link-icon ion-icon { font-size: 17px; }
.journey-panel-link > span:nth-child(2) { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; }
.journey-panel-link > ion-icon { flex: 0 0 auto; color: #6b7280; font-size: 18px; }
.journey-route-instructions { display: grid; gap: 0; padding: 2px 1px; }
.journey-route-stop { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 8px 0 15px; }
.journey-route-stop:not(.journey-route-stop-last)::after { position: absolute; top: 39px; bottom: -1px; left: 16px; width: 2px; border-radius: 2px; background: rgba(3, 120, 210,.25); content: ''; }
.journey-route-stop-last { padding-bottom: 2px; }
.journey-route-icon { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: rgba(3, 120, 210,.12); }
.journey-route-icon ion-icon { font-size: 18px; }
.journey-route-stop a { display: block; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.journey-route-stop a span { display: inline; margin-left: 4px; color: var(--noupia-primary); font-size: 12px; font-weight: 500; white-space: nowrap; }
.journey-empty-guidance { display: flex; align-items: center; gap: 9px; padding: 7px 1px; color: #6b7280; font-size: 13px; line-height: 1.4; }
.journey-empty-guidance ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 20px; }
body.dark-mode-active .journey-accordion-body { background: rgba(255,255,255,.018); }
body.dark-mode-active .journey-package-summary,
body.dark-mode-active .journey-panel-link { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
body.dark-mode-active .journey-panel-eyebrow,
body.dark-mode-active .journey-panel-meta,
body.dark-mode-active .journey-panel-link > ion-icon,
body.dark-mode-active .journey-empty-guidance { color: rgba(255,255,255,.64); }

/* Public delivery tracking: keep the reference, status and key timing facts easy to scan. */
.tracking-page-hero .section { margin-bottom: 16px !important; }
.tracking-page-hero .home-hero.page-hero { min-height: 132px; }
.tracking-page-hero .page-hero .home-hero-copy { padding: 18px 20px; }
.tracking-page-hero .page-hero .home-hero-copy h1 { font-size: 27px; margin-bottom: 5px; }
.tracking-page-hero .page-hero .home-hero-copy p { margin-bottom: 0; }
.tracking-summary { display: grid; gap: 14px; margin-bottom: 16px; }
.tracking-summary-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.tracking-heading-copy { flex: 1 1 auto; min-width: 0; }
.tracking-kicker { margin: 0 0 5px; color: var(--noupia-primary); font-size: 12px; font-weight: 700; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; }
.tracking-reference { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.tracking-reference strong { color: inherit; font-weight: 600; }
.tracking-status { flex: 0 0 auto; max-width: 46%; padding: 7px 10px; border-radius: 999px; font-size: 11px; line-height: 1.2; text-align: center; text-transform: uppercase; white-space: normal; }
.tracking-last-update { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: -5px 0 0; color: #6b7280; font-size: 13px; line-height: 1.35; }
.tracking-last-update ion-icon { color: var(--noupia-primary); font-size: 16px; }
.tracking-last-update time { color: var(--noupia-primary); font-weight: 600; }
.tracking-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tracking-fact,
.tracking-collection { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 5px; padding: 11px 12px; border: 1px solid rgba(17, 24, 39, .09); border-radius: 12px; background: rgba(0, 0, 0, .018); }
.tracking-fact { min-height: 68px; }
.tracking-fact-label { display: flex; min-width: 0; align-items: center; gap: 5px; color: #6b7280; font-size: 11px; font-weight: 600; line-height: 1.2; }
.tracking-fact-label ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 16px; }
.tracking-fact > strong,
.tracking-collection > strong { min-width: 0; color: inherit; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.tracking-collection { margin-bottom: 16px; }
.tracking-collection > a { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.tracking-release-card { margin-bottom: 16px; }
body.dark-mode-active .tracking-reference,
body.dark-mode-active .tracking-last-update,
body.dark-mode-active .tracking-fact-label { color: rgba(255,255,255,.64); }
body.dark-mode-active .tracking-fact,
body.dark-mode-active .tracking-collection { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }

/* Credits summary: make the usable balance and its limits easier to absorb on mobile. */
.balance-available-summary .card-body { padding: 22px 20px; }
.balance-summary-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.balance-summary-icon { display: flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--noupia-primary); color: #fff; box-shadow: 0 8px 18px rgba(3, 120, 210, .2); }
.balance-summary-icon ion-icon { font-size: 24px; }
.balance-summary-eyebrow { margin: 0 0 4px; color: #6b7280; font-size: 14px; font-weight: 600; line-height: 1.25; }
.balance-summary-amount { margin: 0; color: var(--noupia-primary); font-size: 29px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.earnings-available-summary .card-body { padding: 22px 20px; }
.earnings-available-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.earnings-available-icon { display: flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--noupia-primary); color: #fff; box-shadow: 0 8px 18px rgba(3, 120, 210, .2); }
.earnings-available-icon ion-icon { font-size: 24px; }
.earnings-available-eyebrow { margin: 0 0 4px; color: #6b7280; font-size: 14px; font-weight: 600; line-height: 1.25; }
.earnings-available-amount { margin: 0; color: var(--noupia-primary); font-size: 29px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
body.dark-mode-active .earnings-available-eyebrow { color: rgba(255,255,255,.64); }
.balance-summary-note,
.balance-summary-support { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; padding: 13px 0; border-top: 1px solid rgba(17, 24, 39, .09); }
.balance-summary-note ion-icon,
.balance-summary-support ion-icon { margin-top: 2px; color: var(--noupia-primary); font-size: 19px; }
.balance-summary-note p,
.balance-summary-support p { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.5; text-align: justify; }
.balance-summary-support { padding-bottom: 0; }
body.dark-mode-active .balance-summary-eyebrow,
body.dark-mode-active .balance-summary-note p,
body.dark-mode-active .balance-summary-support p { color: rgba(255,255,255,.64); }
body.dark-mode-active .balance-summary-note,
body.dark-mode-active .balance-summary-support { border-color: rgba(255,255,255,.1); }

/* Balance sheets: make long references, statuses and money values scannable on narrow screens. */
.balance-record-list { display: grid; gap: 10px; padding: 1px 0 8px; }
.balance-record-card { display: block; padding: 13px; border: 1px solid rgba(17,24,39,.1); border-radius: 14px; color: inherit; background: rgba(0,0,0,.018); text-decoration: none; }
.balance-record-link:active { transform: scale(.99); }
.balance-record-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.balance-record-copy { display: flex; flex: 1 1 auto; min-width: 0; gap: 9px; }
.balance-record-icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(3, 120, 210,.12); color: var(--noupia-primary); }
.balance-record-icon ion-icon { font-size: 18px; }
.balance-record-copy > div { min-width: 0; }
.balance-record-copy strong { display: block; min-width: 0; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.balance-record-copy time { display: block; margin-top: 3px; color: #6b7280; font-size: 12px; line-height: 1.25; }
.balance-record-amount { flex: 0 0 auto; max-width: 42%; font-size: 14px; line-height: 1.25; text-align: right; overflow-wrap: anywhere; }
.balance-record-amount.is-negative { color: #a62b37; }
.balance-record-value { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; max-width: 42%; text-align: right; }
.balance-record-value > strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.balance-record-value .badge { max-width: 100%; padding: 5px 8px; border-radius: 999px; font-size: 10px; line-height: 1.15; text-align: center; text-transform: uppercase; white-space: normal; }
.balance-record-reference { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(17,24,39,.09); color: #6b7280; font-size: 13px; line-height: 1.35; }
.balance-record-reference > ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 17px; }
.balance-record-reference > span { min-width: 0; overflow-wrap: anywhere; }
.balance-record-chevron { margin-left: auto; color: #6b7280 !important; }
body.dark-mode-active .balance-record-card { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.03); }
body.dark-mode-active .balance-record-copy time,
body.dark-mode-active .balance-record-reference,
body.dark-mode-active .balance-record-chevron { color: rgba(255,255,255,.64) !important; }
body.dark-mode-active .balance-record-reference { border-color: rgba(255,255,255,.1); }

/* Shared mobile dialogs: confirmations read as a focused decision, while
   informational dialogs retain a compact, consistent card treatment. */
.noupia-user-app .modal-backdrop.show { opacity: .62; }
.noupia-user-app .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-content { border: 1px solid rgba(17,24,39,.08); border-radius: 20px; box-shadow: 0 18px 48px rgba(15,23,42,.22); overflow: hidden; }
.noupia-user-app .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-header { padding: 19px 20px 14px; border-bottom-color: rgba(17,24,39,.08); }
.noupia-user-app .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-body { padding: 18px 20px; }
.noupia-user-app .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-footer { padding: 13px 20px; border-top-color: rgba(17,24,39,.08); }
.noupia-user-app .dialogbox .modal-dialog .modal-content { width: min(calc(100vw - 40px), 344px); max-width: 344px; border: 1px solid rgba(17,24,39,.08); border-radius: 22px; box-shadow: 0 22px 58px rgba(15,23,42,.28); overflow: hidden; }
.noupia-user-app .dialogbox .modal-icon { display: grid; width: 62px; height: 62px; margin: 24px auto 0; place-items: center; border-radius: 20px; background: rgba(3, 120, 210,.11); color: var(--noupia-primary); font-size: 32px; line-height: 1; }
.noupia-user-app .dialogbox .modal-icon.text-danger { background: rgba(214,63,77,.12); }
.noupia-user-app .dialogbox .modal-icon.text-primary { background: rgba(3, 120, 210,.11); }
.noupia-user-app .dialogbox .modal-dialog .modal-content .modal-header { padding: 17px 24px 7px; }
.noupia-user-app .dialogbox .modal-dialog .modal-content .modal-header .modal-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.noupia-user-app .dialogbox .modal-dialog .modal-content .modal-body { padding: 0 24px 23px; margin-bottom: 0; color: var(--noupia-muted); font-size: 14px; line-height: 1.55; }
.noupia-user-app .dialogbox .modal-dialog .modal-content .modal-body.text-start { text-align: left; }
.noupia-user-app .dialogbox .modal-dialog .modal-content .modal-footer { border-top-color: rgba(17,24,39,.08); }
.noupia-user-app .dialogbox .modal-dialog .modal-content .btn-inline { background: rgba(17,24,39,.08); }
.noupia-user-app .dialogbox .modal-dialog .modal-content .btn-inline .btn { min-height: 56px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.noupia-user-app .dialogbox .modal-dialog .modal-content .btn-inline .btn.text-primary { color: var(--noupia-primary); }
.noupia-user-app .dialogbox .modal-dialog .modal-content .btn-inline .btn.text-danger { color: #c43745; }
.noupia-user-app .modal-footer .btn { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
body.dark-mode-active .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-content { background: #292929; color: #fff; border-color: rgba(255,255,255,.1); box-shadow: 0 22px 58px rgba(0,0,0,.48); }
body.dark-mode-active .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-header,
body.dark-mode-active .modal:not(.dialogbox):not(#noupia-location-map-modal) .modal-footer { border-color: rgba(255,255,255,.1); }
body.dark-mode-active .dialogbox .modal-dialog .modal-content { border-color: rgba(255,255,255,.1); box-shadow: 0 22px 58px rgba(0,0,0,.52); }
body.dark-mode-active .dialogbox .modal-icon { background: rgba(3,155,229,.16); }
body.dark-mode-active .dialogbox .modal-icon.text-danger { background: rgba(214,63,77,.17); }
body.dark-mode-active .dialogbox .modal-dialog .modal-content .modal-body { color: rgba(255,255,255,.68); }
body.dark-mode-active .dialogbox .modal-dialog .modal-content .modal-footer { border-top-color: rgba(255,255,255,.1); }
body.dark-mode-active .dialogbox .modal-dialog .modal-content .btn-inline { background: rgba(0,0,0,.28); }
body.dark-mode-active .dialogbox .modal-dialog .modal-content .btn-inline .btn { background: #292929; color: rgba(255,255,255,.68); }
body.dark-mode-active .dialogbox .modal-dialog .modal-content .btn-inline .btn.text-primary { color: #41caa1; }
body.dark-mode-active .dialogbox .modal-dialog .modal-content .btn-inline .btn.text-danger { color: #ff737d; }

/* Sender delivery detail: reference and next actions should not compete with the timeline. */
.shipment-detail-hero .section { margin-bottom: 16px !important; }
.shipment-detail-hero .home-hero.page-hero { min-height: 132px; }
.shipment-detail-hero .page-hero .home-hero-copy { padding: 18px 20px; }
.shipment-detail-hero .page-hero .home-hero-copy h1 { font-size: 27px; margin-bottom: 5px; }
.shipment-detail-hero .page-hero .home-hero-copy p { margin-bottom: 0; }
.shipment-timeline-card .card-body { padding: 20px; }
.shipment-summary-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding-bottom: 15px; }
.shipment-summary-copy { flex: 1 1 auto; min-width: 0; }
.shipment-summary-kicker { margin: 0 0 5px; color: var(--noupia-primary); font-size: 12px; font-weight: 700; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; }
.shipment-summary-reference { margin: 0; color: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.shipment-share-button { flex: 0 0 auto; margin-top: 1px; }
.shipment-summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 3px; }
.shipment-summary-fact { display: flex; min-width: 0; min-height: 66px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 11px; border: 1px solid rgba(17, 24, 39, .09); border-radius: 12px; background: rgba(0, 0, 0, .018); }
.shipment-summary-fact > span { display: flex; align-items: center; gap: 5px; color: #6b7280; font-size: 11px; font-weight: 600; line-height: 1.2; }
.shipment-summary-fact > span ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 16px; }
.shipment-summary-fact > strong { min-width: 0; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.shipment-summary-chat-link { margin: 13px 0 10px; padding-top: 14px; }
body.dark-mode-active .shipment-summary-fact { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
body.dark-mode-active .shipment-summary-fact > span { color: rgba(255,255,255,.64); }
@media (max-width: 390px) { .shipment-summary-heading { flex-direction: column; }.shipment-share-button { align-self: flex-start; }.shipment-summary-facts { grid-template-columns: 1fr; } }

/* Sender shipment detail: a calm data-card layout that preserves the native
   MobileKit hierarchy and gives the empty timeline a clear, separate lane. */
.shipment-timeline-card .timeline.timed { margin-top: 2px; }
.shipment-timeline-empty { display: flex; align-items: center; gap: 9px; min-height: 74px; margin: 4px 0 0 88px; padding: 13px 14px; border: 1px dashed rgba(17, 24, 39, .16); border-radius: 12px; background: rgba(3, 155, 229, .045); color: var(--noupia-muted); font-size: 13px; line-height: 1.4; }
.shipment-timeline-empty ion-icon { flex: 0 0 auto; color: var(--noupia-primary); font-size: 19px; }
.shipment-details-card { overflow: hidden; border: 1px solid rgba(17, 24, 39, .08); border-radius: 16px; box-shadow: 0 7px 19px rgba(20, 56, 46, .055); }
.shipment-details-card__header { margin: -16px -16px 0; padding: 18px 16px 15px; border-bottom: 1px solid rgba(17, 24, 39, .08); background: linear-gradient(135deg, rgba(3, 155, 229, .09), rgba(3, 155, 229, .015)); }
.shipment-details-card__reference { margin: 0; font-size: 20px; line-height: 1.28; overflow-wrap: anywhere; }
.shipment-details-card__status { margin: 9px 0 0; }
.shipment-details-card__status .badge { border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.shipment-details-card__route { margin: 11px 0 0; line-height: 1.45; }
.shipment-details-instructions { text-align: justify; text-justify: inter-word; line-height: 1.7; }
.shipment-details-grid { margin-top: 10px; }
.shipment-details-grid > dt,
.shipment-details-grid > dd { min-height: 52px; margin: 0; padding-top: 13px; padding-bottom: 13px; border-bottom: 1px solid rgba(17, 24, 39, .075); }
.shipment-details-grid > dt { color: var(--noupia-muted); font-size: 12px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.shipment-details-grid > dd { color: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.shipment-details-grid > dd a { color: var(--noupia-primary); font-weight: 600; }
.shipment-details-grid > dt:last-of-type,
.shipment-details-grid > dd:last-child { border-bottom: 0; }
.shipment-details-card .shipment-detail-photo { display: block; width: 100%; max-width: none; min-height: 112px; border: 1px solid rgba(17, 24, 39, .08); box-shadow: 0 4px 12px rgba(20, 56, 46, .08); }
.shipment-cancel-switch { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 16px 0 12px; padding: 12px; border: 1px solid rgba(17, 24, 39, .1); border-radius: 12px; background: rgba(3, 155, 229, .035); }
.shipment-cancel-switch .form-switch { flex: 0 0 56px; width: 56px; margin: 0; }
.shipment-cancel-switch .form-switch .form-check-label { display: block; }
.shipment-cancel-switch__copy { margin: 0; color: inherit; font-weight: 600; line-height: 1.35; cursor: pointer; }
body.dark-mode-active .shipment-timeline-empty { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.035); color: rgba(255,255,255,.66); }
body.dark-mode-active .shipment-details-card { border-color: #3d3d3d; background: #292929; box-shadow: none; }
body.dark-mode-active .shipment-details-card__header { border-color: #3d3d3d; background: linear-gradient(135deg, rgba(3, 155, 229, .16), rgba(255,255,255,.015)); }
body.dark-mode-active .shipment-details-grid > dt,
body.dark-mode-active .shipment-details-grid > dd { border-color: rgba(255,255,255,.09); }
body.dark-mode-active .shipment-details-grid > dt { color: rgba(255,255,255,.58); }
body.dark-mode-active .shipment-details-card .shipment-detail-photo { border-color: rgba(255,255,255,.1); box-shadow: none; }
body.dark-mode-active .shipment-cancel-switch { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
@media (max-width: 390px) { .shipment-timeline-empty { margin-left: 72px; } .shipment-details-grid > dt { font-size: 11px; } }

/* Reusable, icon-only reference copy control for the mobile app. */
[data-copy-reference] { overflow-wrap: anywhere; }
.resource-reference-copy { display: inline-flex; width: 28px; height: 28px; margin: 0 5px 0 0; padding: 0; align-items: center; justify-content: center; vertical-align: middle; border: 0; border-radius: 50%; background: transparent; color: var(--noupia-primary); line-height: 1; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.resource-reference-copy:hover,
.resource-reference-copy:focus-visible { background: rgba(3, 120, 210, .1); outline: 0; }
.resource-reference-copy:active { transform: scale(.92); }
.resource-reference-copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.resource-reference-copy.is-copied { background: rgba(3, 120, 210, .12); color: var(--noupia-primary); }
.resource-reference-copy.is-copy-failed { background: rgba(220, 53, 69, .1); color: #dc3545; }
body.dark-mode-active .resource-reference-copy:hover,
body.dark-mode-active .resource-reference-copy:focus-visible,
body.dark-mode-active .resource-reference-copy.is-copied { background: rgba(255,255,255,.1); }
.journey-detail-stack > .journey-action-card { display: block !important; width: calc(100% - 32px) !important; min-width: 0; box-sizing: border-box; margin: 16px auto 0 !important; border-radius: 16px !important; overflow: hidden; }
.journey-detail-stack > .journey-action-card > .card-body { padding: 16px !important; }
body.dark-mode-active .journey-detail-stack > .journey-action-card { background: #292929 !important; }
/* Collection/arrival actions pair a tall evidence field with the next action.
   Keep one normal card rhythm between them regardless of utility CSS loading. */
.journey-detail-card form[data-photo-required] > .custom-file-upload { margin-bottom: 16px !important; }
.journey-detail-card form[data-photo-required] > .custom-file-upload + .btn { margin-top: 0 !important; }
.journey-leg-actions > form:first-child { margin-top: 0 !important; }
.journey-leg-actions > .accordion:last-child { margin-bottom: 0 !important; }
.noupia-compensation-chip { margin: 0 0 12px; color: #fff; }
.noupia-compensation-chip .chip-icon { background: var(--noupia-primary) !important; color: #fff !important; }
.noupia-compensation-chip .chip-label { color: #fff; }
.profile-avatar-crop-wrap { text-align: center; }
.profile-avatar-crop-wrap canvas { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; border-radius: 5px; background: #fff; touch-action: none; cursor: grab; }
.profile-avatar-crop-wrap canvas:active { cursor: grabbing; }
.profile-avatar-preview-wrap { text-align: center; }
.profile-avatar-preview { display: block; width: 160px; height: 160px; margin: 0 auto; border: 4px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px rgba(0,0,0,.16); }
body.dark-mode-active .profile-avatar-crop-wrap canvas { border: 1px solid #3d3d3d; }
/* Delivery chat follows MobileKit's compact chat-page rhythm but remains a
   normal server-rendered page with progressively enhanced polling. */
.journey-chat-link { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 14px 2px; border-top: 1px solid rgba(0,0,0,.12); background: transparent !important; color: inherit !important; box-shadow: none !important; text-decoration: none; }
.journey-chat-link > span:first-child { display: inline-flex; align-items: center; gap: 11px; flex: 1; font-size: 16px; }
.journey-chat-link > span:first-child ion-icon { font-size: 25px; }.journey-chat-link > ion-icon { font-size: 21px; opacity: .55; }
.shipment-chat-link { margin: 0 0 12px; }.journey-chat-accordion-item .journey-chat-link { min-height: 0; padding: 1.25rem; border-top: 0; gap: 12px; }.journey-chat-accordion-item .journey-chat-link > ion-icon { flex: 0 0 24px; font-size: 25px; opacity: 1; }.journey-chat-accordion-item .journey-chat-link > span:not(.chat-unread-badge) { flex: 1; }.journey-chat-accordion-item .journey-chat-link::after { margin-left: 8px; }
.journey-chat-link > .chat-unread-badge { display: inline-flex; flex: 0 0 22px; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; padding: 0; border-radius: 50%; font-size: 11px; line-height: 1; }
.chat-card { overflow: hidden; }.chat-card .card-header { padding: 14px 16px; }.chat-body { min-height: 50vh; max-height: 62vh; overflow-y: auto; padding: 16px; background: rgba(0,0,0,.025); }
.chat-message { display: flex; gap: 9px; margin: 0 0 15px; align-items: flex-start; }.chat-message-own { flex-direction: row-reverse; }.chat-message-system { justify-content: center; margin: 13px 0; }.chat-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff; color: var(--noupia-primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }.chat-avatar img { width: 100%;height:100%;object-fit:cover; }.chat-message-content { max-width: calc(100% - 48px); }.chat-sender { font-size: 12px; font-weight: 600; margin: 0 0 3px; }.chat-message-own .chat-sender { text-align:right; }.chat-bubble { padding: 10px 12px; border-radius: 12px; background: #f0f1f2; white-space: pre-wrap; overflow-wrap:anywhere; }.chat-message-own .chat-bubble { background: var(--noupia-primary); color: #fff; border-bottom-right-radius: 3px; }.chat-message-other .chat-bubble { border-bottom-left-radius: 3px; }.chat-bubble img { display:block; width:220px; max-width:100%; border-radius:7px; }.chat-time { display:block; margin-top:3px; font-size:10px; opacity:.62; }.chat-message-own .chat-time{text-align:right}.chat-system-text { padding: 6px 11px; border-radius: 12px; background: rgba(0,0,0,.08); font-size: 11px; text-align: center; }.chat-translate { border:0; background:transparent; padding:4px 0 0; color:var(--noupia-primary); font-size:12px; }.chat-translation { margin-top:6px; padding:7px 9px; border-left:2px solid var(--noupia-primary); font-size:13px; opacity:.85; }.chat-compose { display:flex; align-items:center; gap:8px; padding:10px; border-top:1px solid rgba(0,0,0,.1); }.chat-compose textarea { flex:1; resize:none; min-height:40px; max-height:94px; padding:9px 11px; border-radius:20px; }.chat-photo-button { border:0;background:transparent;color:var(--noupia-primary);font-size:24px;line-height:1; }.chat-send-button { border-radius:50%;width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center; }.chat-send-button ion-icon{font-size:19px}.dark-mode-active .chat-body { background: rgba(255,255,255,.025); }.dark-mode-active .chat-bubble { background:#343434; }.dark-mode-active .journey-chat-link{border-color:rgba(255,255,255,.12)}

/* Delivery chat follows MobileKit's page-chat message hierarchy. */
/* Menu overlays are absolute, so they never change the page's height. */
body.delivery-chat-shell .chat-compose-group .form-control,
body.delivery-chat-shell .chat-compose-group .chat-photo-button { background-color: var(--bs-tertiary-bg) !important; }
body.dark-mode-active.delivery-chat-shell .chat-compose-group .form-control,
body.dark-mode-active.delivery-chat-shell .chat-compose-group .chat-photo-button { background-color: #1a1a1a !important; }
.delivery-chat-shell .chat-translation.is-loading{display:inline-flex;align-items:center;gap:7px;color:var(--noupia-primary)}
.delivery-chat-shell #appCapsule,.delivery-chat-shell .app-content{min-height:100vh}.delivery-chat-shell .app-content{padding:0 0 calc(76px + env(safe-area-inset-bottom))}.delivery-chat-page{padding:8px 0 0}.delivery-chat-messages{padding:4px 0 16px}.delivery-chat-shell .message-item.user .bubble{background:var(--noupia-primary)}.delivery-chat-shell .message-item .bubble{white-space:pre-wrap;overflow-wrap:anywhere}.delivery-chat-shell .message-item{margin-top:15px}.delivery-chat-shell .message-item .content{position:relative;margin-bottom:5px}.delivery-chat-shell .chat-bubble-row{display:flex;align-items:center;gap:0}.delivery-chat-shell .message-item.user .chat-bubble-row{justify-content:flex-end}.delivery-chat-shell .message-item .bubble img{display:block;max-width:220px;width:100%;border-radius:8px}.delivery-chat-shell .chat-avatar-initial{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:var(--noupia-primary);font-weight:700}.delivery-chat-shell .chat-system-message{font-style:italic;padding:8px 22px;color:var(--noupia-primary)!important}.delivery-chat-shell .chat-translation{font-size:13px;padding-top:8px}.delivery-chat-shell .chat-message-dropdown{position:relative;z-index:auto;flex:0 0 auto;display:inline-flex;margin-right:-5px}.delivery-chat-shell .chat-menu-trigger{display:inline-flex;width:30px;min-width:30px;height:32px;padding:0;align-items:center;justify-content:center;border-radius:50%;color:var(--noupia-primary)!important}.delivery-chat-shell .chat-menu-trigger ion-icon{font-size:30px}.delivery-chat-shell .chat-message-dropdown .dropdown-menu{position:fixed!important;display:none;right:auto;left:0;top:0;min-width:172px;white-space:nowrap;z-index:1001}.delivery-chat-shell .chat-message-dropdown .dropdown-menu.show{display:block}.delivery-chat-shell .chat-message-dropdown .dropdown-item{justify-content:flex-start;color:var(--noupia-primary)!important}.delivery-chat-shell .chat-message-dropdown .dropdown-item ion-icon{color:inherit!important}.delivery-chat-shell .chat-message-dropdown .dropdown-item.chat-menu-danger{color:#ec4433!important}.delivery-chat-shell .chatFooter{z-index:1000;padding-left:0;padding-right:8px}.delivery-chat-shell .chatFooter form{justify-content:flex-start;gap:8px}.delivery-chat-shell .chat-compose-group{margin:0;flex:1;min-width:0}.delivery-chat-shell .chat-compose-group .form-control{min-height:48px;height:48px;padding:0 13px;border:0;border-radius:0 24px 24px 0;background:var(--bs-tertiary-bg)}.delivery-chat-shell .chat-compose-group .chat-photo-button{margin-left:5px;width:48px;min-width:48px;height:48px;padding:0;border:0;border-radius:0!important;background:var(--bs-tertiary-bg)!important;color:var(--noupia-primary)!important;display:inline-flex;align-items:center;justify-content:center}.delivery-chat-shell .chat-compose-group .chat-photo-button ion-icon{font-size:27px}.delivery-chat-shell .chat-send-button{width:48px;height:48px;border-radius:50%;border:0;flex:0 0 48px;margin:0;display:inline-flex;align-items:center;justify-content:center;background:var(--noupia-primary);color:#fff}.delivery-chat-shell .chat-send-button ion-icon{font-size:28px}.delivery-chat-shell .chat-header-action{padding:0 8px;min-width:40px;height:44px;color:#fff!important}.delivery-chat-shell .chat-header-action ion-icon{font-size:27px}.delivery-chat-shell .chat-header-action:disabled{opacity:1}.dark-mode-active.delivery-chat-shell .message-item:not(.user) .bubble{background:#252b38}.dark-mode-active.delivery-chat-shell .message-divider{color:#aeb7c6}.dark-mode-active.delivery-chat-shell .chat-compose-group .form-control{background:#252b38;color:#fff}.dark-mode-active.delivery-chat-shell .chat-compose-group .chat-photo-button{background:#252b38!important;color:var(--noupia-primary)!important}

/* Web OAuth stays visible in browsers. Native builds swap only providers
   supported by WebToNative; Android keeps the secure web Apple flow. */
.auth-provider-native{display:none}
html.noupia-native-android .auth-provider-web-google,
html.noupia-native-ios .auth-provider-web-google,
html.noupia-native-ios .auth-provider-web-apple{display:none!important}
html.noupia-native-android .auth-provider-native-google,
html.noupia-native-ios .auth-provider-native-google,
html.noupia-native-ios .auth-provider-native-apple{display:block}
.auth-provider-native .auth-spinner{vertical-align:-.125em}
.support-chat-intro{padding:12px 16px;background:rgba(3, 155, 229,.12);margin:8px 14px;border-radius:12px}.support-chat-intro strong,.support-chat-intro span{display:block}.support-chat-intro span{font-size:.85rem;margin-top:2px}.support-chat-page .delivery-chat-messages{padding-top:8px}.support-chat-page .bubble.support-chat-photo-bubble{padding:0;background:transparent!important}.support-chat-page .support-chat-photo-action{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-color:var(--noupia-primary);border-radius:12px;background:var(--noupia-primary);color:#fff!important;text-transform:none}.support-chat-page .support-chat-photo-action:hover,.support-chat-page .support-chat-photo-action:focus{border-color:var(--noupia-primary);background:var(--noupia-primary);color:#fff!important;filter:brightness(1.06)}.support-chat-page .support-chat-photo-action ion-icon{font-size:20px}.support-chat-page .message-item.user .support-chat-photo-action{border-color:var(--noupia-primary);background:var(--noupia-primary);color:#fff!important}

/* Home-only wallet experience. Shared MobileKit header, navigation, cards and
   action-sheet primitives remain untouched. */
.noupia-home{padding-bottom:4px}.noupia-wallet-hero{position:relative;overflow:hidden;margin:0 0 14px;padding:22px 20px 25px;border-radius:0 0 30px 30px;background:linear-gradient(145deg,#039be5 0%,#117ef2 58%,#0861d7 100%);color:#fff;box-shadow:0 12px 24px rgba(3,155,229,.2)}.noupia-wallet-hero::after{content:"";position:absolute;z-index:0;right:-70px;bottom:-125px;width:300px;height:220px;border:1px solid rgba(255,255,255,.18);border-radius:48% 52% 0 0;transform:rotate(-16deg)}.noupia-wallet-hero-orb{position:absolute;z-index:0;border-radius:50%;background:rgba(255,255,255,.09);pointer-events:none}.noupia-wallet-hero-orb-one{width:190px;height:190px;right:-96px;top:-78px}.noupia-wallet-hero-orb-two{width:110px;height:110px;left:-68px;bottom:31px}.noupia-wallet-greeting,.noupia-wallet-balance-label,.noupia-wallet-amount,.noupia-wallet-display-note,.noupia-wallet-actions{position:relative;z-index:1}.noupia-wallet-greeting{display:flex;flex-direction:column;margin-bottom:26px}.noupia-wallet-greeting-label{font-size:13px;opacity:.78}.noupia-wallet-greeting strong{font-size:19px;line-height:1.28}.noupia-wallet-balance-label{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600}.noupia-balance-visibility{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff}.noupia-balance-visibility ion-icon{font-size:21px}.noupia-wallet-amount{display:flex;align-items:baseline;gap:7px;margin-top:3px;letter-spacing:-1px}.noupia-wallet-amount-number{font-size:36px;line-height:1.15;font-weight:800}.noupia-wallet-amount-currency{font-size:20px;font-weight:700;letter-spacing:0}.noupia-wallet-display-note{min-height:18px;margin:5px 0 20px;font-size:12px;opacity:.78}.noupia-wallet-amount.is-hidden .noupia-wallet-amount-number,.noupia-wallet-amount.is-hidden .noupia-wallet-amount-currency{font-size:27px;letter-spacing:3px}.noupia-wallet-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.noupia-wallet-action{display:flex;min-width:0;flex-direction:column;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:#fff}.noupia-wallet-action>span{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.13);box-shadow:inset 0 1px rgba(255,255,255,.14)}.noupia-wallet-action ion-icon{font-size:25px}.noupia-wallet-action strong{font-size:12px;font-weight:600}.noupia-wallet-action:focus-visible,.noupia-balance-visibility:focus-visible{outline:2px solid #fff;outline-offset:3px}.noupia-home-summary{margin-top:0}.noupia-home-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.noupia-home-summary-card{display:flex;min-width:0;min-height:124px;flex-direction:column;align-items:flex-start;padding:13px 11px;border:0;border-radius:18px;background:#eef7ff;color:#18243f;text-align:left;text-decoration:none;box-shadow:0 3px 13px rgba(17,126,242,.07)}button.noupia-home-summary-card{font-family:inherit}.noupia-home-summary-savings{background:#e9fbfa}.noupia-home-summary-cards{background:#eff1ff}.noupia-home-summary-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-bottom:12px;border-radius:12px;background:rgba(3,155,229,.13);color:#087ddd}.noupia-home-summary-savings .noupia-home-summary-icon{background:rgba(7,196,185,.15);color:#00a99d}.noupia-home-summary-cards .noupia-home-summary-icon{background:rgba(17,126,242,.13);color:#117ef2}.noupia-home-summary-icon ion-icon{font-size:21px}.noupia-home-summary-label{min-height:30px;font-size:12px;line-height:15px;color:#536176}.noupia-home-summary-card strong{display:block;width:100%;font-size:15px;line-height:18px;overflow-wrap:anywhere}.noupia-home-summary-card small{font-size:10px;font-weight:600;white-space:nowrap}.noupia-home-goals{margin-top:15px}.noupia-home-goals-card{border:0!important;border-radius:20px!important;box-shadow:0 3px 16px rgba(20,39,75,.08)}.noupia-home-goals-card .card-body{padding:18px}.noupia-home-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.noupia-home-section-title h2{margin:0;color:#14233e;font-size:21px;font-weight:750}.noupia-home-section-title .btn{display:inline-flex;align-items:center;gap:2px;padding:2px 0;color:var(--noupia-primary);font-size:13px;font-weight:600;text-decoration:none}.noupia-home-section-title ion-icon{font-size:16px}.noupia-empty-goal{display:flex;width:100%;align-items:center;gap:12px;margin-top:17px;padding:12px 2px;border:0;background:transparent;color:#17233d;text-align:left}.noupia-empty-goal-icon{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:47px;height:47px;border-radius:50%;background:#eaf5ff;color:var(--noupia-primary)}.noupia-empty-goal-icon ion-icon{font-size:24px}.noupia-empty-goal>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.noupia-empty-goal strong{font-size:15px}.noupia-empty-goal small{font-size:12px;line-height:17px;color:#738096}.noupia-empty-goal>ion-icon{font-size:24px;color:var(--noupia-primary)}.noupia-home-sheet .offcanvas-body{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.noupia-home-sheet-help{margin:0 0 16px;color:#6f7c90;font-size:14px;line-height:20px}.noupia-home-action-feedback{min-height:20px;margin:10px 0 0;color:#6f7c90;font-size:13px;text-align:center}.noupia-more-list{margin:0!important;border-radius:15px;overflow:hidden}.noupia-more-list a,.noupia-more-list button{display:flex;width:100%;align-items:center;justify-content:space-between;padding:16px 14px;border:0;border-bottom:1px solid rgba(115,128,150,.15);background:transparent;color:inherit;text-decoration:none;text-align:left}.noupia-more-list a:last-child,.noupia-more-list button:last-child{border-bottom:0}.noupia-more-list a>span,.noupia-more-list button>span:first-child{display:flex;align-items:center;gap:12px}.noupia-more-list ion-icon{font-size:22px;color:var(--noupia-primary)}.noupia-more-list .badge{font-size:10px}.noupia-home .btn-primary{background-color:var(--noupia-primary)!important;border-color:var(--noupia-primary)!important}
body.dark-mode-active .noupia-home-summary-card{background:#20283a;color:#f4f7ff;box-shadow:none}body.dark-mode-active .noupia-home-summary-savings{background:#173333}body.dark-mode-active .noupia-home-summary-cards{background:#222849}body.dark-mode-active .noupia-home-summary-label,body.dark-mode-active .noupia-empty-goal small,body.dark-mode-active .noupia-home-sheet-help,body.dark-mode-active .noupia-home-action-feedback{color:#aab6c7}body.dark-mode-active .noupia-home-goals-card{background:#20283a!important;box-shadow:none}body.dark-mode-active .noupia-home-section-title h2,body.dark-mode-active .noupia-empty-goal{color:#f4f7ff}body.dark-mode-active .noupia-empty-goal-icon{background:#20374d}body.dark-mode-active .noupia-more-list a,body.dark-mode-active .noupia-more-list button{color:#f4f7ff;border-color:rgba(255,255,255,.09)}
@media (min-width:430px){.noupia-wallet-hero{margin-left:8px;margin-right:8px;border-radius:22px 22px 30px 30px}.noupia-wallet-amount-number{font-size:40px}}@media (max-width:340px){.noupia-wallet-hero{padding-left:15px;padding-right:15px}.noupia-wallet-amount-number{font-size:31px}.noupia-wallet-amount-currency{font-size:17px}.noupia-home-summary-grid{gap:6px}.noupia-home-summary-card{padding:11px 8px}.noupia-home-summary-card strong{font-size:13px}}

/* Keep the three Home summary tiles neutral and make the action sheets inherit
   the same MobileKit card/form structure used by the Profile page. */
.noupia-home-summary-card,.noupia-home-summary-savings,.noupia-home-summary-cards{background:#fff}.noupia-wallet-amount{height:46px;min-height:46px}.noupia-wallet-amount.is-hidden{font-size:36px;font-weight:800;letter-spacing:4px;line-height:1.15}.noupia-wallet-amount.is-hidden .noupia-wallet-amount-number,.noupia-wallet-amount.is-hidden .noupia-wallet-amount-currency{font-size:inherit;letter-spacing:inherit}.noupia-home-sheet .card{border:0;box-shadow:0 3px 16px rgba(20,39,75,.08)}.noupia-home-sheet .card-body{padding:18px}.noupia-home-sheet .form-group.basic:last-of-type{margin-bottom:0}.noupia-home-sheet .form-control{min-height:48px}.noupia-home-sheet .offcanvas-header .close-button{display:inline-flex;align-items:center;justify-content:center}.noupia-home-sheet .offcanvas-header .close-button ion-icon{font-size:26px}.noupia-more-list{border-radius:0}.noupia-more-list a,.noupia-more-list button{font-family:inherit}.noupia-more-list a>span,.noupia-more-list button>span:first-child{font-size:15px}body.dark-mode-active .noupia-home-summary-card,body.dark-mode-active .noupia-home-summary-savings,body.dark-mode-active .noupia-home-summary-cards{background:#202124;color:#f4f7ff}body.dark-mode-active .noupia-home-sheet .card{background:#202124;box-shadow:none}body.dark-mode-active .noupia-home-sheet .text-muted{color:#aab6c7!important}@media (max-width:340px){.noupia-wallet-amount,.noupia-wallet-amount.is-hidden{height:42px;min-height:42px;font-size:31px}}

/* A Home sheet is one continuous surface: its title bar and its body never
   use competing backgrounds. */
.noupia-wallet-hero{margin:12px 16px 14px;border-radius:24px}.noupia-home-sheet,.noupia-home-sheet .offcanvas-header,.noupia-home-sheet .offcanvas-body{background:#fff!important}.noupia-home-sheet .offcanvas-header{border-bottom-color:rgba(20,39,75,.1)}body.dark-mode-active .noupia-home-sheet,body.dark-mode-active .noupia-home-sheet .offcanvas-header,body.dark-mode-active .noupia-home-sheet .offcanvas-body{background:#202124!important}body.dark-mode-active .noupia-home-sheet .offcanvas-header{border-bottom-color:rgba(255,255,255,.09)}@media (min-width:430px){.noupia-wallet-hero{margin:12px 16px 14px;border-radius:24px}}

/* Reuse the established Noupia finance photography only as a subdued texture.
   The blue gradient keeps every balance and action legible. */
.noupia-wallet-hero{background-color:var(--noupia-primary);background-image:linear-gradient(rgba(3,155,229,.9),rgba(3,155,229,.9)),url('/noupia/img/noupia-finance-hero.png');background-position:center,center right;background-size:cover,cover;background-repeat:no-repeat,no-repeat}.noupia-home-goals-card{background:var(--noupia-primary)!important}.noupia-home-goals-card .noupia-home-section-title h2,.noupia-home-goals-card .noupia-home-section-title .btn,.noupia-home-goals-card .noupia-empty-goal{color:#fff}.noupia-home-goals-card .noupia-empty-goal small{color:rgba(255,255,255,.8)}.noupia-home-goals-card .noupia-empty-goal-icon{background:rgba(255,255,255,.18);color:#fff}.noupia-home-goals-card .noupia-empty-goal>ion-icon{color:#fff}body.dark-mode-active .noupia-home-goals-card{background:var(--noupia-primary)!important}.noupia-home-services{margin-top:15px}.noupia-service-card{display:flex;width:100%;min-height:176px;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:5px;padding:15px;border:0;border-radius:19px;color:#fff;text-align:left;overflow:hidden;position:relative;box-shadow:0 3px 16px rgba(20,39,75,.1)}.noupia-service-card strong,.noupia-service-card small{position:relative;z-index:1}.noupia-service-card strong{font-size:16px;line-height:20px}.noupia-service-card small{font-size:11px;color:rgba(255,255,255,.82)}.noupia-prepaid-service{background:#252525}.noupia-gift-service{background:linear-gradient(145deg,#0f74dc,#9a38dd 48%,#f94188)}.noupia-service-art{position:absolute;top:14px;left:14px;display:flex;align-items:center;justify-content:center}.noupia-uba-mark{width:62px;height:62px;border-radius:16px;background:#e92025;box-shadow:0 8px 16px rgba(0,0,0,.28);font-family:Arial,sans-serif;font-style:italic}.noupia-uba-mark::before{content:"";position:absolute;top:10px;left:24px;width:18px;height:25px;background:#202020;clip-path:polygon(0 100%,46% 0,100% 0,60% 100%);transform:skewX(-9deg)}.noupia-uba-mark b{position:absolute;bottom:7px;font-size:14px;letter-spacing:-1px;color:#161616}.noupia-gift-stack{width:82px;height:68px}.noupia-gift-stack i{position:absolute;display:flex;align-items:center;justify-content:center;width:55px;height:39px;border-radius:7px;font-style:normal;font-weight:800;box-shadow:0 4px 9px rgba(0,0,0,.2)}.noupia-gift-stack i:nth-child(1){top:4px;left:2px;background:#0bd68a;color:#06392d;transform:rotate(-11deg)}.noupia-gift-stack i:nth-child(2){top:15px;left:23px;background:#ffcd39;color:#8a2200;transform:rotate(10deg)}.noupia-gift-stack i:nth-child(3){top:28px;left:4px;background:#ff4e9a;color:#fff;transform:rotate(-3deg)}body.dark-mode-active .noupia-service-card{box-shadow:none}
.noupia-home-summary-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.noupia-home-summary-grid-two .noupia-home-summary-card{min-height:116px}.noupia-home-services .col-4{display:flex}.noupia-home-services .noupia-service-card{min-height:152px;padding:11px;border-radius:16px}.noupia-home-services .noupia-service-card strong{font-size:13px;line-height:17px}.noupia-home-services .noupia-service-card small{font-size:9px;line-height:12px}.noupia-home-services .noupia-service-art{top:10px;left:10px;transform:scale(.78);transform-origin:top left}
.noupia-home-summary-cards{background:var(--noupia-primary)!important;color:#fff!important}.noupia-home-summary-cards .noupia-home-summary-label,.noupia-home-summary-cards small{color:rgba(255,255,255,.86)!important}.noupia-home-summary-cards .noupia-home-summary-icon{background:rgba(255,255,255,.18);color:#fff}.noupia-home-services .col-6{display:flex}.noupia-home-services .noupia-service-card{min-height:168px;padding:14px}.noupia-home-services .noupia-service-card strong{font-size:16px;line-height:20px}.noupia-home-services .noupia-service-art{top:14px;left:14px;transform:none}
.noupia-home-services .noupia-service-card{min-height:124px;padding:13px;border-radius:18px;gap:0}.noupia-home-services .noupia-service-card strong{font-size:15px;line-height:18px}.noupia-home-services .noupia-service-art{top:13px;left:13px;transform:scale(.52);transform-origin:top left}
.noupia-home-services .col-4 .noupia-service-card{width:calc(100% + 4px);margin-right:-4px}

/* Home-only card corners, including the cards inside its action sheets. */
.noupia-home .noupia-wallet-hero,
.noupia-home .noupia-home-summary-card,
.noupia-home .noupia-service-card,
.noupia-home .card,
.noupia-home-sheet .card {
  border-radius: 5px !important;
}

/* Full-width Home entry to the informational microfinance page. */
.noupia-home-microfinance { margin-top: 15px; }
.noupia-home .noupia-microfinance-link,
body.dark-mode-active .noupia-home .noupia-microfinance-link {
  background: var(--noupia-primary) !important;
  color: #fff !important;
  text-decoration: none;
}
.noupia-microfinance-link .card-body { display: flex; align-items: center; gap: 14px; padding: 18px; }
.noupia-microfinance-link .card-body > div { flex: 1; min-width: 0; }
.noupia-microfinance-link strong { display: block; color: #fff; font-size: 18px; line-height: 1.3; }
.noupia-microfinance-link span { display: block; color: #fff; font-size: 13px; margin-top: 3px; }
.noupia-microfinance-link ion-icon { flex: 0 0 auto; color: #fff; font-size: 26px; }
.noupia-microfinance-link ion-icon:last-child { font-size: 20px; }
.noupia-microfinance-link:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.noupia-microfinance-page .card { border-radius: 5px; }

/* Home wallet: the full-width primary backdrop stops halfway down the card. */
.noupia-wallet-stage { position: relative; isolation: isolate; padding-top: 16px; margin-bottom: 14px; }
.noupia-wallet-stage::before { content: ""; position: absolute; z-index: -1; inset: 0 0 calc((100% - 16px) / 2); background: var(--noupia-primary); pointer-events: none; }
.noupia-home .noupia-wallet-stage .noupia-wallet-hero { margin: 0 16px; }
.noupia-home .noupia-microfinance-link,
body.dark-mode-active .noupia-home .noupia-microfinance-link {
  background-image: linear-gradient(rgba(3,155,229,.82), rgba(3,155,229,.82)), url('/noupia/img/noupia-finance-hero.png') !important;
  background-size: cover !important;
  background-position: center right !important;
  overflow: hidden;
}
.noupia-microfinance-link .card-body { min-height: 124px; }
.noupia-savings-page .card { border-radius: 5px; }

/* Neutral theme-aware wallet; only its circular action buttons are primary. */
.noupia-home .noupia-wallet-hero {
  background: #fff;
  color: #18243f;
  box-shadow: 0 3px 16px rgba(20,39,75,.1);
}
body.dark-mode-active .noupia-home .noupia-wallet-hero {
  background: #292929;
  color: #fff;
  box-shadow: none;
}
.noupia-home .noupia-wallet-hero::after,
.noupia-home .noupia-wallet-hero-orb { display: none; }
.noupia-home .noupia-wallet-action,
.noupia-home .noupia-balance-visibility { color: inherit; }
.noupia-home .noupia-wallet-action > span {
  background: var(--noupia-primary);
  border-color: var(--noupia-primary);
  color: #fff;
  box-shadow: none;
}
.noupia-home .noupia-wallet-action:focus-visible,
.noupia-home .noupia-balance-visibility:focus-visible { outline-color: currentColor; }

/* Compact wallet controls; retain a 44px touch target and stable balance height. */
.noupia-home .noupia-wallet-action > span { width: 44px; height: 44px; }
.noupia-home .noupia-wallet-action ion-icon { font-size: 22px; }
.noupia-home .noupia-wallet-amount,
.noupia-home .noupia-wallet-amount.is-hidden { height: 40px; min-height: 40px; }
.noupia-home .noupia-wallet-amount-number,
.noupia-home .noupia-wallet-amount.is-hidden { font-size: 30px; }
.noupia-home .noupia-wallet-amount-currency { font-size: 16px; }
/* Remove Home's 48px minimum so the shared Profile/MobileKit 40px controls apply. */
.noupia-home-sheet .form-control { min-height: 0; }

/* Center the balance group without changing the greeting or action row. */
.noupia-home .noupia-wallet-balance-label,
.noupia-home .noupia-wallet-amount { justify-content: center; text-align: center; }
.noupia-home .noupia-wallet-display-note { text-align: center; }

/* Wallet hierarchy: compact greeting, centered balance, separated action row. */
.noupia-home .noupia-wallet-hero { padding: 20px; box-shadow: 0 4px 18px rgba(20,39,75,.09); }
body.dark-mode-active .noupia-home .noupia-wallet-hero { box-shadow: 0 4px 18px rgba(0,0,0,.16); }
.noupia-home .noupia-wallet-greeting { gap: 2px; margin-bottom: 18px; text-align: left; }
.noupia-home .noupia-wallet-greeting-label { font-size: 12px; line-height: 18px; opacity: .65; }
.noupia-home .noupia-wallet-greeting strong { font-size: 16px; line-height: 22px; }
.noupia-home .noupia-wallet-balance-label { font-size: 13px; line-height: 20px; font-weight: 500; gap: 6px; }
.noupia-home .noupia-wallet-amount { margin-top: 8px; gap: 6px; letter-spacing: -.5px; }
.noupia-home .noupia-wallet-amount-number,
.noupia-home .noupia-wallet-amount.is-hidden { font-size: 32px; font-weight: 700; line-height: 1.15; }
.noupia-home .noupia-wallet-amount-currency { font-size: 14px; font-weight: 600; opacity: .65; letter-spacing: 0; }
.noupia-home .noupia-wallet-display-note { margin: 8px 0 0; min-height: 0; font-size: 11px; line-height: 16px; }
.noupia-home .noupia-wallet-actions { margin-top: 24px; }
.noupia-home .noupia-wallet-action { gap: 8px; }
.noupia-home .noupia-wallet-action strong { font-size: 11px; line-height: 16px; font-weight: 500; }

/* Three centered wallet actions and half-width summary cards. */
.noupia-home .noupia-wallet-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.noupia-home .noupia-wallet-amount-number,
.noupia-home .noupia-wallet-amount.is-hidden { font-size: 28px; }
.noupia-home .noupia-home-summary .col-6 { display: flex; }
.noupia-home .noupia-home-summary-card { width: 100%; }

/* Home tiles: prominent centered icon badges, title, then secondary value. */
.noupia-home .noupia-home-summary-card {
  min-height: 184px;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  text-align: center;
}
.noupia-home .noupia-home-summary-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  margin-bottom: 14px;
  border-radius: 20px;
}
.noupia-home .noupia-home-summary-icon ion-icon { font-size: 34px; }
.noupia-home .noupia-home-summary-label {
  min-height: 0;
  margin-bottom: 6px;
  color: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}
.noupia-home .noupia-home-summary-card strong { font-size: 13px; line-height: 18px; font-weight: 500; opacity: .8; }
.noupia-home .noupia-home-summary-card small { font-size: 11px; }
body.dark-mode-active .noupia-home .noupia-home-summary-wallet,
body.dark-mode-active .noupia-home .noupia-home-summary-savings { background: #292929; }
.noupia-home .noupia-home-summary-cards .noupia-home-summary-label { color: #fff !important; }
.noupia-home .noupia-home-services .noupia-service-card {
  min-height: 168px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 8px;
  text-align: center;
}
.noupia-home .noupia-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.noupia-home .noupia-prepaid-service .noupia-service-icon { background: rgba(233,32,37,.22); color: #ff797c; }
.noupia-home .noupia-service-icon ion-icon { font-size: 30px; }
.noupia-home .noupia-home-services .noupia-service-card strong { font-size: 13px; line-height: 18px; font-weight: 700; }

/* Square Home tiles: size follows the Bootstrap column, not fixed minimum heights. */
.noupia-home .noupia-home-summary-card,
.noupia-home .noupia-home-services .col-4 .noupia-service-card {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  container-type: inline-size;
  padding: 8px;
  margin-right: 0;
}
.noupia-home .noupia-home-summary-icon {
  width: clamp(28px, 30cqw, 64px);
  height: clamp(28px, 30cqw, 64px);
  flex-basis: clamp(28px, 30cqw, 64px);
  border-radius: clamp(9px, 10cqw, 20px);
  margin-bottom: clamp(5px, 6cqw, 14px);
}
.noupia-home .noupia-home-summary-icon ion-icon { font-size: clamp(20px, 18cqw, 34px); }
.noupia-home .noupia-home-summary-label { font-size: clamp(11px, 10cqw, 15px); line-height: 1.2; margin-bottom: 5px; }
.noupia-home .noupia-home-summary-card strong { font-size: clamp(11px, 9cqw, 13px); line-height: 1.2; }
.noupia-home .noupia-home-services .noupia-service-card { gap: 8px; }
.noupia-home .noupia-service-icon {
  width: clamp(24px, 36cqw, 56px);
  height: clamp(24px, 36cqw, 56px);
  flex-basis: clamp(24px, 36cqw, 56px);
  border-radius: clamp(8px, 12cqw, 18px);
}
.noupia-home .noupia-service-icon ion-icon { font-size: clamp(18px, 22cqw, 30px); }
.noupia-home .noupia-home-services .noupia-service-card strong { font-size: clamp(10px, 15cqw, 13px); line-height: 1.2; }

/* Trim each square by 20px total and give its icon substantially more prominence. */
.noupia-home .noupia-home-summary-card,
.noupia-home .noupia-home-services .col-4 .noupia-service-card {
  width: calc(100% - 20px);
  margin-left: auto;
  margin-right: auto;
  padding: 6px;
}
.noupia-home .noupia-home-summary-icon {
  width: clamp(36px, 48cqw, 88px);
  height: clamp(36px, 48cqw, 88px);
  flex-basis: clamp(36px, 48cqw, 88px);
}
.noupia-home .noupia-home-summary-icon ion-icon { font-size: clamp(28px, 34cqw, 56px); }
.noupia-home .noupia-service-icon {
  width: clamp(28px, 50cqw, 76px);
  height: clamp(28px, 50cqw, 76px);
  flex-basis: clamp(28px, 50cqw, 76px);
}
.noupia-home .noupia-service-icon ion-icon { font-size: clamp(24px, 40cqw, 52px); }
.noupia-home .noupia-home-services .noupia-service-card { gap: 4px; }

/* Keep service labels inside the smaller squares on narrow screens. */
.noupia-home .noupia-home-services .col-4 .noupia-service-card { padding: 4px; gap: 3px; }

/* Let the grid own spacing; cards fill their cells instead of adding hidden margins. */
.noupia-home .noupia-home-summary > .row,
.noupia-home .noupia-home-services > .row {
  display: grid;
  gap: 14px;
  margin: 0;
}
.noupia-home .noupia-home-summary > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.noupia-home .noupia-home-services > .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.noupia-home .noupia-home-summary > .row > .col-6,
.noupia-home .noupia-home-services > .row > .col-4 {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.noupia-home .noupia-home-summary-card,
.noupia-home .noupia-home-services .col-4 .noupia-service-card {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
