/* =====================================================================
   GLOBAL INVESTMENT - MEMBER / AUTH SKIN
   Soft "neumorphic" UI from the owner's reference screenshots:
   light grey-blue canvas, pillowy raised cards, teal IDs, purple level
   tags, cyan->violet gradient buttons, red "Red ID" warning card, and
   icon-tile stat cards.
   Scoped to body.gi-skin so the admin panel is untouched.
   Loaded AFTER theme/custom/sidebar/dashboard css so it wins.
   ===================================================================== */

:root {
    --gi-bg: #e8edf2;
    --gi-surface: #edf1f5;
    --gi-raised: #f1f4f8;
    --gi-white: #ffffff;
    --gi-shadow-dark: rgba(163, 177, 198, .62);
    --gi-shadow-light: rgba(255, 255, 255, .95);
    --gi-text: #2d3748;
    --gi-muted: #6b7a90;
    --gi-line: #dde3ea;
    --gi-teal: #1aa3c4;
    --gi-teal-soft: #d4eef6;
    --gi-purple: #7b5ce6;
    --gi-purple-soft: #e7e1fb;
    --gi-navy: #0f2a5c;
    --gi-blue: #1e56b8;
    --gi-gold: #e3a92b;
    --gi-green: #1e9e6a;
    --gi-green-soft: #dcf3e8;
    --gi-red: #e5394f;
    --gi-red-soft: #fbe3e6;
    --gi-grad: linear-gradient(100deg, #12b5d6 0%, #5b8cf0 55%, #8b6cf2 100%);
    --gi-grad-red: linear-gradient(100deg, #f0474f 0%, #e11d55 100%);
    --gi-radius: 26px;
    --gi-radius-sm: 16px;
    --gi-raise: 9px 9px 20px var(--gi-shadow-dark), -9px -9px 20px var(--gi-shadow-light);
    --gi-raise-sm: 5px 5px 12px var(--gi-shadow-dark), -5px -5px 12px var(--gi-shadow-light);
    --gi-inset: inset 5px 5px 10px var(--gi-shadow-dark), inset -5px -5px 10px var(--gi-shadow-light);
    --gi-font: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ base */
body.gi-skin,
body.gi-skin .main,
body.gi-skin #content {
    background: var(--gi-bg) !important;
    color: var(--gi-text);
    font-family: var(--gi-font);
}
body.gi-skin h1, body.gi-skin h2, body.gi-skin h3, body.gi-skin h4, body.gi-skin h5, body.gi-skin h6,
body.gi-skin .h1, body.gi-skin .h2, body.gi-skin .h3, body.gi-skin .h4, body.gi-skin .h5,
body.gi-skin .page-header-title, body.gi-skin .card-header-title {
    color: var(--gi-text);
    font-family: var(--gi-font);
    font-weight: 600;
    letter-spacing: -.01em;
}
body.gi-skin .text-muted, body.gi-skin .text-body-secondary { color: var(--gi-muted) !important; }
body.gi-skin a { color: var(--gi-teal); }
body.gi-skin .text-cap, body.gi-skin .gi-cap {
    color: var(--gi-teal) !important;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .8rem;
}

/* ----------------------------------------------------------------- cards */
body.gi-skin .card,
body.gi-skin .dash-card,
body.gi-skin .gi-card {
    background: var(--gi-surface) !important;
    border: 0 !important;
    border-radius: var(--gi-radius) !important;
    box-shadow: var(--gi-raise) !important;
    color: var(--gi-text);
}
body.gi-skin .card-header,
body.gi-skin .card-footer {
    background: transparent !important;
    border-color: var(--gi-line) !important;
}
body.gi-skin .card-header-title { color: var(--gi-teal); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; }
body.gi-skin .card-header-title i { color: var(--gi-teal) !important; }
body.gi-skin .modal-content {
    background: var(--gi-surface);
    border: 0;
    border-radius: var(--gi-radius);
    box-shadow: 0 30px 60px rgba(15, 42, 92, .22);
}
body.gi-skin .list-group-item { background: transparent; border-color: var(--gi-line); }

/* --------------------------------------------------------------- buttons */
body.gi-skin .btn { border-radius: 14px; font-weight: 600; font-family: var(--gi-font); }
body.gi-skin .btn-primary,
body.gi-skin .btn-gi {
    background: var(--gi-grad) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(91, 140, 240, .35), var(--gi-raise-sm);
}
body.gi-skin .btn-primary:hover, body.gi-skin .btn-gi:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.gi-skin .btn-primary:disabled, body.gi-skin .btn-primary.disabled { filter: grayscale(.4); opacity: .6; }
body.gi-skin .btn-white,
body.gi-skin .btn-light,
body.gi-skin .btn-outline-primary,
body.gi-skin .btn-soft-primary,
body.gi-skin .btn-secondary {
    background: var(--gi-surface) !important;
    border: 0 !important;
    color: var(--gi-text) !important;
    box-shadow: var(--gi-raise-sm);
}
body.gi-skin .btn-white:active, body.gi-skin .btn-light:active { box-shadow: var(--gi-inset); }
body.gi-skin .btn-danger, body.gi-skin .btn-gi-danger {
    background: var(--gi-grad-red) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(229, 57, 79, .3);
}
/* "Clear filters" style: raised pill with red text and a hairline red border */
body.gi-skin .btn-outline-danger, body.gi-skin .btn-gi-clear {
    background: var(--gi-surface) !important;
    border: 1px solid #f3c4cb !important;
    color: var(--gi-red) !important;
    box-shadow: var(--gi-raise-sm);
}
body.gi-skin .btn-success {
    background: linear-gradient(100deg, #1fb57a, #12936a) !important;
    border: 0 !important;
}

/* ----------------------------------------------------------------- forms */
body.gi-skin .form-control,
body.gi-skin .form-select,
body.gi-skin .input-group-text,
body.gi-skin .tom-select-custom .ts-control,
body.gi-skin .select2-container--default .select2-selection--single {
    background-color: var(--gi-surface) !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: var(--gi-inset) !important;
    color: var(--gi-text) !important;
    font-family: var(--gi-font);
}
body.gi-skin .input-group > .form-control:not(:last-child),
body.gi-skin .input-group-merge > .form-control:not(:last-child) { border-top-right-radius: 14px !important; border-bottom-right-radius: 14px !important; }
body.gi-skin .input-group-merge .input-group-append.input-group-text,
body.gi-skin .input-group-merge .input-group-prepend.input-group-text { box-shadow: none !important; background: transparent !important; }
body.gi-skin .form-control:focus,
body.gi-skin .form-select:focus { box-shadow: var(--gi-inset), 0 0 0 3px rgba(26, 163, 196, .25) !important; }
body.gi-skin .form-control[readonly] { opacity: .95; }
body.gi-skin .form-label { color: var(--gi-muted); font-weight: 600; }
body.gi-skin .form-check-input { border-color: #b9c4d2; }
body.gi-skin .form-check-input:checked { background-color: var(--gi-teal); border-color: var(--gi-teal); }

/* ---------------------------------------------------------------- tables */
body.gi-skin .table-responsive,
body.gi-skin .dash-table-wrap {
    border-radius: var(--gi-radius);
}
body.gi-skin .table { color: var(--gi-text); --bs-table-bg: transparent; margin-bottom: 0; }
body.gi-skin .table > :not(caption) > * > * { background: transparent; border-color: var(--gi-line); padding: 1rem .9rem; }
body.gi-skin .table thead th,
body.gi-skin .table .thead-light th {
    background: transparent !important;
    color: var(--gi-muted) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .82rem;
    border-bottom: 2px solid var(--gi-line) !important;
}
body.gi-skin .table-hover > tbody > tr:hover > * { background: rgba(255, 255, 255, .45); }
body.gi-skin .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: rgba(255, 255, 255, .28); }

/* member ID chip: "#SG477092" teal with dotted underline (screenshots 1 & 3) */
body.gi-skin .gi-id,
body.gi-skin .table a.gi-id,
body.gi-skin .user-login-id {
    color: var(--gi-teal) !important;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px dashed rgba(26, 163, 196, .55);
    padding-bottom: 1px;
    white-space: nowrap;
}
/* level tag: purple bold (screenshot 1) */
body.gi-skin .gi-level { color: var(--gi-purple); font-weight: 700; }
/* package pill: soft teal box (screenshot 3) */
body.gi-skin .gi-pkg {
    display: inline-block;
    background: var(--gi-teal-soft);
    color: #0f8fb0;
    border: 1px solid #b4e1ee;
    border-radius: 10px;
    padding: .3rem .55rem;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    line-height: 1.25;
}

/* ---------------------------------------------------------------- badges */
body.gi-skin .badge { border-radius: 999px; font-weight: 700; letter-spacing: .03em; padding: .45em .8em; }
body.gi-skin .gi-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    border-radius: 999px; padding: .32rem .8rem;
    font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
body.gi-skin .gi-pill--member { background: var(--gi-green-soft); color: var(--gi-green); }
body.gi-skin .gi-pill--active { color: var(--gi-green); padding-left: .2rem; }
body.gi-skin .gi-pill--inactive { background: var(--gi-red-soft); color: var(--gi-red); }
body.gi-skin .gi-pill--capped { background: #fff1d6; color: #b7791f; }

/* ------------------------------------------------- red ID warning card */
body.gi-skin .gi-redid {
    position: relative;
    background: linear-gradient(180deg, #f3ece9 0%, #efeae8 100%);
    border-radius: var(--gi-radius);
    box-shadow: var(--gi-raise);
    padding: 1.4rem 1.5rem 1.5rem 1.7rem;
    overflow: hidden;
}
body.gi-skin .gi-redid::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
    background: var(--gi-red); border-radius: var(--gi-radius) 0 0 var(--gi-radius);
}
body.gi-skin .gi-redid h3 { color: var(--gi-red); font-size: 1.15rem; margin-bottom: .45rem; }
body.gi-skin .gi-redid p { color: var(--gi-muted); margin-bottom: 1.1rem; }
body.gi-skin .gi-redid .btn { width: 100%; padding: .7rem 1rem; }

/* -------------------------------------------------- icon-tile stat card */
/* screenshot 4: white rounded card, coloured icon square on the left,
   muted label over a big bold value */
body.gi-skin .gi-tile {
    display: flex; align-items: center; gap: 1rem;
    background: var(--gi-raised);
    border-radius: 22px;
    box-shadow: var(--gi-raise-sm);
    padding: 1.05rem 1.2rem;
    height: 100%;
    color: var(--gi-text);
    text-decoration: none;
}
a.gi-tile:hover { transform: translateY(-2px); }
body.gi-skin .gi-tile__icon {
    flex: 0 0 auto;
    width: 52px; height: 52px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    background: #e5e9f7; color: #3c4b8f;
}
body.gi-skin .gi-tile__icon--teal { background: #dcf1f6; color: #128aa8; }
body.gi-skin .gi-tile__icon--green { background: #dcf3e8; color: #17885b; }
body.gi-skin .gi-tile__icon--gold { background: #fdf0d5; color: #c58a12; }
body.gi-skin .gi-tile__icon--purple { background: #ebe5fb; color: #6a4ad8; }
body.gi-skin .gi-tile__icon--red { background: #fbe3e6; color: #d42f45; }
body.gi-skin .gi-tile__icon--blue { background: #e1ebfb; color: #2a62c9; }
body.gi-skin .gi-tile__label { color: var(--gi-muted); font-size: .9rem; margin: 0; }
body.gi-skin .gi-tile__value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; margin: 0; color: var(--gi-text); word-break: break-word; }
body.gi-skin .gi-tile__sub { font-size: .78rem; color: var(--gi-muted); }
body.gi-skin .gi-section-title {
    color: var(--gi-muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    font-size: .82rem; margin: 1.6rem 0 .8rem;
}
body.gi-skin .gi-h2 { font-size: 1.45rem; font-weight: 600; margin: 1.8rem 0 1rem; }

/* ------------------------------------------------------ hero / profile */
body.gi-skin .gi-hero {
    background: var(--gi-surface);
    border-radius: var(--gi-radius);
    box-shadow: var(--gi-raise);
    padding: 1.4rem;
    text-align: center;
}
body.gi-skin .gi-avatar {
    width: 112px; height: 112px; border-radius: 50%;
    margin: -.2rem auto .8rem; position: relative;
    background: var(--gi-surface); box-shadow: var(--gi-raise);
    display: flex; align-items: center; justify-content: center;
}
body.gi-skin .gi-avatar img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #dbeefa; }
body.gi-skin .gi-avatar__dot {
    position: absolute; right: 8px; bottom: 10px; width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid var(--gi-surface); background: var(--gi-red);
}
body.gi-skin .gi-avatar__dot--on { background: var(--gi-green); }

/* --------------------------------------------- "just withdrew" toaster */
.gi-toast {
    position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 140%);
    z-index: 1080; width: min(92vw, 420px);
    display: flex; align-items: center; gap: .8rem;
    background: rgba(241, 244, 248, .97); border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 42, 92, .18);
    padding: .85rem 1.1rem; font-family: var(--gi-font); color: var(--gi-text);
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .3s;
    opacity: 0; pointer-events: none;
}
.gi-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.gi-toast__emoji { font-size: 1.8rem; }
@media (min-width: 992px) { .gi-toast { left: auto; right: 28px; transform: translate(0, 140%); } .gi-toast.is-on { transform: translate(0, 0); } }

/* --------------------------------------------------------- app chrome */
body.gi-skin .navbar.navbar-vertical-aside,
body.gi-skin .navbar-vertical-aside .navbar-vertical-container,
body.gi-skin .navbar-vertical-aside .navbar-vertical-footer {
    background: var(--gi-surface) !important;
    border: 0 !important;
}
body.gi-skin .navbar.navbar-vertical-aside { box-shadow: 8px 0 24px rgba(163, 177, 198, .35) !important; }
body.gi-skin .navbar-vertical-aside .nav-link { color: var(--gi-text) !important; border-radius: 14px; font-family: var(--gi-font); }
body.gi-skin .navbar-vertical-aside .nav-link .nav-icon { color: var(--gi-muted) !important; }
body.gi-skin .navbar-vertical-aside .nav-link.active,
body.gi-skin .navbar-vertical-aside .nav-link:hover,
body.gi-skin .navbar-vertical-aside .nav-pills .nav-link.active,
body.gi-skin .navbar-vertical-aside .nav-pills .show > .nav-link {
    background: var(--gi-surface) !important;
    box-shadow: var(--gi-inset) !important;
    color: var(--gi-teal) !important;
}
body.gi-skin .navbar-vertical-aside .nav-link.active .nav-icon,
body.gi-skin .navbar-vertical-aside .nav-link:hover .nav-icon { color: var(--gi-teal) !important; }
body.gi-skin .navbar-vertical-aside .nav-subtitle { color: var(--gi-muted) !important; }
body.gi-skin #header.navbar,
body.gi-skin .navbar.navbar-height {
    background: var(--gi-bg) !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.gi-skin .footer { background: transparent; color: var(--gi-muted); }
/* mobile bottom bar */
body.gi-skin .gi-bottom-nav,
body.gi-skin .mobile-navbar,
body.gi-skin .navbar-mobile-bottom {
    background: var(--gi-surface) !important;
    box-shadow: 0 -8px 22px rgba(163, 177, 198, .35) !important;
    border: 0 !important;
}
body.gi-skin .page-header { border: 0; }
body.gi-skin .breadcrumb-item, body.gi-skin .breadcrumb-item a { color: var(--gi-muted); }

/* pagination */
body.gi-skin .page-link {
    border: 0 !important; margin: 0 3px; border-radius: 12px !important;
    background: var(--gi-surface); color: var(--gi-text); box-shadow: var(--gi-raise-sm);
}
body.gi-skin .page-item.active .page-link { background: var(--gi-grad); color: #fff; }

/* alerts */
body.gi-skin .alert { border: 0; border-radius: 18px; box-shadow: var(--gi-raise-sm); }

/* dropdowns */
body.gi-skin .dropdown-menu {
    background: var(--gi-raised); border: 0; border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 42, 92, .18);
}

/* --------------------------------------------------------- auth pages */
body.gi-skin.gi-auth { min-height: 100vh; }
body.gi-skin .gi-auth__wrap { max-width: 30rem; margin: 0 auto; padding: 2.2rem 16px 3rem; }
body.gi-skin .gi-auth__logo { display: block; margin: 0 auto 1.4rem; width: 170px; }
body.gi-skin .gi-auth__card { padding: 2rem 1.6rem; }
body.gi-skin .gi-auth__title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: .25rem; }
body.gi-skin .gi-auth__sub { text-align: center; color: var(--gi-muted); margin-bottom: 1.6rem; }
body.gi-skin .gi-auth .btn-lg { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 16px; }
body.gi-skin .gi-auth__foot { text-align: center; color: var(--gi-muted); font-size: .85rem; margin-top: 1.4rem; }

/* ------------------------------------------------------------- mobile */
@media (max-width: 575.98px) {
    body.gi-skin .content.container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
    body.gi-skin .card { border-radius: 22px !important; }
    body.gi-skin .gi-tile__value { font-size: 1.3rem; }
    body.gi-skin .table > :not(caption) > * > * { padding: .85rem .6rem; }
}

/* =====================================================================
   MEMBER APP SHELL  (body.gi-app - members only, never the admin)
   Owner 2026-10-01: "the user panel look should be like an android app
   with fixed footer menus". Fixed top app bar + fixed bottom nav on EVERY
   screen size, no vertical sidebar, content centred at ~1100px.
   ===================================================================== */
:root {
    --gi-appbar-h: 64px;
    --gi-nav-h: 68px;
    --gi-safe-top: env(safe-area-inset-top, 0px);
    --gi-safe-bottom: env(safe-area-inset-bottom, 0px);
}
body.gi-app { min-height: 100vh; padding: 0 !important; overflow-x: hidden; }
/* the sidebar stays in the DOM (init.js boots HSSideNav on it) but is never shown */
body.gi-app .navbar-vertical-aside,
body.gi-app .navbar-vertical-aside-mobile-overlay,
body.gi-app .js-navbar-vertical-aside { display: none !important; }
body.gi-app .main,
body.gi-app #content {
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-top: calc(var(--gi-appbar-h) + var(--gi-safe-top)) !important;
    padding-bottom: calc(var(--gi-nav-h) + 34px + var(--gi-safe-bottom)) !important;
    min-height: 100vh;
}
body.gi-app .content.container-fluid,
body.gi-app .gi-page {
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px 16px 8px !important;
}
body.gi-app .footer { display: none !important; }
/* the app bar shows the page title, so the in-page title + breadcrumb go */
body.gi-app .page-header-title,
body.gi-app .page-header .breadcrumb { display: none !important; }
body.gi-app .page-header { padding-bottom: 0 !important; margin-bottom: .5rem !important; }

/* ---------------------------------------------------------- top app bar */
.gi-appbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1035;
    padding-top: var(--gi-safe-top);
    background: rgba(232, 237, 242, .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 6px 18px rgba(163, 177, 198, .28);
    font-family: var(--gi-font);
}
.gi-appbar__inner {
    max-width: 1100px; height: var(--gi-appbar-h); margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; gap: .7rem;
}
.gi-appbar__btn {
    position: relative; flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gi-surface); box-shadow: var(--gi-raise-sm);
    color: var(--gi-text) !important; font-size: 1.15rem; text-decoration: none;
}
.gi-appbar__btn:active { box-shadow: var(--gi-inset); }
.gi-appbar__badge {
    position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--gi-red); color: #fff; font-size: .66rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--gi-bg);
}
.gi-appbar__brand { flex: 0 0 auto; display: inline-flex; }
.gi-appbar__brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: var(--gi-surface); box-shadow: var(--gi-raise-sm); padding: 3px; }
.gi-appbar__brand-txt {
    width: 40px; height: 40px; border-radius: 12px; background: var(--gi-grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.gi-appbar__title { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
.gi-appbar__title small { display: block; color: var(--gi-muted); font-size: .74rem; font-weight: 500; }
.gi-appbar__title span {
    display: block; color: var(--gi-text); font-weight: 700; font-size: 1.08rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gi-appbar__actions { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.gi-appbar__avatar {
    position: relative; width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gi-grad); color: #fff !important; font-weight: 700; text-decoration: none;
    box-shadow: var(--gi-raise-sm); border: 3px solid var(--gi-surface);
}
.gi-appbar__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gi-appbar__dot {
    position: absolute; right: -3px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--gi-red); border: 2px solid var(--gi-surface);
}
.gi-appbar__dot.is-on { background: #22c55e; }
.gi-appbar__menu { min-width: 230px; padding: .5rem; margin-top: .5rem !important; }
.gi-appbar__menu .dropdown-item { border-radius: 12px; padding: .6rem .8rem; font-weight: 500; }
.gi-appbar__menu-head { padding: .5rem .8rem .7rem; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.gi-appbar__menu-head strong { color: var(--gi-text); }

/* ------------------------------------------------------- bottom nav */
.gi-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: var(--gi-surface);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -10px 28px rgba(163, 177, 198, .45);
    padding-bottom: var(--gi-safe-bottom);
    font-family: var(--gi-font);
}
.gi-bottomnav__inner {
    max-width: 620px; height: var(--gi-nav-h); margin: 0 auto; padding: 0 6px;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
}
body.gi-skin .gi-bottomnav__item,
body.gi-skin .gi-bottomnav__fab {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--gi-muted); text-decoration: none; font-size: .72rem; font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}
body.gi-skin .gi-bottomnav__item i { font-size: 1.35rem; line-height: 1; transition: transform .2s; }
body.gi-skin .gi-bottomnav__item.is-active { color: var(--gi-teal); }
body.gi-skin .gi-bottomnav__item.is-active i { transform: translateY(-1px); }
body.gi-skin .gi-bottomnav__item.is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 4px; margin-left: -13px;
    border-radius: 0 0 6px 6px; background: var(--gi-grad);
}
body.gi-skin .gi-bottomnav__item:hover { color: var(--gi-teal); }
body.gi-skin .gi-bottomnav__fab { justify-content: flex-end; padding-bottom: 9px; }
.gi-bottomnav__fab-btn {
    position: absolute; top: -26px; left: 50%; margin-left: -31px;
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gi-grad); color: #fff; font-size: 1.6rem;
    box-shadow: 0 12px 24px rgba(91, 140, 240, .45), 0 0 0 7px var(--gi-surface);
    transition: transform .2s;
}
body.gi-skin .gi-bottomnav__fab:active .gi-bottomnav__fab-btn { transform: scale(.94); }
body.gi-skin .gi-bottomnav__fab.is-active { color: var(--gi-teal); }
body.gi-skin .gi-bottomnav__fab.is-alert { color: var(--gi-red); }
.gi-bottomnav__fab.is-alert .gi-bottomnav__fab-btn {
    background: var(--gi-grad-red);
    box-shadow: 0 12px 24px rgba(229, 57, 79, .4), 0 0 0 7px var(--gi-surface);
    animation: gi-pulse 2.2s infinite;
}
@keyframes gi-pulse {
    0%, 100% { box-shadow: 0 12px 24px rgba(229, 57, 79, .4), 0 0 0 7px var(--gi-surface), 0 0 0 7px rgba(229, 57, 79, .35); }
    50% { box-shadow: 0 12px 24px rgba(229, 57, 79, .4), 0 0 0 7px var(--gi-surface), 0 0 0 15px rgba(229, 57, 79, 0); }
}
@media (prefers-reduced-motion: reduce) { .gi-bottomnav__fab.is-alert .gi-bottomnav__fab-btn { animation: none; } }
.gi-bottomnav__label { white-space: nowrap; }
@media (min-width: 992px) {
    .gi-bottomnav { left: 50%; right: auto; width: 620px; margin-left: -310px; bottom: 14px; border-radius: 26px; box-shadow: 0 14px 34px rgba(15, 42, 92, .2); }
    body.gi-app .main, body.gi-app #content { padding-bottom: calc(var(--gi-nav-h) + 54px) !important; }
}

/* toast sits above the bottom nav */
body.gi-app .gi-toast { bottom: calc(var(--gi-nav-h) + 22px + var(--gi-safe-bottom)); }
@media (min-width: 992px) { body.gi-app .gi-toast { bottom: calc(var(--gi-nav-h) + 40px); } }
.gi-toast__text { font-size: .92rem; line-height: 1.35; }
.gi-toast__text strong { color: var(--gi-teal); }
.gi-toast__text .gi-toast__amt { color: var(--gi-green); }

/* =====================================================================
   MEMBER DASHBOARD
   ===================================================================== */
body.gi-skin .gi-dash { padding-bottom: .5rem; }
body.gi-skin .gi-card { padding: 1.3rem 1.35rem; }
body.gi-skin .gi-cap { display: inline-block; font-size: .78rem; }
body.gi-skin .gi-section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
    margin: 1.7rem 0 .85rem;
}
body.gi-skin .gi-section-head .gi-section-title { margin: 0; }
body.gi-skin .gi-section-meta { color: var(--gi-muted); font-size: .85rem; }
body.gi-skin .gi-section-meta strong { color: var(--gi-green); }
body.gi-skin .gi-chip {
    display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
    background: var(--gi-surface); box-shadow: var(--gi-inset); border-radius: 999px;
    padding: .3rem .75rem; font-weight: 700; font-size: .82rem; color: var(--gi-text);
}

/* skeleton shimmer for lazy placeholders */
body.gi-skin .gi-skeleton { position: relative; overflow: hidden; }
body.gi-skin .gi-skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: gi-shimmer 1.4s infinite; transform: translateX(-100%);
}
@keyframes gi-shimmer { to { transform: translateX(100%); } }

/* hero */
body.gi-skin .gi-hero { padding: 1.6rem 1.3rem 1.3rem; display: flex; flex-direction: column; justify-content: center; }
body.gi-skin .gi-avatar { width: 104px; height: 104px; margin: 0 auto .9rem; }
body.gi-skin .gi-avatar img { width: 84px; height: 84px; }
body.gi-skin .gi-avatar__initials {
    width: 84px; height: 84px; border-radius: 50%; background: var(--gi-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2.1rem; font-weight: 700;
}
body.gi-skin .gi-avatar__dot { right: 6px; bottom: 8px; }
body.gi-skin .gi-hero__name { font-size: 1.45rem; font-weight: 700; margin: 0 0 .3rem; }
body.gi-skin .gi-hero .gi-id { font-size: 1.05rem; }
body.gi-skin .gi-hero__meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
    background: var(--gi-surface); box-shadow: var(--gi-inset); border-radius: 18px; padding: .8rem .6rem;
}
body.gi-skin .gi-hero__meta > div { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; }
body.gi-skin .gi-hero__meta small { color: var(--gi-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
body.gi-skin .gi-hero__meta strong { font-size: .92rem; white-space: nowrap; }
body.gi-skin .gi-pkg { font-size: .74rem; padding: .2rem .5rem; white-space: nowrap; }
body.gi-skin .gi-pkg--none { background: var(--gi-red-soft); color: var(--gi-red); border-color: #f3c4cb; }
body.gi-skin .gi-pill--active { background: var(--gi-green-soft); padding-left: .8rem; }

/* red ID / cap card */
body.gi-skin .gi-redid h3 { font-weight: 700; }
body.gi-skin .gi-redid .btn { border-radius: 16px; font-size: 1rem; }
body.gi-skin .gi-redid--cap { background: linear-gradient(180deg, #f4efe6 0%, #f0ebe2 100%); }
body.gi-skin .gi-redid--cap::before { background: var(--gi-gold); }
body.gi-skin .gi-redid--cap h3 { color: #b7791f; }

/* earning cap */
body.gi-skin .gi-capcard__x {
    background: var(--gi-grad); color: #fff; border-radius: 12px; padding: .25rem .7rem;
    font-weight: 800; font-size: 1rem; box-shadow: 0 8px 18px rgba(91, 140, 240, .3);
}
body.gi-skin .gi-capcard__value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
body.gi-skin .gi-capcard__of { font-size: 1rem; font-weight: 600; color: var(--gi-muted); }
body.gi-skin .gi-progress {
    height: 14px; border-radius: 999px; background: var(--gi-surface); box-shadow: var(--gi-inset);
    overflow: hidden; padding: 3px;
}
body.gi-skin .gi-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--gi-grad); }
body.gi-skin .gi-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
body.gi-skin .gi-tier {
    border-radius: 14px; padding: .55rem .4rem; text-align: center; background: var(--gi-surface);
    box-shadow: var(--gi-raise-sm); display: flex; flex-direction: column; line-height: 1.2;
}
body.gi-skin .gi-tier strong { font-size: 1.05rem; color: var(--gi-muted); }
body.gi-skin .gi-tier small { font-size: .7rem; color: var(--gi-muted); }
body.gi-skin .gi-tier.is-on { box-shadow: var(--gi-inset); }
body.gi-skin .gi-tier.is-on strong { color: var(--gi-purple); }

/* quick actions */
body.gi-skin .gi-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1.25rem; }
body.gi-skin .gi-quick__item {
    display: flex; flex-direction: column; align-items: center; gap: .45rem; text-decoration: none;
    color: var(--gi-text); font-size: .8rem; font-weight: 600; text-align: center;
}
body.gi-skin .gi-quick__icon {
    width: 58px; height: 58px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; box-shadow: var(--gi-raise-sm);
}
body.gi-skin .gi-quick__item:active .gi-quick__icon { box-shadow: var(--gi-inset); }

/* tile grid */
body.gi-skin .gi-tiles { display: grid; grid-template-columns: 1fr; gap: .85rem; }
@media (min-width: 576px) { body.gi-skin .gi-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { body.gi-skin .gi-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { body.gi-skin .col-xl-7 .gi-tiles { grid-template-columns: repeat(2, 1fr); } }
body.gi-skin .gi-tile { background: var(--gi-white); box-shadow: 6px 6px 16px rgba(163, 177, 198, .45), -6px -6px 16px rgba(255, 255, 255, .9); }
body.gi-skin a.gi-tile { color: var(--gi-text); transition: transform .15s; }
body.gi-skin a.gi-tile:not([href]) { cursor: default; }
body.gi-skin .gi-tile__body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: .05rem; }
body.gi-skin .gi-tile__value { font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gi-skin .gi-tile__value .gi-id { font-size: 1.15rem; }
body.gi-skin .gi-tile__of { font-size: .95rem; color: var(--gi-muted); font-weight: 600; }
body.gi-skin .gi-tile__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gi-skin .gi-tile__chev { color: #b4bfcd; font-size: 1rem; flex: 0 0 auto; }

/* rank ladder */
body.gi-skin .gi-rank-col > div { height: 100%; }
@media (min-width: 1200px) { body.gi-skin .gi-rank-col { padding-top: calc(1.7rem + .85rem + 1.1rem); } }
@media (max-width: 1199.98px) { body.gi-skin .gi-rank-col { margin-top: 1.1rem; } }
body.gi-skin .gi-ranklist { list-style: none; margin: 0; padding: 0; }
body.gi-skin .gi-ranklist li {
    display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--gi-line);
}
body.gi-skin .gi-ranklist li:last-child { border-bottom: 0; }
body.gi-skin .gi-ranklist i { color: #b4bfcd; font-size: 1.05rem; }
body.gi-skin .gi-ranklist .is-done i { color: var(--gi-green); }
body.gi-skin .gi-ranklist .is-next i { color: var(--gi-purple); }
body.gi-skin .gi-ranklist .is-next .gi-ranklist__name { color: var(--gi-purple); }
body.gi-skin .gi-ranklist__name { flex: 1 1 auto; font-weight: 600; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
body.gi-skin .gi-ranklist__name small { color: var(--gi-muted); font-weight: 500; font-size: .74rem; }
body.gi-skin .gi-ranklist__reward { font-weight: 700; color: var(--gi-text); white-space: nowrap; }

/* analytics */
body.gi-skin .gi-chartcard { display: flex; flex-direction: column; gap: .9rem; }
body.gi-skin .gi-doughnut { position: relative; height: 210px; }
body.gi-skin .gi-doughnut__center {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
}
body.gi-skin .gi-doughnut__center small { color: var(--gi-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
body.gi-skin .gi-doughnut__center strong { font-size: 1.25rem; }
body.gi-skin .gi-barchart { position: relative; height: 270px; }
body.gi-skin .gi-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
body.gi-skin .gi-legend li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; }
body.gi-skin .gi-legend__dot { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 auto; }
body.gi-skin .gi-legend__label { flex: 1 1 auto; color: var(--gi-muted); }
body.gi-skin .gi-legend__value { font-weight: 700; }
body.gi-skin .gi-legend__pct { width: 3.4rem; text-align: right; color: var(--gi-muted); font-size: .8rem; }
body.gi-skin .gi-empty {
    flex: 1 1 auto; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--gi-muted); gap: .5rem; padding: 1rem;
    border-radius: 18px; box-shadow: var(--gi-inset);
}
body.gi-skin .gi-empty i { font-size: 2.2rem; opacity: .55; }
body.gi-skin .gi-empty p { margin: 0; max-width: 260px; font-size: .9rem; }

/* referral card */
body.gi-skin .gi-refcard { display: flex; flex-direction: column; gap: 1rem; }
body.gi-skin .gi-refcard__link { display: flex; flex-direction: column; gap: .75rem; }
body.gi-skin .gi-refcard__link .form-control { font-size: .88rem; padding: .75rem 1rem; }
body.gi-skin .gi-refcard__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
body.gi-skin .gi-refcard__btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem .5rem; }
@media (min-width: 992px) {
    body.gi-skin .gi-refcard { flex-direction: row; align-items: center; }
    body.gi-skin .gi-refcard__text { flex: 0 0 34%; }
    body.gi-skin .gi-refcard__link { flex: 1 1 auto; flex-direction: row; }
    body.gi-skin .gi-refcard__btns { flex: 0 0 auto; display: flex; }
}

/* news ticker */
body.gi-skin .gi-news {
    display: flex; align-items: center; gap: .75rem; overflow: hidden;
    background: var(--gi-surface); box-shadow: var(--gi-raise-sm); border-radius: 18px; padding: .55rem .7rem;
}
body.gi-skin .gi-news__tag {
    flex: 0 0 auto; background: #fff1d6; color: #b7791f; border-radius: 12px; padding: .3rem .6rem;
    font-weight: 700; font-size: .78rem;
}
body.gi-skin .gi-news__viewport {
    overflow: hidden; flex: 1 1 auto; min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
body.gi-skin .gi-news__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: gi-marquee 40s linear infinite; padding-left: 1rem; }
body.gi-skin .gi-news__track a { color: var(--gi-text); font-weight: 500; font-size: .9rem; }
body.gi-skin .gi-news:hover .gi-news__track { animation-play-state: paused; }
@keyframes gi-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 575.98px) {
    body.gi-skin .gi-card { padding: 1.15rem 1.1rem; }
    body.gi-skin .gi-capcard__value { font-size: 1.45rem; }
    body.gi-skin .gi-quick { gap: .5rem; }
    body.gi-skin .gi-quick__icon { width: 54px; height: 54px; }
    body.gi-skin .gi-tile { padding: .95rem 1rem; }
}

/* desktop refinements */
@media (min-width: 992px) {
    body.gi-skin .gi-tiles--4 { grid-template-columns: repeat(4, 1fr); }
    body.gi-skin .gi-tiles--4 .gi-tile { flex-direction: column; align-items: flex-start; gap: .75rem; position: relative; }
    body.gi-skin .gi-tiles--4 .gi-tile__chev { position: absolute; top: 1.1rem; right: 1.1rem; }
    body.gi-skin .gi-quick { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    body.gi-skin .gi-quick__item {
        flex-direction: row; justify-content: flex-start; gap: .8rem; padding: .75rem 1rem;
        background: var(--gi-surface); border-radius: 20px; box-shadow: var(--gi-raise-sm); font-size: .95rem;
    }
    body.gi-skin .gi-quick__icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; box-shadow: none; }
}
body.gi-skin .gi-capcard { display: flex; flex-direction: column; justify-content: center; }

/* top bar must stay on ONE line on narrow phones: long titles truncate, the avatar never wraps */
.gi-appbar__inner, .gi-appbar__actions { flex-wrap: nowrap !important; }
.gi-appbar__actions > * { flex: 0 0 auto; }
@media (max-width: 400px) {
    .gi-appbar__title span { font-size: .98rem; }
    .gi-appbar__actions { gap: .45rem; }
}

/* the PWA "Install app" banner floats above the bottom nav: give the page room so nothing hides under it */
body.gi-has-pwa-banner #content { padding-bottom: calc(var(--gi-nav-h, 68px) + 110px + env(safe-area-inset-bottom, 0px)) !important; }

/* =====================================================================
   QA 2026-10-01 - TAP TARGETS (member app shell only, body.gi-app).
   Android guideline: every control at least 40px tall / wide.
   ===================================================================== */
body.gi-app .btn,
body.gi-app .form-select,
body.gi-app select.form-control,
body.gi-app input.form-control:not([type=file]):not([type=hidden]) { min-height: 40px; }
body.gi-app .btn { display: inline-flex; align-items: center; justify-content: center; }
body.gi-app .btn.d-block, body.gi-app .btn.w-100, body.gi-app .d-grid > .btn { display: flex; }
body.gi-app .btn-xs, body.gi-app .btn-sm { min-width: 40px; }
body.gi-app .page-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
body.gi-app .list-group-item-action { min-height: 46px; display: flex; align-items: center; }
body.gi-app .accordion-button { min-height: 46px; }
body.gi-app .form-check-input { width: 1.3em; height: 1.3em; }
body.gi-app .ql-toolbar button { width: 40px !important; height: 40px !important; }
/* stand-alone text links (forgot password, view all, my rank) get a taller hit box */
body.gi-app a.gi-hint,
body.gi-app a[href*="transaction-password/forgot"],
body.gi-app a[href$="/app/my-rank"].small,
body.gi-app a[href*="/income/direct"]:not(.btn):not(.gi-tile) { display: inline-flex; align-items: center; min-height: 40px; }
/* PWA install banner (markup injected by gi-pwa.js) */
body.gi-app .gi-pwa-banner__go { min-height: 40px; }
body.gi-app .gi-pwa-banner__x { min-width: 40px !important; min-height: 40px !important; display: inline-flex !important; align-items: center; justify-content: center; }
body.gi-app .input-group-text { min-height: 40px; }
/* deposit > linked wallets: long 0x address wraps, the "Withdrawal wallet" pill never splits mid-word */
body.gi-app #giLinked li { flex-wrap: wrap; }
body.gi-app #giLinked code { flex: 1 1 0; min-width: 0; word-break: break-all; }
body.gi-app #giLinked .gi-pill { white-space: nowrap; flex: 0 0 auto; }
/* contrast: theme yellow / mint on the light grey canvas was ~2:1 - darken to readable tones */
body.gi-app .text-warning { color: #a86b0c !important; }
body.gi-app .text-success { color: #178a5b !important; }
/* profile / account side menu links (mlm/user/menu) */
body.gi-app #content .nav-item > .nav-link { min-height: 44px; display: flex; align-items: center; }
