/* Campaigns page tweaks — loaded after fum-panel.css */

.fum-hero__media img {
    object-fit: cover;
    object-position: center center;
}

.fum-hero--hamyari .fum-hero__media img {
    object-position: 55% center;
}

.fum-hero__overlay {
    background: linear-gradient(
        270deg,
        rgba(16, 42, 86, 0.08) 0%,
        rgba(16, 42, 86, 0.22) 42%,
        rgba(16, 42, 86, 0.58) 100%
    );
}

/* Center icons in stat / category / trust cards under banner+filters */
.fum-stat-card {
    align-items: center;
    text-align: center;
}

.fum-stat-card__icon {
    margin-left: auto;
    margin-right: auto;
}

.fum-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.fum-cat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.fum-cat-card__icon i,
.fum-stat-card__icon i,
.fum-trust__icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fum-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop CTA = real button (like mobile) */
.fum-cc--desk .fum-cc__foot {
    gap: 10px;
}

.fum-cc--desk .fum-cc__cta {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid #C7DBFF;
    border-radius: 12px;
    background: #EEF5FF;
    color: #3478F6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.fum-cc--desk .fum-cc__cta:hover {
    background: #E0EDFF;
    color: #2B68DB;
}

html.dark .fum-cc--desk .fum-cc__cta {
    background: #1A2740;
    border-color: #2B4060;
    color: #93C5FD;
}

/* Filter bar — match reference exactly */
.fum-filterbar {
    background: #fff;
    border: 1px solid #E7ECF3;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(16, 42, 86, 0.05);
    padding: 14px 16px;
    margin: 16px 0 18px;
}

.fum-filterbar__top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fum-filterbar__search {
    flex: 1 1 240px;
    min-width: 0;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: #F7F9FC;
    border: 1px solid #E7ECF3;
    border-radius: 999px;
}

.fum-filterbar__search i {
    font-size: 16px;
    color: #9AA6BC;
    flex-shrink: 0;
}

.fum-filterbar__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #172033;
    line-height: 1.4;
}

.fum-filterbar__search input::placeholder {
    color: #9AA6BC;
    font-size: 13px;
    font-weight: 500;
}

.fum-filterbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #D7E3F4;
    background: #fff;
    color: #3478F6;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.fum-filterbar__btn i {
    font-size: 16px;
}

.fum-filterbar__btn:hover {
    background: #EEF5FF;
}

.fum-filterbar__sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 12px 0 28px;
    border: 1px solid #E7ECF3;
    border-radius: 12px;
    background: #fff;
    flex-shrink: 0;
    gap: 4px;
}

.fum-filterbar__sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #6F7B8F;
    white-space: nowrap;
}

.fum-filterbar__sort select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-weight: 700;
    color: #172033;
    padding: 0;
    margin: 0;
    cursor: pointer;
    max-width: 140px;
}

.fum-filterbar__sort-caret {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6F7B8F;
    pointer-events: none;
}

.fum-filterbar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fum-filterbar__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #E7ECF3;
    background: #fff;
    color: #6F7B8F;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fum-filterbar__chip:hover {
    border-color: #C7DBFF;
    color: #3478F6;
}

.fum-filterbar__chip.is-active {
    background: #3478F6;
    border-color: #3478F6;
    color: #fff;
}

@media (max-width: 767px) {
    .fum-filterbar__top {
        flex-wrap: nowrap;
    }

    .fum-filterbar__search {
        flex: 1 1 auto;
    }

    .fum-filterbar__sort {
        display: none;
    }

    .fum-filterbar__chips {
        display: none;
    }

    .fum-filterbar__btn span {
        display: none;
    }

    .fum-filterbar__btn {
        width: 42px;
        padding: 0;
    }
}

html.dark .fum-filterbar,
html.dark .fum-filterbar__btn,
html.dark .fum-filterbar__sort,
html.dark .fum-filterbar__chip {
    background: #111827;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-filterbar__search {
    background: #0B1220;
    border-color: #243044;
}

html.dark .fum-filterbar__search input,
html.dark .fum-filterbar__sort select {
    color: #E5EAF3;
}

html.dark .fum-filterbar__chip.is-active {
    background: #3478F6;
    border-color: #3478F6;
    color: #fff;
}

html.dark .fum-filterbar__btn {
    color: #93C5FD;
}

/* ── Services page (mobile + desktop) ── */
.fum-svc-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 150px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.fum-svc-hero__media {
    position: absolute;
    inset: 0;
}

.fum-svc-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fum-svc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 42, 86, 0.88) 0%, rgba(16, 42, 86, 0.45) 100%);
}

.fum-svc-hero__content {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: #fff;
    max-width: 420px;
}

.fum-svc-hero__content h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.fum-svc-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    color: #3478F6;
    font-size: 13px;
    font-weight: 700;
}

.fum-svc-search {
    display: none;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #E7ECF3;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(16, 42, 86, 0.04);
}

.fum-svc-search i { color: #9AA6BC; font-size: 16px; }
.fum-svc-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #172033;
}

.fum-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 8px;
    margin-bottom: 24px;
    padding-top: 8px;
}

.fum-svc-card {
    background: transparent;
    border: 0;
    min-height: 0;
}

.fum-svc-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 4px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.fum-svc-card__icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 6px 14px rgba(16, 42, 86, 0.12);
}

.fum-svc-card--blue .fum-svc-card__icon { background: #3478F6; }
.fum-svc-card--purple .fum-svc-card__icon { background: #7C3AED; }
.fum-svc-card--amber .fum-svc-card__icon { background: #F59E0B; }
.fum-svc-card--sky .fum-svc-card__icon { background: #0EA5E9; }
.fum-svc-card--rose .fum-svc-card__icon { background: #E11D48; }
.fum-svc-card--teal .fum-svc-card__icon { background: #14B8A6; }
.fum-svc-card--orange .fum-svc-card__icon { background: #F97316; }
.fum-svc-card--red .fum-svc-card__icon { background: #EF4444; }
.fum-svc-card--green .fum-svc-card__icon { background: #20B979; }

.fum-svc-card__title {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #102A56;
    line-height: 1.45;
}

.fum-svc-card__desc {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.7;
    color: #6F7B8F;
}

.fum-svc-card__badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #F59E0B;
    border-radius: 999px;
    padding: 3px 6px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.fum-svc-card__link.is-disabled {
    cursor: default;
}

.fum-svc-card__link.is-disabled .fum-svc-card__icon i {
    opacity: 0.72;
}

.fum-svc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fum-svc-section-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #102A56;
}

.fum-svc-quick {
    margin-bottom: 20px;
}

.fum-svc-quick__row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.fum-svc-quick__row::-webkit-scrollbar { display: none; }

.fum-svc-quick__item {
    flex: 0 0 auto;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: #172033;
}

.fum-svc-quick__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.fum-svc-quick__item--teal .fum-svc-quick__icon { background: #14B8A6; }
.fum-svc-quick__item--orange .fum-svc-quick__icon { background: #F97316; }
.fum-svc-quick__item--amber .fum-svc-quick__icon { background: #F59E0B; }
.fum-svc-quick__item--purple .fum-svc-quick__icon { background: #7C3AED; }
.fum-svc-quick__item--green .fum-svc-quick__icon { background: #20B979; }
.fum-svc-quick__item--blue .fum-svc-quick__icon { background: #3478F6; }

.fum-svc-quick__name {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #102A56;
}

.fum-svc-quick__item.is-disabled {
    opacity: 0.7;
}

.fum-svc-help {
    background: #EEF5FF;
    border: 1px solid #D7E3F4;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.fum-svc-help p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #3B4A63;
}

.fum-filterbar--services {
    margin-top: 0;
}

.fum-svc-empty {
    margin: 0 0 20px;
    padding: 18px 16px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    background: #fff;
    border: 1px dashed #D7E0ED;
    border-radius: 14px;
}

@media (min-width: 768px) {
    .fum-svc-hero {
        min-height: 170px;
    }

    .fum-svc-hero__content h2 {
        font-size: 22px;
    }

    .fum-svc-grid {
        gap: 18px 12px;
    }

    .fum-svc-card__icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 26px;
    }

    .fum-svc-card__title {
        font-size: 13px;
    }

    .fum-svc-help {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .fum-svc-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 860px;
    }
}

html.dark .fum-svc-search {
    background: #111827;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-svc-card__title {
    color: #F3F6FB;
}

html.dark .fum-svc-card__desc,
html.dark .fum-svc-help p {
    color: #9AA6BC;
}

html.dark .fum-svc-help {
    background: #1A2740;
    border-color: #2B4060;
}

/* ========== Wallet ========== */
.fum-wallet {
    width: 100%;
    max-width: 100%;
}

.fum-wallet-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.fum-wallet-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius);
    box-shadow: var(--fum-shadow);
    padding: 18px 20px;
    min-height: 108px;
}

.fum-wallet-stat--balance {
    background: linear-gradient(135deg, #102A56 0%, #1A3A6E 55%, #2457A6 100%);
    border-color: transparent;
    color: #fff;
}

.fum-wallet-stat__label {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--fum-text-secondary);
}

.fum-wallet-stat--balance .fum-wallet-stat__label {
    color: rgba(255, 255, 255, 0.82);
}

.fum-wallet-stat__value {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.fum-wallet-stat__value span {
    font-size: 14px;
    font-weight: 600;
}

.fum-wallet-stat__value--dark {
    color: var(--fum-text);
}

.fum-wallet-stat__meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--fum-text-secondary);
}

.fum-wallet-stat__icon {
    font-size: 42px;
    opacity: 0.92;
}

.fum-wallet-stat__badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.fum-wallet-stat__badge--amber {
    background: #FFF6E0;
    color: #D97706;
}

.fum-wallet-stat__badge--green {
    background: #E8F9F1;
    color: #0F9F66;
}

.fum-wallet-mid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.fum-wallet-card {
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius);
    box-shadow: var(--fum-shadow);
    padding: 20px;
}

.fum-wallet-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--fum-text);
}

.fum-wallet-card__desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--fum-text-secondary);
}

.fum-wallet-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fum-text);
}

.fum-wallet-label--soft {
    margin-top: 14px;
    color: var(--fum-text-secondary);
    font-weight: 500;
}

.fum-wallet-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--fum-border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    background: #FBFCFE;
    color: var(--fum-text);
}

.fum-wallet-input:focus {
    border-color: var(--fum-primary);
    background: #fff;
}

.fum-wallet-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.fum-wallet-preset {
    border: 1px solid var(--fum-border);
    background: #fff;
    color: var(--fum-text);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
}

.fum-wallet-preset:hover {
    border-color: #B9D0FF;
    color: var(--fum-primary);
}

.fum-wallet-preset.is-active {
    background: var(--fum-primary);
    border-color: var(--fum-primary);
    color: #fff;
}

.fum-wallet-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 12px;
    color: #0F9F66;
}

.fum-wallet-secure i {
    font-size: 16px;
}

.fum-wallet-submit {
    width: 100%;
    justify-content: center;
    height: 46px;
    gap: 8px;
}

.fum-wallet-usage {
    display: flex;
    flex-direction: column;
}

.fum-wallet-usage__list {
    list-style: none;
    margin: 8px 0 16px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.fum-wallet-usage__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #3B4A63;
}

.fum-wallet-usage__list i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--fum-light-blue);
    color: var(--fum-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.fum-wallet-usage__note {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--fum-light-blue);
    border: 1px solid #D6E6FF;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.8;
    color: #2B4A7A;
}

.fum-wallet-usage__note i {
    color: var(--fum-primary);
    font-size: 16px;
    margin-top: 2px;
}

.fum-wallet-history {
    padding-bottom: 12px;
}

.fum-wallet-history__head h2 {
    margin-bottom: 14px;
}

.fum-wallet-history__bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--fum-border);
    padding-bottom: 2px;
}

.fum-wallet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.fum-wallet-tab {
    position: relative;
    padding: 8px 2px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fum-text-secondary);
    text-decoration: none;
}

.fum-wallet-tab.is-active {
    color: var(--fum-primary);
}

.fum-wallet-tab.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -3px;
    height: 2px;
    background: var(--fum-primary);
    border-radius: 2px;
}

.fum-wallet-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fum-wallet-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--fum-border);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--fum-text-secondary);
    background: #fff;
    cursor: default;
    user-select: none;
}

.fum-wallet-table-wrap {
    overflow-x: auto;
}

.fum-wallet-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.fum-wallet-table th,
.fum-wallet-table td {
    padding: 12px 10px;
    text-align: right;
    border-bottom: 1px solid #EEF2F7;
    font-size: 13px;
    color: var(--fum-text);
    white-space: nowrap;
}

.fum-wallet-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--fum-text-secondary);
    background: #FAFBFD;
}

.fum-wallet-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fum-wallet-type i {
    font-size: 18px;
}

.fum-wallet-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.fum-wallet-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.fum-wallet-status.is-ok {
    color: #0F9F66;
}

.fum-wallet-status.is-pending {
    color: #D97706;
}

.fum-wallet-status.is-fail {
    color: #E11D48;
}

.fum-wallet-empty {
    text-align: center !important;
    color: var(--fum-text-secondary) !important;
    padding: 28px 10px !important;
}

@media (min-width: 768px) {
    .fum-wallet-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .fum-wallet-mid {
        grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
        gap: 16px;
        align-items: stretch;
    }

    .fum-wallet-history__bar {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

html.dark .fum-wallet-stat,
html.dark .fum-wallet-card,
html.dark .fum-wallet-tool,
html.dark .fum-wallet-preset,
html.dark .fum-wallet-input {
    background: #111827;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-wallet-stat--balance {
    background: linear-gradient(135deg, #0B1A36 0%, #16325F 60%, #1E4A8C 100%);
}

html.dark .fum-wallet-stat__value--dark,
html.dark .fum-wallet-card h2,
html.dark .fum-wallet-table td {
    color: #F3F6FB;
}

html.dark .fum-wallet-stat__meta,
html.dark .fum-wallet-card__desc,
html.dark .fum-wallet-label--soft,
html.dark .fum-wallet-tab,
html.dark .fum-wallet-table th {
    color: #9AA6BC;
}

html.dark .fum-wallet-table th {
    background: #0F172A;
}

html.dark .fum-wallet-table th,
html.dark .fum-wallet-table td {
    border-bottom-color: #243044;
}

html.dark .fum-wallet-usage__list li {
    color: #C5D0E0;
}

html.dark .fum-wallet-usage__list i,
html.dark .fum-wallet-usage__note {
    background: #1A2740;
    border-color: #2B4060;
    color: #B7CCF5;
}

html.dark .fum-wallet-preset.is-active {
    background: var(--fum-primary);
    border-color: var(--fum-primary);
    color: #fff;
}

/* ========== Home / Dashboard ========== */
.fum-home {
    width: 100%;
    max-width: 100%;
}

.fum-home-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #F6E2B3;
    background: #FFF8E8;
    color: #8A5A00;
}

.fum-home-alert i {
    font-size: 20px;
    margin-top: 2px;
}

.fum-home-alert strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.fum-home-alert p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.fum-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--fum-radius);
    min-height: 180px;
    margin-bottom: 16px;
    box-shadow: var(--fum-shadow);
}

.fum-home-hero__media,
.fum-home-hero__overlay {
    position: absolute;
    inset: 0;
}

.fum-home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fum-home-hero__overlay {
    background: linear-gradient(105deg, rgba(16, 42, 86, 0.92) 0%, rgba(16, 42, 86, 0.72) 48%, rgba(36, 87, 166, 0.45) 100%);
}

.fum-home-hero--dashboard {
    min-height: 210px;
}

.fum-home-hero--dashboard .fum-home-hero__media img {
    object-position: left center;
}

.fum-home-hero--dashboard .fum-home-hero__overlay {
    background: linear-gradient(270deg, rgba(16, 42, 86, 0.94) 0%, rgba(16, 42, 86, 0.72) 38%, rgba(16, 42, 86, 0.2) 68%, rgba(16, 42, 86, 0.02) 100%);
}

.fum-home-hero--dashboard .fum-home-hero__content {
    margin-inline-start: auto;
    margin-inline-end: 0;
    max-width: 520px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: right;
}

.fum-home-hero__content {
    position: relative;
    z-index: 1;
    padding: 28px 24px;
    color: #fff;
    max-width: 560px;
}

.fum-home-hero__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    opacity: 0.85;
}

.fum-home-hero__content h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}

.fum-home-hero__content > p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.fum-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fum-btn--ghost-light {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.fum-btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.fum-home-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.fum-home-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius);
    box-shadow: var(--fum-shadow);
    padding: 16px 18px;
    min-height: 96px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fum-home-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 42, 86, 0.08);
}

.fum-home-stat--navy {
    background: linear-gradient(135deg, #102A56 0%, #1A3A6E 55%, #2457A6 100%);
    border-color: transparent;
    color: #fff;
}

.fum-home-stat--navy i {
    font-size: 34px;
    opacity: 0.9;
}

.fum-home-stat__label {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--fum-text-secondary);
}

.fum-home-stat--navy .fum-home-stat__label {
    color: rgba(255, 255, 255, 0.8);
}

.fum-home-stat__value {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.fum-home-stat__value span {
    font-size: 12px;
    font-weight: 600;
}

.fum-home-stat__value--dark {
    color: var(--fum-text);
}

.fum-home-stat__value--sm {
    font-size: 16px;
}

.fum-home-stat__meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--fum-text-secondary);
}

.fum-home-stat__badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.fum-home-stat__badge--amber {
    background: #FFF6E0;
    color: #D97706;
}

.fum-home-stat__badge--blue {
    background: var(--fum-light-blue);
    color: var(--fum-primary);
}

.fum-home-stat__badge--green {
    background: #E8F9F1;
    color: #0F9F66;
}

.fum-home-section {
    margin-bottom: 18px;
}

.fum-home-section__head {
    margin-bottom: 12px;
}

.fum-home-section__head h2,
.fum-home-card__head h2 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: var(--fum-text);
}

.fum-home-section__head p {
    margin: 0;
    font-size: 13px;
    color: var(--fum-text-secondary);
}

.fum-home-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fum-home-quick__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: var(--fum-text);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--fum-shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.fum-home-quick__item:hover {
    border-color: #B9D0FF;
    transform: translateY(-1px);
}

.fum-home-quick__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--fum-light-blue);
    color: var(--fum-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fum-home-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fum-home-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: var(--fum-text);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--fum-shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.fum-home-menu__item:hover {
    border-color: #B9D0FF;
    transform: translateY(-1px);
}

.fum-home-menu__item.is-active {
    border-color: #9EC0FF;
    background: var(--fum-light-blue);
    color: var(--fum-navy);
}

.fum-home-menu__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--fum-light-blue);
    color: var(--fum-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fum-home-menu__item.is-active .fum-home-menu__icon {
    background: var(--fum-primary);
    color: #fff;
}

.fum-header__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--fum-navy);
    line-height: 1.3;
}

.fum-home-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.fum-home-card {
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius);
    box-shadow: var(--fum-shadow);
    padding: 16px 18px;
}

.fum-home-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fum-border);
}

.fum-home-card__head a {
    font-size: 12px;
    font-weight: 700;
    color: var(--fum-primary);
    text-decoration: none;
}

.fum-home-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #EEF2F7;
    text-decoration: none;
    color: inherit;
}

.fum-home-event:last-child {
    border-bottom: 0;
}

.fum-home-event:hover strong {
    color: var(--fum-primary);
}

.fum-home-event__date {
    width: 52px;
    height: 56px;
    border-radius: 12px;
    background: var(--fum-light-blue);
    color: var(--fum-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fum-home-event__day {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.fum-home-event__month {
    font-size: 11px;
    margin-top: 4px;
}

.fum-home-event__body {
    flex: 1;
    min-width: 0;
}

.fum-home-event__body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.fum-home-event__body p {
    margin: 0;
    font-size: 12px;
    color: var(--fum-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fum-home-event__chevron {
    color: #A8B3C7;
    font-size: 18px;
}

.fum-home-note {
    display: flex;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid #EEF2F7;
}

.fum-home-note:last-child {
    border-bottom: 0;
}

.fum-home-note__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EEF5FF;
    color: var(--fum-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fum-home-note strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.fum-home-note p {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--fum-text-secondary);
}

.fum-home-note time {
    font-size: 11px;
    color: #9AA6BC;
}

.fum-home-empty {
    text-align: center;
    padding: 28px 12px;
    color: var(--fum-text-secondary);
}

.fum-home-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

.fum-home-empty p {
    margin: 0 0 12px;
    font-size: 13px;
}

@media (min-width: 640px) {
    .fum-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fum-home-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fum-home-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .fum-home-hero {
        min-height: 200px;
    }

    .fum-home-hero__content h2 {
        font-size: 28px;
    }

    .fum-home-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fum-home-quick {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .fum-home-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fum-home-quick__item {
        flex-direction: column;
        text-align: center;
        padding: 16px 10px;
    }

    .fum-home-split {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

html.dark .fum-home-stat,
html.dark .fum-home-quick__item,
html.dark .fum-home-menu__item,
html.dark .fum-home-card {
    background: #111827;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-home-stat--navy {
    background: linear-gradient(135deg, #0B1A36 0%, #16325F 60%, #1E4A8C 100%);
}

html.dark .fum-home-stat__value--dark,
html.dark .fum-home-section__head h2,
html.dark .fum-home-card__head h2,
html.dark .fum-home-event__body strong,
html.dark .fum-home-note strong {
    color: #F3F6FB;
}

html.dark .fum-home-stat__meta,
html.dark .fum-home-section__head p,
html.dark .fum-home-event__body p,
html.dark .fum-home-note p,
html.dark .fum-home-empty {
    color: #9AA6BC;
}

html.dark .fum-home-event,
html.dark .fum-home-note,
html.dark .fum-home-card__head {
    border-color: #243044;
}

html.dark .fum-home-quick__icon,
html.dark .fum-home-menu__icon,
html.dark .fum-home-event__date,
html.dark .fum-home-note__icon {
    background: #1A2740;
}

html.dark .fum-home-alert {
    background: #2A2110;
    border-color: #5C4518;
    color: #F6D98A;
}

.fum-sidebar__brand {
    background: #fff;
    color: var(--fum-navy);
}

.fum-brand-logo {
    margin-bottom: 8px;
}

.fum-brand-logo img {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Higher specificity than .fum-sidebar__brand img so hidden theme logo stays hidden */
.fum-brand-logo img.fum-brand-logo__dark {
    display: none;
}

html.dark .fum-brand-logo img.fum-brand-logo__light {
    display: none;
}

html.dark .fum-brand-logo img.fum-brand-logo__dark {
    display: block;
}

.fum-sidebar__brand .fum-brand-logo {
    margin-bottom: 6px;
}

.fum-sidebar__brand .fum-brand-logo img {
    height: 52px;
    margin: 0 auto;
}

.fum-brand-logo--force-light img.fum-brand-logo__light {
    display: none !important;
}

.fum-brand-logo--force-light img.fum-brand-logo__dark {
    display: block !important;
}

.fum-brand-logo--footer {
    margin-bottom: 16px;
}

.fum-brand-logo--footer img {
    height: 56px;
}

.fum-sidebar__brand-title {
    color: var(--fum-navy);
}

.fum-sidebar__brand-sub {
    color: var(--fum-text-secondary);
    opacity: 1;
}

html.dark .fum-sidebar__brand {
    background: #111827;
    color: #F3F6FB;
}

html.dark .fum-sidebar__brand-title {
    color: #F3F6FB;
}

html.dark .fum-sidebar__brand-sub {
    color: #9AA6BC;
}

/* Verified avatar badge */
.fum-avatar {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.fum-avatar__verified {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    background: var(--fum-primary);
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(16, 42, 86, 0.18);
}

.fum-avatar--pill img {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
}

.fum-avatar--lg .fum-avatar__verified {
    width: 24px;
    height: 24px;
    font-size: 14px;
    bottom: 4px;
    left: 4px;
}

html.dark .fum-avatar__verified {
    border-color: #111827;
}

/* Header widgets (profile / notify / coins / wallet) */
.fum-header {
    background: #F7F9FC;
}

html.dark .fum-header {
    background: #0F172A;
}

html.dark .fum-header__title {
    color: #F3F6FB;
}

.fum-header__meta {
    gap: 10px;
}

.fum-hchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--fum-border);
    border-radius: 12px;
    color: var(--fum-navy);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 42, 86, 0.04);
}

.fum-hchip:hover {
    border-color: #C7DBFF;
    color: var(--fum-navy);
}

.fum-hchip__icon {
    font-size: 18px;
    color: var(--fum-primary);
}

.fum-hchip__coin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F8D56B 0%, #E2A81A 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fum-icon-btn {
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 42, 86, 0.04);
    color: var(--fum-primary);
}

.fum-icon-btn .badge {
    top: -5px;
    left: auto;
    right: -5px;
}

.fum-user-pill {
    border: 0;
    background: transparent;
    padding: 0;
    gap: 8px;
}

.fum-user-pill img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--fum-border);
}

.fum-user-pill__caret {
    color: var(--fum-navy);
    font-size: 18px;
}

.fum-user-pill__name {
    color: var(--fum-navy);
    font-size: 13px;
}

html.dark .fum-header {
    background: #0B1220;
}

html.dark .fum-hchip,
html.dark .fum-icon-btn {
    background: #111827;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-hchip__icon,
html.dark .fum-icon-btn {
    color: #93C5FD;
}

html.dark .fum-user-pill img {
    border-color: #243044;
}

/* Header day/night control — new class names so legacy .fum-theme-switch {position:fixed} cannot pull it out */
.fum-header-theme {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    z-index: 1 !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    cursor: pointer;
}

.fum-header__meta .fum-header-theme,
.fum-mobile-header__actions .fum-header-theme {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.fum-header-theme__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.fum-header-theme__icon {
    position: relative;
    z-index: 0;
    font-size: 18px;
    line-height: 1;
}

.fum-header-theme__icon--sun {
    display: none !important;
}

html.dark .fum-header-theme__icon--moon {
    display: none !important;
}

html.dark .fum-header-theme__icon--sun {
    display: inline-block !important;
}

.fum-mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Kill every legacy floating / pill day-night switcher */
.fum-theme-switch:not(.fum-header-theme),
.fum-theme-switch__track,
.fum-theme-switch__ball,
.fum-theme-switch__label,
div.fixed:has(#chk),
div.fixed:has(input.checkbox),
div.fixed:has(.label[for="chk"]),
div.fixed.top-\[20\%\],
div.fixed.top-\[22\%\],
div.fixed.-left-2:has(.uil-moon),
div.fixed.-right-2:has(.uil-moon) {
    display: none !important;
}

@media (min-width: 1024px) {
    .fum-header__meta {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    .fum-header__meta .fum-header-theme {
        order: 0;
    }
}

/* First-login tutorial */
html.fum-tutorial-lock,
body.fum-tutorial-lock {
    overflow: hidden !important;
    width: 100%;
}

body.fum-tutorial-lock {
    position: fixed;
    left: 0;
    right: 0;
}

.fum-tutorial {
    position: fixed;
    inset: 0;
    /* Above sticky header/sidebar (touring ≈121) so the card stays undimmed */
    z-index: 140;
    pointer-events: none;
}

.fum-tutorial__overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 86, 0.4);
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.fum-tutorial__card {
    position: fixed;
    width: calc(100% - 32px);
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 50px rgba(16, 42, 86, 0.22);
    z-index: 123;
    pointer-events: auto;
}

.fum-tutorial__card.is-welcome {
    max-width: 420px;
    text-align: center;
    padding-top: 28px;
}

.fum-tutorial__card.is-sheet {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 20px 20px 0 0;
    transform: none !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.fum-tutorial__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8A94A6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fum-tutorial__welcome-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #EEF5FF;
    color: var(--fum-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.fum-tutorial__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fum-tutorial__card.is-welcome .fum-tutorial__meta {
    flex-direction: column;
    justify-content: center;
}

.fum-tutorial__label {
    font-size: 13px;
    font-weight: 800;
    color: var(--fum-primary);
}

.fum-tutorial__stepno {
    font-size: 12px;
    font-weight: 700;
    color: var(--fum-text-secondary);
    white-space: nowrap;
}

.fum-tutorial__bar {
    height: 6px;
    background: #E8EEF7;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.fum-tutorial__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--fum-primary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.fum-tutorial__card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--fum-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fum-tutorial__card.is-welcome h3 {
    justify-content: center;
    font-size: 20px;
}

.fum-tutorial__card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--fum-text-secondary);
}

.fum-tutorial__time {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--fum-text-secondary);
    font-weight: 600;
}

.fum-tutorial__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--fum-text);
    cursor: pointer;
}

.fum-tutorial__card.is-welcome .fum-tutorial__check {
    justify-content: flex-start;
}

.fum-tutorial__check input {
    width: 16px;
    height: 16px;
    accent-color: var(--fum-primary);
}

.fum-tutorial__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.fum-tutorial__card.is-welcome .fum-tutorial__actions {
    justify-content: flex-end;
}

.fum-tutorial__skip {
    background: none;
    border: 0;
    color: var(--fum-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.fum-tutorial__skip:hover {
    color: var(--fum-navy);
}

.fum-tutorial__nav {
    display: flex;
    gap: 8px;
}

.fum-tutorial__arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: none;
}

.fum-tutorial__card.has-arrow-right .fum-tutorial__arrow {
    right: -7px;
    left: auto;
    top: 50%;
    bottom: auto;
    margin-top: -7px;
}

.fum-tutorial__card.has-arrow-left .fum-tutorial__arrow {
    left: -7px;
    right: auto;
    top: 50%;
    bottom: auto;
    margin-top: -7px;
}

.fum-tutorial__card.has-arrow-top .fum-tutorial__arrow {
    top: -7px;
    bottom: auto;
    margin-top: 0;
}

.fum-tutorial__card.has-arrow-bottom .fum-tutorial__arrow {
    bottom: -7px;
    top: auto;
    margin-top: 0;
}

.fum-sidebar.is-touring,
.fum-header.is-touring,
.fum-mobile-header.is-touring {
    z-index: 121;
    overflow: visible;
}

.fum-header.is-touring {
    /* Keep header chips above page content; tutorial root is higher for the card */
    position: sticky;
}

.fum-header .fum-tour-target,
.fum-hchip.fum-tour-target,
.fum-user-pill.fum-tour-target,
.fum-icon-btn.fum-tour-target {
    background: #fff !important;
    border-radius: 12px !important;
}

.fum-tour-target {
    position: relative !important;
    z-index: 122 !important;
    box-shadow: 0 0 0 3px #fff, 0 0 0 9999px rgba(16, 42, 86, 0.4) !important;
    border-radius: 12px !important;
    pointer-events: none;
    background: #fff;
}

.fum-nav-item.fum-tour-target.is-active,
.fum-nav-item.is-active.fum-tour-target {
    background: var(--fum-primary) !important;
    color: #fff !important;
}

html.dark .fum-tutorial__card,
html.dark .fum-tour-target {
    background: #111827;
}

html.dark .fum-tutorial__card h3 {
    color: #F3F6FB;
}

html.dark .fum-tutorial__card p,
html.dark .fum-tutorial__skip,
html.dark .fum-tutorial__stepno,
html.dark .fum-tutorial__time {
    color: #9AA6BC;
}

html.dark .fum-tutorial__check {
    color: #E5EAF3;
}

html.dark .fum-tutorial__arrow {
    background: #111827;
}

html.dark .fum-tutorial__bar {
    background: #243044;
}

/* ========== Support tickets ========== */
.fum-tickets {
    width: 100%;
    max-width: 100%;
}

.fum-tickets-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.fum-tickets-stat {
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: 16px;
    box-shadow: var(--fum-shadow);
    padding: 16px 18px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.fum-tickets-stat__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fum-tickets-stat__top span {
    font-size: 13px;
    font-weight: 600;
    color: var(--fum-text-secondary);
}

.fum-tickets-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fum-tickets-stat__icon.is-blue {
    background: #EEF5FF;
    color: #3478F6;
}

.fum-tickets-stat__icon.is-amber {
    background: #FFF7E8;
    color: #E2A81A;
}

.fum-tickets-stat__icon.is-green {
    background: #E9F9F1;
    color: #20B979;
}

.fum-tickets-stat__icon.is-gray {
    background: #F1F4F8;
    color: #6F7B8F;
}

.fum-tickets-stat strong {
    font-size: 28px;
    line-height: 1;
    color: var(--fum-navy);
    font-weight: 800;
}

.fum-tickets-card {
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: 16px;
    box-shadow: var(--fum-shadow);
    padding: 18px 16px 14px;
    margin-bottom: 16px;
}

.fum-tickets-card__head {
    margin-bottom: 14px;
}

.fum-tickets-card__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--fum-navy);
}

.fum-tickets-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.fum-tickets-filters__search {
    position: relative;
}

.fum-tickets-filters__search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A94A6;
    font-size: 16px;
}

.fum-tickets-filters__search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--fum-border);
    border-radius: 12px;
    background: #F7F9FC;
    padding: 0 40px 0 14px;
    font-size: 13px;
    color: var(--fum-text);
}

.fum-tickets-filters__search input:focus {
    outline: none;
    border-color: #C7DBFF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 120, 246, 0.12);
}

.fum-tickets-filters__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fum-tickets-select select {
    min-height: 40px;
    border: 1px solid var(--fum-border);
    border-radius: 12px;
    background: #fff;
    padding: 0 34px 0 12px;
    font-size: 13px;
    color: var(--fum-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.fum-tickets-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #6F7B8F;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.fum-tickets-clear:hover {
    color: #3478F6;
    background: #EEF5FF;
}

.fum-tickets-table-wrap {
    display: none;
    overflow-x: auto;
}

.fum-tickets-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.fum-tickets-table th {
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #8A94A6;
    padding: 10px 12px;
    border-bottom: 1px solid var(--fum-border);
    white-space: nowrap;
}

.fum-tickets-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #EEF1F6;
    vertical-align: middle;
    font-size: 13px;
    color: var(--fum-text);
}

.fum-tickets-table tbody tr:hover {
    background: #FAFBFD;
}

.fum-tickets-title {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    max-width: 280px;
}

.fum-tickets-title__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #EEF5FF;
    color: #3478F6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.fum-tickets-title strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--fum-navy);
    line-height: 1.5;
}

.fum-tickets-title small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8A94A6;
}

.fum-tickets-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.fum-tickets-badge.is-waiting {
    background: #FFF7E8;
    color: #C48A00;
}

.fum-tickets-badge.is-answered {
    background: #E9F9F1;
    color: #159A63;
}

.fum-tickets-badge.is-action {
    background: #EEF5FF;
    color: #2B68DB;
}

.fum-tickets-badge.is-closed {
    background: #F1F4F8;
    color: #5B677A;
}

.fum-tickets-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #F1F4F8;
    color: #6F7B8F;
    font-size: 12px;
    font-weight: 700;
}

.fum-tickets-msg.is-active {
    background: #EEF5FF;
    color: #3478F6;
}

.fum-tickets-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fum-tickets-iconbtn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--fum-border);
    background: #fff;
    color: #6F7B8F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.fum-tickets-iconbtn:hover {
    border-color: #C7DBFF;
    color: #3478F6;
    background: #EEF5FF;
}

.fum-tickets-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--fum-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 42, 86, 0.12);
    padding: 6px;
    z-index: 5;
}

.fum-tickets-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--fum-text);
    text-decoration: none;
}

.fum-tickets-menu a:hover {
    background: #F7F9FC;
    color: #3478F6;
}

.fum-tickets-empty {
    text-align: center;
    padding: 40px 16px;
    color: #6F7B8F;
}

.fum-tickets-empty i {
    font-size: 36px;
    color: #B7C0CE;
    display: block;
    margin-bottom: 8px;
}

.fum-tickets-empty p {
    margin: 0 0 14px;
    font-size: 14px;
}

.fum-tickets-mobile {
    display: grid;
    gap: 10px;
}

.fum-tickets-mcard {
    border: 1px solid var(--fum-border);
    border-radius: 14px;
    padding: 14px;
    background: #FCFDFE;
}

.fum-tickets-mcard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fum-tickets-mcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: #6F7B8F;
    margin-bottom: 12px;
}

.fum-tickets-mcard__actions {
    display: flex;
    gap: 8px;
}

.fum-tickets-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--fum-border);
}

.fum-tickets-foot p {
    margin: 0;
    font-size: 13px;
    color: #6F7B8F;
}

.fum-tickets-pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fum-tickets-pages a,
.fum-tickets-pages span {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--fum-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #6F7B8F;
    text-decoration: none;
    background: #fff;
}

.fum-tickets-pages a:hover {
    border-color: #C7DBFF;
    color: #3478F6;
}

.fum-tickets-pages .is-active {
    background: #3478F6;
    border-color: #3478F6;
    color: #fff;
}

.fum-tickets-pages .is-disabled {
    opacity: 0.45;
    cursor: default;
}

.fum-tickets-help {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #EEF5FF;
    border: 1px solid #D7E3F4;
    border-radius: 16px;
    padding: 18px 16px;
}

.fum-tickets-help__text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fum-tickets-help__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: #3478F6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(16, 42, 86, 0.06);
}

.fum-tickets-help__text strong {
    display: block;
    font-size: 15px;
    color: var(--fum-navy);
    margin-bottom: 4px;
}

.fum-tickets-help__text p {
    margin: 0;
    font-size: 13px;
    color: #3B4A63;
    line-height: 1.7;
}

.fum-tickets-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 640px) {
    .fum-tickets-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .fum-tickets-card {
        padding: 20px 20px 16px;
    }

    .fum-tickets-filters {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .fum-tickets-filters__search {
        flex: 1;
        max-width: 340px;
    }

    .fum-tickets-table-wrap {
        display: block;
    }

    .fum-tickets-mobile {
        display: none;
    }

    .fum-tickets-foot {
        flex-direction: row;
    }

    .fum-tickets-help {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px;
    }
}

@media (min-width: 1024px) {
    .fum-tickets-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

html.dark .fum-tickets-stat,
html.dark .fum-tickets-card,
html.dark .fum-tickets-mcard,
html.dark .fum-tickets-iconbtn,
html.dark .fum-tickets-menu,
html.dark .fum-tickets-pages a,
html.dark .fum-tickets-pages span {
    background: #111827;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-tickets-stat strong,
html.dark .fum-tickets-card__head h2,
html.dark .fum-tickets-title strong,
html.dark .fum-tickets-help__text strong {
    color: #F3F6FB;
}

html.dark .fum-tickets-filters__search input,
html.dark .fum-tickets-select select {
    background: #0F172A;
    border-color: #243044;
    color: #E5EAF3;
}

html.dark .fum-tickets-help {
    background: #1A2740;
    border-color: #2B4060;
}

html.dark .fum-tickets-help__icon {
    background: #111827;
}

html.dark .fum-tickets-table tbody tr:hover {
    background: #0F172A;
}

/* ========== Global responsive (all panel pages) ========== */
.fum-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.fum-main img,
.fum-main video {
    max-width: 100%;
    height: auto;
}

.fum-main table:not(.fc-scrollgrid-sync-table) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Keep data tables as real tables so columns fill the box */
.fum-main .overflow-x-auto > table,
.fum-main table.min-w-full,
.fum-main table.fum-wallet-table,
.fum-main table.fum-tickets-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    overflow-x: visible;
}

.fum-main .fc table,
.fum-main .fum-user-calendar table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.fum-main .fc thead,
.fum-main .fum-user-calendar thead {
    display: table-header-group !important;
}

.fum-main .fc tbody,
.fum-main .fum-user-calendar tbody {
    display: table-row-group !important;
}

.fum-main .fc tr,
.fum-main .fum-user-calendar tr {
    display: table-row !important;
}

.fum-main .fc th,
.fum-main .fc td,
.fum-main .fum-user-calendar th,
.fum-main .fum-user-calendar td {
    display: table-cell !important;
    vertical-align: top;
}

.fum-main .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

.fum-main > .mt-16,
.fum-main > div.mt-16 {
    margin-top: 0 !important;
}

.fum-main > .fum-home,
.fum-main > .fum-wallet,
.fum-main > .fum-tickets,
.fum-main > .fum-svc,
.fum-main > .fum-legacy-page {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 767px) {
    .fum-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .fum-page-head .fum-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 639px) {
    .fum-header__meta {
        gap: 6px;
    }

    .fum-hchip span {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fum-hchip.hidden.sm\:inline-flex {
        display: none !important;
    }

    .fum-user-pill .hidden.sm\:block {
        display: none !important;
    }

    .fum-user-pill__caret {
        display: none;
    }
}

@media (max-width: 380px) {
    .fum-hchip {
        padding: 0 10px;
        min-height: 38px;
        font-size: 11px;
    }

    .fum-icon-btn {
        width: 38px;
        height: 38px;
    }
}

.fum-bank-steps {
    position: relative;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.fum-bank-steps__line {
    display: none;
}

.fum-bank-steps__item {
    flex: 0 0 auto;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fum-bank-steps__item span:last-child {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .fum-bank-steps {
        justify-content: space-between;
        overflow-x: visible;
        max-width: 48rem;
        margin: 0 auto;
        padding-bottom: 0;
    }

    .fum-bank-steps__line {
        display: block;
        position: absolute;
        top: 16px;
        left: 0;
        right: 0;
        height: 2px;
        background: #CBD5E1;
        z-index: 0;
    }

    .fum-bank-steps__item {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .fum-bank-steps__item span:last-child {
        font-size: 12px;
    }
}

.fum-legacy-page .grid-cols-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .fum-legacy-page .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fum-main .grid.md\:grid-cols-2,
    .fum-main .grid.md\:grid-cols-3,
    .fum-main .grid.sm\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    .fum-main .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    /* Sidebar is fixed on physical right — margin-right, not margin-inline-end (RTL breaks that) */
    .fum-shell {
        margin-right: var(--fum-sidebar-w);
        margin-left: 0;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .fum-main .grid.xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fum-services-grid {
        max-width: 100%;
    }
}

@media (max-width: 1023px) {
    .fum-shell {
        margin-right: 0 !important;
    }

    .fum-bottom-nav {
        display: grid !important;
    }

    .fum-main {
        padding-bottom: calc(var(--fum-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 24px) !important;
    }

    .fum-panel-footer {
        padding-bottom: calc(24px + var(--fum-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1024px) {
    .fum-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 359px) {
    .fum-home-menu {
        grid-template-columns: 1fr;
    }
}

/* Services page hero + grid */
@media (max-width: 767px) {
    .fum-svc-hero {
        min-height: 160px;
    }

    .fum-svc-hero__content h2 {
        font-size: 17px;
    }

    .fum-svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fum-home-hero {
        min-height: 160px;
    }

    .fum-home-hero--dashboard,
    .fum-home-hero--dashboard .fum-home-hero__content {
        min-height: 150px;
    }

    .fum-home-hero--dashboard .fum-home-hero__content {
        max-width: 100%;
    }

    .fum-home-hero__content {
        padding: 20px 16px;
    }

    .fum-home-hero__content h2 {
        font-size: 20px;
    }

    .fum-home-hero__content > p {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .fum-home-stats {
        gap: 10px;
    }

    .fum-home-stat {
        padding: 14px;
        min-height: 84px;
    }

    .fum-home-stat__value {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .fum-svc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fum-home-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .fum-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== Dashboard redesign (fum-dash) ========== */
.fum-dash {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fum-dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--fum-radius);
    min-height: 210px;
    box-shadow: var(--fum-shadow);
    isolation: isolate;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

.fum-dash-hero__media,
.fum-dash-hero__overlay {
    position: absolute;
    inset: 0;
}

.fum-dash-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.fum-dash-hero__overlay {
    background: linear-gradient(270deg, rgba(16, 42, 86, 0.94) 0%, rgba(16, 42, 86, 0.72) 38%, rgba(16, 42, 86, 0.18) 68%, rgba(16, 42, 86, 0.02) 100%);
    pointer-events: none;
}

.fum-dash-hero__content {
    position: relative;
    z-index: 1;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 28px 24px 24px;
    margin-inline-start: 0;
    max-width: min(100%, 520px);
    flex: 0 1 auto;
    color: #fff;
    text-align: right;
}

.fum-dash-hero__title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    line-height: 1.35;
}

.fum-dash-hero__desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.92;
    max-width: 46ch;
}

.fum-dash-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fum-btn--white {
    background: #fff;
    color: var(--fum-navy);
    border: 1px solid #fff;
}

.fum-btn--white:hover,
.fum-btn--white:focus-visible {
    background: #f3f7ff;
    color: var(--fum-navy);
    border-color: #f3f7ff;
}

.fum-btn--ghost-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
}

.fum-btn--ghost-light:hover,
.fum-btn--ghost-light:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.fum-btn--sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

.fum-dash-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.fum-dash-stat {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    min-height: 132px;
    padding: 16px 18px;
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius);
    box-shadow: var(--fum-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.fum-dash-stat:hover {
    transform: translateY(-2px);
    border-color: #D8E4F5;
    box-shadow: 0 8px 24px rgba(16, 42, 86, 0.08);
}

.fum-dash-stat__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.fum-dash-stat__label {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--fum-text-secondary);
}

.fum-dash-stat__value {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--fum-text);
}

.fum-dash-stat__unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--fum-text-secondary);
}

.fum-dash-stat__meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--fum-text-secondary);
}

.fum-dash-stat__link {
    margin-top: auto;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fum-primary);
    text-decoration: none;
}

.fum-dash-stat__link:hover,
.fum-dash-stat__link:focus-visible {
    color: var(--fum-primary-hover);
}

.fum-dash-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    align-self: flex-start;
}

.fum-dash-stat__icon--primary {
    background: var(--fum-light-blue);
    color: var(--fum-primary);
}

.fum-dash-stat__icon--success {
    background: #E8F9F1;
    color: #0F9F66;
}

.fum-dash-stat__icon--info {
    background: var(--fum-light-blue);
    color: var(--fum-primary);
}

.fum-dash-stat__icon--warning {
    background: #FFF6E0;
    color: #D97706;
}

.fum-dash-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.fum-dash-badge--sm {
    min-height: 24px;
    font-size: 11px;
}

.fum-dash-badge--success {
    background: #E8F9F1;
    color: #0F9F66;
}

.fum-dash-badge--info {
    background: var(--fum-light-blue);
    color: var(--fum-primary);
}

.fum-dash-badge--warning {
    background: #FFF6E0;
    color: #B7791F;
}

.fum-dash-badge--danger {
    background: #FDECEC;
    color: #C53030;
}

.fum-dash-badge--muted {
    background: #EEF2F7;
    color: var(--fum-text-secondary);
}

.fum-dash-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.fum-dash-panel {
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius);
    box-shadow: var(--fum-shadow);
    padding: 16px 18px;
    min-height: 280px;
}

.fum-dash-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fum-border);
}

.fum-dash-panel__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--fum-text);
}

.fum-dash-panel__more {
    font-size: 13px;
    font-weight: 700;
    color: var(--fum-primary);
    text-decoration: none;
    white-space: nowrap;
}

.fum-dash-panel__more:hover,
.fum-dash-panel__more:focus-visible {
    color: var(--fum-primary-hover);
}

.fum-dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 28px 16px;
    color: var(--fum-text-secondary);
}

.fum-dash-empty--compact {
    padding: 20px 12px;
}

.fum-dash-empty__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F1F5FA;
    color: var(--fum-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.fum-dash-empty__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--fum-text);
}

.fum-dash-empty__desc {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.7;
    max-width: 36ch;
}

.fum-dash-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fum-dash-event {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius-sm);
    background: #FCFDFF;
}

.fum-dash-event__date {
    width: 52px;
    text-align: center;
    padding: 8px 6px;
    border-radius: 10px;
    background: var(--fum-light-blue);
    color: var(--fum-navy);
}

.fum-dash-event__day {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.fum-dash-event__month {
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.fum-dash-event__body {
    min-width: 0;
}

.fum-dash-event__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fum-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fum-dash-event__meta {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--fum-text-secondary);
}

.fum-dash-event__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fum-dash-event__action {
    white-space: nowrap;
}

.fum-dash-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fum-dash-note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: var(--fum-radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fum-dash-note:hover,
.fum-dash-note:focus-visible {
    background: #F8FAFD;
    border-color: var(--fum-border);
}

.fum-dash-note.is-unread {
    background: #F8FBFF;
}

.fum-dash-note__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--fum-light-blue);
    color: var(--fum-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fum-dash-note__content {
    min-width: 0;
}

.fum-dash-note__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.fum-dash-note__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fum-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fum-dash-note__time {
    font-size: 11px;
    color: var(--fum-text-secondary);
    white-space: nowrap;
}

.fum-dash-note__summary {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: var(--fum-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fum-dash-note__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fum-primary);
    flex-shrink: 0;
}

.fum-dash-error {
    padding: 16px;
    border-radius: var(--fum-radius-sm);
    border: 1px solid #F5C2C2;
    background: #FFF5F5;
    color: #9B2C2C;
    text-align: center;
}

.fum-dash-error--inline {
    grid-column: 1 / -1;
}

.fum-dash-error p {
    margin: 0 0 8px;
    font-size: 13px;
}

.fum-dash-error__retry {
    font-size: 12px;
    font-weight: 700;
    color: var(--fum-primary);
}

.fum-header__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fum-header__subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--fum-text-secondary);
    font-weight: 500;
}

.fum-hchip__icon--discount {
    font-size: 18px;
    color: #0F9F66;
}

.fum-discount-card__media-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.fum-discount-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.fum-discount-card__media.swiper,
.fum-discount-card__media .swiper-wrapper,
.fum-discount-card__media .swiper-slide {
    width: 100%;
    height: 100%;
}

.fum-discount-card__media .swiper-slide {
    flex-shrink: 0;
}

.fum-discount-card__media .swiper-slide img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fum-discount-card__logo {
    position: absolute;
    bottom: -1.375rem;
    right: 0.5rem;
    z-index: 20;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #fff;
    background: #f3f4f6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.fum-nav-group {
    margin-top: 4px;
}

.fum-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.fum-nav-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: var(--fum-text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: right;
}

.fum-nav-group__toggle:hover,
.fum-nav-group__toggle:focus-visible {
    color: var(--fum-navy);
    background: #F4F8FF;
}

.fum-nav-group__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fum-nav-group__caret {
    font-size: 16px;
    transition: transform 0.15s ease;
}

.fum-nav-group__caret.is-open {
    transform: rotate(180deg);
}

.fum-nav-group__items .fum-nav-item {
    padding-right: 28px;
}

.fum-nav-item--logout {
    margin-top: 8px;
    border-top: 1px solid var(--fum-border);
    padding-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .fum-dash-stat,
    .fum-dash-note,
    .fum-nav-group__caret {
        transition: none;
    }

    .fum-dash-stat:hover {
        transform: none;
    }
}

@media (min-width: 640px) {
    .fum-dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .fum-dash {
        gap: 18px;
    }

    .fum-dash-hero,
    .fum-dash-hero__content {
        min-height: 220px;
    }

    .fum-dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .fum-dash-hero__content {
        min-height: 190px;
        padding: 18px 20px 18px 16px;
        max-width: 100%;
    }

    .fum-dash-hero__media img {
        object-position: 35% center;
    }

    .fum-dash-event {
        grid-template-columns: auto 1fr;
    }

    .fum-dash-event__action {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }
}

html.dark .fum-dash-stat,
html.dark .fum-dash-panel {
    background: #111827;
    border-color: #1F2937;
}

html.dark .fum-dash-event {
    background: #0F172A;
    border-color: #1F2937;
}

html.dark .fum-dash-note.is-unread,
html.dark .fum-dash-note:hover {
    background: #0F172A;
}

html.dark .fum-header__subtitle {
    color: #94A3B8;
}

/* ── Student Card Page ── */
.fum-scard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fum-scard-head__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fum-navy);
    text-align: right;
}

.fum-scard-head__desc {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: var(--fum-text-secondary);
    text-align: right;
    line-height: 1.6;
}

.fum-scard-alert {
    padding: 12px 16px;
    border-radius: var(--fum-radius-sm);
    font-size: 0.875rem;
    line-height: 1.6;
}

.fum-scard-alert--success {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.fum-scard-alert--error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.fum-scard-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--fum-radius-sm);
    border: 1px solid transparent;
    min-height: 0;
    max-height: none;
}

.fum-scard-status__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fum-scard-status__body {
    flex: 1;
    min-width: 0;
}

.fum-scard-status__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fum-scard-status__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--fum-navy);
    line-height: 1.5;
}

.fum-scard-status__badge {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.fum-scard-status__desc {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: var(--fum-text-secondary);
    line-height: 1.6;
}

.fum-scard-status__inline-link {
    color: var(--fum-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fum-scard-status__inline-link:hover,
.fum-scard-status__inline-link:focus-visible {
    color: var(--fum-primary-hover);
}

.fum-scard-status__date {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: var(--fum-text);
    line-height: 1.5;
}

.fum-scard-status__action {
    margin-top: 10px;
}

.fum-scard-status--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.fum-scard-status--success .fum-scard-status__icon {
    background: #dcfce7;
    color: #15803d;
}

.fum-scard-status--success .fum-scard-status__badge {
    background: #dcfce7;
    color: #166534;
}

.fum-scard-status--info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.fum-scard-status--info .fum-scard-status__icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.fum-scard-status--info .fum-scard-status__badge {
    background: #dbeafe;
    color: #1e40af;
}

.fum-scard-status--warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.fum-scard-status--warning .fum-scard-status__icon {
    background: #fef3c7;
    color: #b45309;
}

.fum-scard-status--warning .fum-scard-status__badge {
    background: #fef3c7;
    color: #92400e;
}

.fum-scard-status--danger,
.fum-scard-status--error {
    background: #fef2f2;
    border-color: #fecaca;
}

.fum-scard-status--danger .fum-scard-status__icon,
.fum-scard-status--error .fum-scard-status__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.fum-scard-status--danger .fum-scard-status__badge,
.fum-scard-status--error .fum-scard-status__badge {
    background: #fee2e2;
    color: #991b1b;
}

.fum-scard-status--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.fum-scard-status--muted .fum-scard-status__icon {
    background: #e2e8f0;
    color: #64748b;
}

.fum-scard-status--muted .fum-scard-status__badge {
    background: #e2e8f0;
    color: #475569;
}

.fum-scard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.fum-scard-grid__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.fum-scard-card {
    background: var(--fum-white);
    border: 1px solid var(--fum-border);
    border-radius: var(--fum-radius-sm);
    box-shadow: var(--fum-shadow);
    padding: 20px;
}

.fum-scard-card__title {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--fum-navy);
}

.fum-scard-preview {
    display: flex;
    justify-content: center;
}

.fum-scard-preview__frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1.586 / 1;
    overflow: hidden;
    border-radius: 10px;
    /* Slots tuned to personal-cart-bank.webp */
    --scard-name-top: 44.2%;
    --scard-faculty-top: 44.2%;
    --scard-photo-top: 38.4%;
    --scard-photo-right: 8%;
    --scard-photo-width: 13.4%;
    --scard-photo-height: 30.2%;
    --scard-number-top: 54%;
}

.fum-scard-preview__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fum-scard-preview__name {
    position: absolute;
    top: var(--scard-name-top);
    right: 19%;
    left: 38.5%;
    transform: translateY(-50%);
    padding: 0 11% 0 2%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.36rem, 1.35vw, 0.62rem);
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    word-break: break-word;
}

.fum-scard-preview__faculty {
    position: absolute;
    top: var(--scard-faculty-top);
    left: 19%;
    right: 38.5%;
    transform: translateY(-50%);
    padding: 0 11% 0 2%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.34rem, 1.2vw, 0.56rem);
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    word-break: break-word;
}

.fum-scard-preview__photo-wrap {
    position: absolute;
    right: var(--scard-photo-right);
    top: var(--scard-photo-top);
    width: var(--scard-photo-width);
    height: var(--scard-photo-height);
    display: block;
    overflow: hidden;
    border-radius: 13px;
    box-sizing: border-box;
    line-height: 0;
    pointer-events: none;
}

.fum-scard-preview__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
    border-radius: inherit;
}

.fum-scard-preview__number {
    position: absolute;
    top: var(--scard-number-top);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.68rem, 2.35vw, 1.1rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.1em;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.fum-scard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.fum-scard-actions__btn {
    min-height: 44px;
}

.fum-scard-btn-primary,
.fum-scard-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fum-scard-btn-primary {
    background: var(--fum-primary);
    border: 1px solid var(--fum-primary);
    color: #fff;
}

.fum-scard-btn-primary:hover,
.fum-scard-btn-primary:focus-visible {
    background: var(--fum-primary-hover);
    border-color: var(--fum-primary-hover);
    color: #fff;
}

.fum-scard-btn-outline {
    background: transparent;
    border: 1px solid var(--fum-border);
    color: var(--fum-navy);
}

.fum-scard-btn-outline:hover,
.fum-scard-btn-outline:focus-visible {
    background: var(--fum-light-blue);
    border-color: #c7d9f6;
    color: var(--fum-navy);
}

.fum-scard-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fum-border);
}

.fum-scard-details__title {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fum-navy);
}

.fum-scard-details__list {
    margin: 0;
}

.fum-scard-details__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fum-scard-details__row:last-child {
    border-bottom: 0;
}

.fum-scard-details__row dt {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--fum-text-secondary);
}

.fum-scard-details__row dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fum-text);
    text-align: left;
    word-break: break-word;
}

.fum-scard-empty {
    text-align: center;
    padding: 24px 12px;
}

.fum-scard-empty__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--fum-light-blue);
    color: var(--fum-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fum-scard-empty__title {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--fum-navy);
}

.fum-scard-empty__desc {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: var(--fum-text-secondary);
    line-height: 1.7;
}

.fum-scard-rows__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fum-scard-rows__row:first-child {
    padding-top: 0;
}

.fum-scard-rows__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fum-scard-rows__row dt {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--fum-text-secondary);
    flex: 0 0 auto;
}

.fum-scard-rows__row dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fum-text);
    text-align: left;
    word-break: break-word;
}

.fum-scard-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
}

.fum-scard-pill--success {
    background: #dcfce7;
    color: #166534;
}

.fum-scard-pill--warning {
    background: #fef3c7;
    color: #92400e;
}

.fum-scard-pill--danger {
    background: #fee2e2;
    color: #991b1b;
}

.fum-scard-pill--info {
    background: #dbeafe;
    color: #1e40af;
}

.fum-scard-pill--muted {
    background: #e2e8f0;
    color: #475569;
}

.fum-scard-pay-form {
    margin-top: 16px;
}

.fum-scard-pay-form__btn {
    width: 100%;
}

.fum-scard-pay-form__amount {
    font-weight: 500;
    opacity: 0.95;
}

.fum-scard-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fum-scard-timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    padding-bottom: 14px;
}

.fum-scard-timeline__item:last-child {
    padding-bottom: 0;
}

.fum-scard-timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 11px;
    width: 2px;
    bottom: 0;
    background: #e2e8f0;
}

.fum-scard-timeline__item--done:not(:last-child)::after {
    background: #bbf7d0;
}

.fum-scard-timeline__marker {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fum-scard-timeline__item--done .fum-scard-timeline__marker {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.875rem;
}

.fum-scard-timeline__item--current .fum-scard-timeline__marker {
    background: #dbeafe;
}

.fum-scard-timeline__item--upcoming .fum-scard-timeline__marker {
    background: #f1f5f9;
}

.fum-scard-timeline__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
}

.fum-scard-timeline__dot--muted {
    background: #94a3b8;
}

.fum-scard-timeline__content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.fum-scard-timeline__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fum-text);
    line-height: 1.4;
}

.fum-scard-timeline__item--upcoming .fum-scard-timeline__label {
    color: var(--fum-text-secondary);
}

.fum-scard-timeline__date {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--fum-text-secondary);
}

.fum-scard-support {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--fum-radius-sm);
    border: 1px solid #dbeafe;
    background: #f8fbff;
}

.fum-scard-support__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.fum-scard-support__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fum-navy);
}

.fum-scard-support__desc {
    margin: 6px 0 12px;
    font-size: 0.8125rem;
    color: var(--fum-text-secondary);
    line-height: 1.6;
}

.fum-scard-support__btn {
    min-height: 40px;
}

.fum-scard-support--below {
    max-width: 520px;
    width: 100%;
    margin: 18px auto 0;
    align-items: center;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 93, 169, 0.06);
}

.fum-scard-support--below .fum-scard-support__body {
    flex: 1;
    min-width: 0;
}

.fum-scard-support--below .fum-scard-support__desc {
    margin-bottom: 10px;
}

.fum-scard-support--below .fum-scard-support__btn {
    width: auto;
    min-width: 120px;
}

.fum-scard-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

@media (min-width: 768px) {
    .fum-scard {
        padding: 24px 24px 32px;
        gap: 22px;
    }

    .fum-scard-head__title {
        font-size: 1.375rem;
    }

    .fum-scard-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 22px;
    }
}

@media (min-width: 1024px) {
    .fum-scard-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    }

    .fum-scard-status {
        align-items: center;
        min-height: 64px;
        max-height: 80px;
        overflow: hidden;
    }

    .fum-scard-status__top {
        align-items: center;
    }

    .fum-scard-status__title {
        font-size: 0.875rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .fum-scard-status__desc,
    .fum-scard-status__date {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 4px;
    }

    .fum-scard-status__action {
        margin-top: 0;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .fum-scard-actions {
        flex-direction: column;
    }

    .fum-scard-actions__btn,
    .fum-scard-pay-form__btn,
    .fum-scard-support__btn {
        width: 100%;
    }

    .fum-scard-support--below .fum-scard-support__btn {
        width: 100%;
    }

    .fum-scard-rows__row,
    .fum-scard-details__row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .fum-scard-rows__row dd,
    .fum-scard-details__row dd {
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fum-scard-btn-primary,
    .fum-scard-btn-outline {
        transition: none;
    }
}

html.dark .fum-scard-card,
html.dark .fum-scard-status--muted {
    background: #111827;
    border-color: #1f2937;
}

html.dark .fum-scard-head__title,
html.dark .fum-scard-card__title,
html.dark .fum-scard-status__title,
html.dark .fum-scard-support__title,
html.dark .fum-scard-empty__title,
html.dark .fum-scard-details__title {
    color: #e5e7eb;
}

html.dark .fum-scard-support {
    background: #0f172a;
    border-color: #1e3a8a;
}

html.dark .fum-scard-rows__row,
html.dark .fum-scard-details__row {
    border-bottom-color: #1f2937;
}

/* ── Notifications page ── */
.fum-header__crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #6B7280;
}

.fum-header__crumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fum-header__crumb a:hover,
.fum-header__crumb a:focus-visible {
    color: #3478F6;
}

.fum-header__crumb-current {
    color: #0B2C6E;
    font-weight: 700;
}

.fum-header__crumb--mobile {
    font-size: 12px;
}

.fum-notif {
    max-width: 980px;
}

.fum-notif-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fum-notif-head__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0B2C6E;
    line-height: 1.3;
}

.fum-notif-head__subtitle {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.5;
}

.fum-btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid #C7DBFF;
    background: #FFFFFF;
    color: #3478F6;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fum-btn--outline:hover:not(:disabled),
.fum-btn--outline:focus-visible:not(:disabled) {
    background: #EEF5FF;
    border-color: #3478F6;
}

.fum-btn--outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fum-notif-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fum-notif-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.fum-notif-tabs::-webkit-scrollbar {
    display: none;
}

.fum-notif-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fum-notif-tab:hover,
.fum-notif-tab:focus-visible {
    color: #3478F6;
}

.fum-notif-tab.is-active {
    color: #3478F6;
    border-bottom-color: #3478F6;
    background: rgba(52, 120, 246, 0.06);
    border-radius: 8px 8px 0 0;
}

.fum-notif-tab__count {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}

.fum-notif-search {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 320px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #E5EAF2;
    border-radius: 999px;
    background: #FFFFFF;
}

.fum-notif-search i {
    color: #9AA6BC;
    font-size: 16px;
    flex-shrink: 0;
}

.fum-notif-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #172033;
}

.fum-notif-search input::placeholder {
    color: #9AA6BC;
}

.fum-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fum-notif-item {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #E5EAF2;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fum-notif-item:hover,
.fum-notif-item:focus-visible {
    border-color: #C7DBFF;
    background: #FAFCFF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 120, 246, 0.12);
}

.fum-notif-item.is-unread {
    background: #F3F7FF;
    border-color: #D6E6FF;
}

.fum-notif-item.is-unread::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 0;
    width: 3px;
    border-radius: 999px 0 0 999px;
    background: #3478F6;
}

.fum-notif-item.is-read .fum-notif-item__title {
    color: #374151;
    font-weight: 600;
}

.fum-notif-item.is-read .fum-notif-item__summary {
    color: #9CA3AF;
}

.fum-notif-item__dot-wrap {
    width: 8px;
    flex-shrink: 0;
}

.fum-notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3478F6;
    flex-shrink: 0;
}

.fum-notif-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fum-notif-item__icon--success {
    background: rgba(22, 163, 106, 0.12);
    color: #16A36A;
}

.fum-notif-item__icon--primary {
    background: rgba(52, 120, 246, 0.12);
    color: #3478F6;
}

.fum-notif-item__icon--navy {
    background: rgba(11, 44, 110, 0.1);
    color: #0B2C6E;
}

.fum-notif-item__icon--warning {
    background: rgba(245, 158, 11, 0.14);
    color: #F59E0B;
}

.fum-notif-item__body {
    min-width: 0;
}

.fum-notif-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.fum-notif-item__title {
    font-size: 14px;
    font-weight: 800;
    color: #0B2C6E;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fum-notif-item__summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.6;
    color: #6B7280;
}

.fum-notif-item__badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.fum-notif-item__badge--success {
    background: rgba(22, 163, 106, 0.12);
    color: #16A36A;
}

.fum-notif-item__badge--primary {
    background: rgba(52, 120, 246, 0.12);
    color: #3478F6;
}

.fum-notif-item__badge--navy {
    background: rgba(11, 44, 110, 0.1);
    color: #0B2C6E;
}

.fum-notif-item__badge--warning {
    background: rgba(245, 158, 11, 0.14);
    color: #F59E0B;
}

.fum-notif-item__time {
    font-size: 11px;
    color: #6B7280;
    white-space: nowrap;
}

.fum-notif-item__chevron {
    color: #9CA3AF;
    font-size: 18px;
    line-height: 1;
}

.fum-notif-empty {
    padding: 40px 20px;
    border: 1px dashed #E5EAF2;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
}

.fum-notif-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #F3F7FF;
    color: #3478F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fum-notif-empty__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0B2C6E;
}

.fum-notif-empty__desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6B7280;
}

.fum-notif-pagination {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.fum-notif-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fum-notif-pages__btn,
.fum-notif-pages__num {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #E5EAF2;
    background: #FFFFFF;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.fum-notif-pages__num.is-active {
    background: #3478F6;
    border-color: #3478F6;
    color: #FFFFFF;
}

.fum-notif-pages__btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.fum-notif-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

.fum-notif-drawer.is-open {
    pointer-events: auto;
}

.fum-notif-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 44, 110, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fum-notif-drawer.is-open .fum-notif-drawer__backdrop {
    opacity: 1;
}

.fum-notif-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: #FFFFFF;
    box-shadow: 0 12px 40px rgba(11, 44, 110, 0.18);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fum-notif-drawer.is-open .fum-notif-drawer__panel {
    transform: translateX(0);
}

.fum-notif-drawer__head {
    display: flex;
    justify-content: flex-end;
    padding: 12px 12px 0;
}

.fum-notif-drawer__content {
    padding: 8px 20px 24px;
    overflow-y: auto;
}

.fum-notif-drawer__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fum-notif-drawer__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #0B2C6E;
    line-height: 1.4;
}

.fum-notif-drawer__time {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    color: #6B7280;
}

.fum-notif-drawer__text {
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
    white-space: pre-wrap;
}

.fum-notif-drawer__action {
    margin-top: 18px;
}

.fum-notif-alert {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.fum-notif-alert--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.fum-notif-alert--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
}

@media (max-width: 767px) {
    .fum-notif-head {
        flex-direction: column;
        align-items: stretch;
    }

    .fum-notif-head__mark {
        width: 100%;
    }

    .fum-notif-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fum-notif-search {
        max-width: none;
        width: 100%;
    }

    .fum-notif-item {
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas:
            "dot icon body chevron"
            ". . time chevron";
        align-items: start;
    }

    .fum-notif-item__dot { grid-area: dot; margin-top: 14px; }
    .fum-notif-item__icon { grid-area: icon; }
    .fum-notif-item__body { grid-area: body; }
    .fum-notif-item__chevron { grid-area: chevron; align-self: center; }
    .fum-notif-item__time.md\:hidden { grid-area: time; display: block !important; margin-top: 4px; }

    .fum-notif-drawer__panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(105%);
    }

    .fum-notif-drawer.is-open .fum-notif-drawer__panel {
        transform: translateY(0);
    }
}

html.dark .fum-notif-item,
html.dark .fum-notif-empty,
html.dark .fum-notif-search,
html.dark .fum-notif-drawer__panel {
    background: #111827;
    border-color: #1f2937;
}

html.dark .fum-notif-item.is-unread {
    background: #0f172a;
}

html.dark .fum-notif-head__title,
html.dark .fum-notif-item__title,
html.dark .fum-notif-drawer__title,
html.dark .fum-notif-empty__title,
html.dark .fum-header__crumb-current {
    color: #e5e7eb;
}

