/* Loaded only by the Fully Hooked brand fragment. Shared page CSS supplies layout and behavior. */
:root {
    color-scheme: light;
    --fh-ink: #202423;
    --fh-muted: #58605d;
    --fh-orange: #b84010;
    --fh-orange-dark: #96350d;
    --fh-sand: #fff5e9;
    --fh-paper: #ffffff;
    --fh-canvas: #f7f7f4;
    --fh-line: #e2e3dc;
    --fh-shadow: 0 8px 26px -15px rgb(51 42 24 / 29%);
    --fh-font: 'DM Sans', Inter, system-ui, sans-serif;
    --ck-text: var(--fh-ink);
    --ck-dark: var(--fh-ink);
    --ck-muted: var(--fh-muted);
    --ck-card: var(--fh-paper);
    --ck-bg: var(--fh-canvas);
    --ck-border: var(--fh-line);
    --ck-border-strong: #d1cfc6;
    --ck-field: #fafaf8;
    --ck-soft: var(--fh-sand);
    --ck-orange: var(--fh-orange);
    --ck-blue: var(--fh-orange);
    --ck-blue-2: #cb571b;
    --ck-blue-light: #eb925a;
    --ck-cyan: #b95222;
    --ck-purple: #ab4518;
    --ck-pink: #b85431;
    --ck-shadow: var(--fh-shadow);
    --ck-shadow-soft: 0 3px 12px -6px rgb(52 43 30 / 16%);
    --payfe-blue: var(--fh-orange);
    --payfe-blue-2: var(--fh-orange-dark);
    --payfe-purple: #a64824;
    --payfe-pink: #b45739;
    --payfe-orange: var(--fh-orange);
    --payfe-dark: var(--fh-ink);
    --payfe-text: var(--fh-ink);
    --payfe-muted: var(--fh-muted);
    --payfe-border: var(--fh-line);
    --ep-navy: var(--fh-ink);
    --ep-muted: var(--fh-muted);
    --ep-border: var(--fh-line);
    --ep-bg: var(--fh-canvas);
    --ep-soft: var(--fh-sand);
    --ep-blue: var(--fh-orange);
    --ep-blue-2: #c04d1b;
    --ep-purple: #a64723;
    --ep-orange: var(--fh-orange);
    --ep-orange-dark: var(--fh-orange-dark);
    --passkey-accent: var(--fh-orange);
    --shadow-card: var(--fh-shadow);
    --ft-active: var(--fh-orange);
}

html:root,
html body,
html body.container-width,
html body.container-width.page-flex,
html body.bg-4.container-width {
    background: var(--fh-canvas) !important;
    color: var(--fh-ink);
    font-family: var(--fh-font) !important;
}

body :is(button, input, select, textarea, label, h1, h2, h3, h4, h5, h6, .title, .sub-title, .text-small, .text-medium) {
    font-family: var(--fh-font) !important;
}
body :is(a, button, input, summary, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #046c87 !important;
    outline-offset: 3px !important;
}
body .preload .logo-img img,
body .wg-setting-profile .image img { object-fit: contain !important; }
body .bg-rectangle { background: transparent !important; }

body .header-2 .header-content,
body :is(.list-setting-item, .cp-card, .pm-card, .rc-card, .reports-panel, .blz-balance-card, .auth-panel),
body .tf-container.wg-top-up:not(#buyCheckoutPanel, #p3mSellCheckout),
body .wg-transaction-history .box-transaction-item {
    background: var(--fh-paper) !important;
    border: 1px solid var(--fh-line) !important;
    border-radius: 20px !important;
    box-shadow: var(--fh-shadow) !important;
}
body .header-2 .header-content { padding: 8px 10px !important; border-radius: 18px !important; }
body .header-content .title { font: 750 18px/1.2 var(--fh-font) !important; color: var(--fh-ink) !important; letter-spacing: -.035em; }
body .header-content :is(.tf-btn-arrow, .btn-right), body .setting-item > i {
    background: #f8f2e9 !important; color: var(--fh-orange) !important; border-color: #eee4d6 !important;
}
body :is(.accent-box, .rc-hero-card, .wg-setting-profile, .auth-contact-card, .buy-review-amount, .buy-review-check) {
    background: linear-gradient(120deg, #ffe8cf, #fff8ed 72%, #fffdf9) !important;
    border-color: #ebd9c4 !important;
}
body .accent-box :is(label, .text-medium),
body .wg-setting-profile .name { color: var(--fh-ink) !important; }
body .wg-transaction-history .heading-wg a,
body .global-footer-legal a,
body :is(.buy-review-amount strong,.buy-review-check,.buy-review-row span i) { color: var(--fh-orange) !important; }

body :is(.tf-btn.primary, .auth-primary, .pm-pill-btn-primary, .rc-submit-btn, .rc-mini-btn.primary,
         .rc-modal-btn.primary, .reward-report-download-btn, .reward-otp-confirm, .pm-btn.primary, .blz-share-btn),
body .cp-btn-wrap .tf-btn.primary,
body :is(.unit-btn.active, .history-tab.active, .blz-tab-btn.active, .reward-tab.active, .rc-tab.active,
         .rc-page-btn.active, .reward-page-number.active, .tag-money.active, .buy-review-header) {
    color: white !important;
    background: var(--fh-orange) !important;
    border-color: var(--fh-orange) !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
body :is(.tf-btn.primary, .auth-primary, .rc-submit-btn) {
    min-height: 46px;
    border-radius: 14px !important;
    font-family: var(--fh-font) !important;
    font-weight: 750;
}
body :is(.tf-btn.primary, .auth-primary, .rc-submit-btn):hover:not(:disabled) { background: var(--fh-orange-dark) !important; }
body .tag-money:not(.active) { background: white !important; border-color: var(--fh-line) !important; color: var(--fh-ink) !important; }
body .global-footer-legal a:link, body .global-footer-legal a:visited { color: var(--fh-orange-dark) !important; }
body .wg-top-up .tf-btn.greyscale { color: white !important; background: var(--fh-orange) !important; box-shadow: none !important; }
body .wg-top-up input::placeholder, body .from-login input::placeholder {
    color: #636b6b !important; opacity: 1; font-weight: 500 !important;
}
body .wg-top-up .send-max-btn { background: #fff9f1 !important; border-color: #e3d6c6 !important; color: var(--fh-orange-dark) !important; }
body .buy-review-payable { background: #303633; }

/* Brand sign-in, registration and recovery share one responsive cover and form. */
html body.container-width:has(.fh-auth-cover) { background: #f4f3ee !important; }
body .wrap:has(.fh-auth-cover) { min-height: 100svh !important; padding: clamp(20px, 5vw, 80px) !important; }
body .wrap > .tf-container:has(.fh-auth-cover) {
    display: grid;
    grid-template: "cover form" 1fr "cover legal" auto / minmax(0, 1.05fr) minmax(0, 1fr);
    width: min(100%, 960px) !important;
    max-width: none !important;
    overflow: hidden !important;
    background: white !important;
    border: 1px solid var(--fh-line);
    border-radius: 28px;
    box-shadow: 0 20px 64px -42px #493f2d;
}
.fh-auth-cover {
    grid-area: cover;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    margin: 0;
    padding: clamp(24px, 4vw, 50px);
    color: white;
    background: linear-gradient(0deg, rgb(13 43 58 / 53%), transparent 55%),
                #76a3b6 url("../../images/fullyhooked/coast-hero.webp") 68% center / cover no-repeat;
}
.fh-auth-brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 750 clamp(23px, 3.5vw, 38px)/1 var(--fh-font); letter-spacing: -.055em; }
.fh-auth-brand img { width: 55px; height: 55px; padding: 4px; border-radius: 16px; object-fit: contain; background: white; }
body .fh-auth-cover ~ .from-login {
    grid-area: form;
    align-self: center;
    max-width: none !important;
    background: white !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: clamp(25px, 4vw, 52px) clamp(24px, 4vw, 48px) !important;
}
body .fh-auth-cover ~ .from-login > div:first-of-type:has(> img) { display: none; }
body .fh-auth-cover ~ .from-login .top-from { text-align: left !important; margin-bottom: 22px !important; }
body .from-login .top-from .title {
    font: 750 clamp(27px, 3vw, 38px)/1.06 var(--fh-font) !important;
    color: var(--fh-ink) !important;
    letter-spacing: -.055em !important;
}
body .from-login .top-from .sub-title { color: var(--fh-muted) !important; font: 450 14px/1.5 var(--fh-font) !important; }
body .from-login :is(.forgot-link-underline,.text-bottom a,.passkey-text-button) { color: var(--fh-orange) !important; }
body .fh-auth-cover ~ .from-login .middle-from { margin-bottom: 22px !important; }
body .from-login :is(.tf-field, .icon-absolute, .form-select) {
    border-color: #d8dbd3 !important;
    background-color: #fafaf7 !important;
    border-radius: 13px !important;
    box-shadow: none !important;
}
body .from-login .tf-field:focus-within,
body .from-login .icon-absolute:focus-within { border-color: var(--fh-orange) !important; }
body .from-login .passkey-button { color: var(--fh-ink); border-color: var(--fh-line); background: #fff8ed; }
body .fh-auth-cover ~ footer {
    grid-area: legal; margin: 0 !important; padding: 0 20px 22px; font-family: var(--fh-font); color: var(--fh-muted) !important;
}
body .fh-auth-cover ~ footer a { color: var(--fh-muted) !important; }

/* The same actions and scanner remain reachable in the floating wallet dock. */
body .menubar-footer.footer-fixed {
    width: min(calc(100% - 20px), 550px) !important;
    min-width: 0 !important;
    max-width: 550px !important;
    bottom: max(9px, env(safe-area-inset-bottom)) !important;
    padding: 5px !important;
    border: 1px solid #e1e0d8 !important;
    border-radius: 26px !important;
    background: rgb(253 252 248 / 97%) !important;
    box-shadow: 0 8px 28px rgb(37 40 29 / 15%) !important;
}
body .footer-nav-7 { gap: 0 !important; min-height: 50px; }
body .footer-nav-7 .nav-item-wrap { min-width: 0 !important; }
body .footer-nav-7 .inner-bar-item {
    width: 100%; min-height: 48px; border-radius: 19px;
    gap: 4px !important; color: #454b47 !important;
}
body .footer-nav-7 .inner-bar-item :is(i, .icon, span) { color: inherit !important; }
body .footer-nav-7 .inner-bar-item span { font: 650 clamp(9px, 2.3vw, 11px)/1.1 var(--fh-font) !important; }
body .footer-nav-7 .inner-bar-item.active { background: #fff; color: var(--fh-orange) !important; box-shadow: 0 1px 5px rgb(48 41 31 / 10%); }
body .footer-nav-7 .footer-more-disabled { opacity: .54; }
body .footer-nav-7 .scan-slot { order: 1; align-items: center !important; }
body .footer-nav-7 .scan-center-btn {
    width: clamp(36px, 10vw, 47px) !important; height: clamp(36px, 10vw, 47px) !important;
    margin: 0 !important; background: var(--fh-orange) !important;
    color: white !important; box-shadow: none !important;
}
body .footer-nav-7 .scan-center-btn i { font-size: 21px !important; }
body .footer-nav-7 .scan-center-btn::before, body .footer-nav-7 .scan-center-btn::after { content: none !important; }
body .more-options-modal .more-shell { background: var(--fh-paper); color: var(--fh-ink); border-color: var(--fh-line); }
body .more-options-modal .more-hero { background: #fff1df; color: var(--fh-ink); }
body .more-options-modal .more-hero :is(h2, p) { color: var(--fh-ink); }
body .more-options-modal .more-hero h2 span { color: var(--fh-orange); -webkit-text-fill-color: currentColor; }
body .more-options-modal .more-close { color: var(--fh-ink); background: #fff; border-color: var(--fh-line); }
body .more-options-modal .more-eyebrow, body .more-options-modal .more-orbit { color: #7b471e; }
body .more-options-modal .more-action { background: #fafaf7; border-color: var(--fh-line); color: var(--fh-ink); }
body .more-options-modal .more-action-icon { background: #ffead6; color: var(--fh-orange); }
body .more-options-modal .more-action-caption { color: var(--fh-muted); }

body.authenticator-page {
    --auth-ink: var(--fh-ink); --auth-muted: var(--fh-muted); --auth-violet: var(--fh-orange); --auth-line: var(--fh-line);
}
body .auth-hero { background: #fcebd6 !important; border-color: #e9d7c2; color: var(--fh-ink); }
body .auth-hero :is(h1, p) { color: var(--fh-ink); }
body .auth-hero h1 > span { background: none; color: var(--fh-orange); -webkit-text-fill-color: currentColor; }
body .auth-hero::before, body .auth-hero::after, body .auth-atmosphere span,
body .auth-eyebrow, body .auth-scene-tag { display: none; }
body .auth-hero .auth-illustration > svg { display: none; }
body .auth-hero .auth-illustration::after {
    content: "";
    display: block;
    width: clamp(100px, 15vw, 170px);
    aspect-ratio: 1;
    margin: 18px auto;
    background: url("../../images/fullyhooked/wallet-actions.webp") 66.6667% 100% / 400% 200% no-repeat;
}
body .auth-benefits, body .auth-benefits b { color: #584d3d; border-color: #d9c5ad; }
body .auth-panel-icon, body .auth-steps .is-complete > span {
    background: var(--fh-sand); color: var(--fh-orange-dark); border-color: #ead8c4;
}
body .auth-logout, body .auth-steps .is-current { color: var(--fh-orange-dark); }
body .auth-atmosphere { opacity: .15; }
body .auth-steps .is-current > span,
body .payment-loader-core { background: var(--fh-orange); }
body .auth-brand img { object-fit: contain; }
body .swal2-popup.payment-loading-popup,
body .swal2-popup.payment-transfer-popup:not(.payment-transfer-authenticator) { background: #fffbf5; border-color: var(--fh-line); }
body .payment-loader-ring { border-top-color: var(--fh-orange); border-right-color: #e4b569; }

@media (max-width: 720px) {
    body .wrap:has(.fh-auth-cover) { display: block !important; padding: 0 !important; background: #fff !important; }
    body .wrap > .tf-container:has(.fh-auth-cover) {
        display: block; width: min(100%, 520px) !important; min-height: 100svh;
        border: 0; border-radius: 0; box-shadow: none;
    }
    .fh-auth-cover {
        min-height: clamp(150px, 25svh, 230px);
        padding: 20px 24px 38px; background-position: center, 67% 53%;
    }
    .fh-auth-brand img { width: 43px; height: 43px; border-radius: 12px; }
    body .fh-auth-cover ~ .from-login {
        position: relative; margin: -19px 0 0 !important; border-radius: 23px 23px 0 0 !important;
        padding: 27px clamp(20px, 6vw, 32px) 20px !important;
    }
}
@media (forced-colors: active) {
    body .menubar-footer.footer-fixed, body .from-login, body .auth-panel { border: 1px solid CanvasText !important; }
    .fh-auth-brand { color: CanvasText; }
}
