/* =========================================================
   File: style.css
   Educational Wallet UI
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --app-blue: #0866df;
    --app-blue-dark: #0556c7;
    --app-blue-soft: #e8f1ff;

    --page-bg: #eef1f7;
    --surface: #ffffff;
    --surface-soft: #f7f8fb;

    --text: #111111;
    --text-soft: #62666d;
    --text-muted: #8a8f98;

    --border: #e7e9ee;

    --header-height: 96px;
    --bottom-nav-height: 94px;

    --page-max-width: 760px;

    --radius-xl: 28px;
    --radius-lg: 23px;
    --radius-md: 18px;

    --shadow-card:
        0 10px 30px rgba(21, 38, 66, 0.045);

    --shadow-floating:
        0 12px 30px rgba(25, 45, 78, 0.10);

    --transition: 180ms ease;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    background: var(--page-bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   PAGE
========================================================= */

.app-page {
    width: 100%;
}

.home-page {
    background: var(--page-bg);
}


/* =========================================================
   SMALL EDUCATIONAL WATERMARK
========================================================= */

.demo-watermark {
    position: fixed;

    z-index: 5000;

    right: 10px;
    bottom:
        calc(
            var(--bottom-nav-height) +
            env(safe-area-inset-bottom, 0px) +
            9px
        );

    padding: 5px 8px;

    border-radius: 999px;

    background: rgba(17, 17, 17, 0.74);

    color: #ffffff;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;

    pointer-events: none;
}


/* =========================================================
   FIXED HEADER
========================================================= */

.top-header {
    position: fixed;

    z-index: 1000;

    top: 0;
    right: 0;
    left: 0;

    height:
        calc(
            var(--header-height) +
            env(safe-area-inset-top, 0px)
        );

    background: rgba(238, 241, 247, 0.96);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.top-header-inner {
    display: flex;

    width: min(
        calc(100% - 36px),
        var(--page-max-width)
    );

    height: 100%;

    align-items: flex-end;
    justify-content: space-between;

    margin: 0 auto;

    padding:
        env(safe-area-inset-top, 0px)
        0
        14px;
}

.header-right-actions {
    display: flex;

    align-items: center;
    gap: 12px;
}


/* =========================================================
   HEADER ROUND BUTTONS
========================================================= */

.header-circle-button {
    position: relative;

    display: flex;

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.90);

    box-shadow:
        0 5px 18px rgba(32, 45, 68, 0.035);

    transition:
        transform var(--transition),
        background var(--transition);
}

.header-circle-button:hover {
    background: #ffffff;
}

.header-circle-button:active {
    transform: scale(0.95);
}

.header-circle-button > img {
    width: 27px;
    height: 27px;

    object-fit: contain;
}

.profile-button > img {
    width: 30px;
    height: 30px;

    object-fit: contain;
}

.notification-dot {
    position: absolute;

    top: 12px;
    right: 13px;

    width: 7px;
    height: 7px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: var(--app-blue);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.home-main {
    width: min(
        100%,
        var(--page-max-width)
    );

    margin: 0 auto;

    padding:
        calc(
            var(--header-height) +
            env(safe-area-inset-top, 0px) +
            16px
        )
        0
        calc(
            var(--bottom-nav-height) +
            env(safe-area-inset-bottom, 0px) +
            35px
        );
}


/* =========================================================
   WALLET CAROUSEL
========================================================= */

.wallet-carousel {
    display: flex;

    gap: 18px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        0
        28px
        6px;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.wallet-carousel::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   WALLET CARD BASE
========================================================= */

.home-wallet-card {
    position: relative;

    flex:
        0
        0
        calc(100% - 84px);

    min-width: 0;

    min-height: 432px;

    overflow: hidden;

    border-radius: 25px;

    scroll-snap-align: start;

    box-shadow: var(--shadow-card);
}


/* =========================================================
   BALANCE CARD
========================================================= */

.balance-wallet-card {
    display: grid;

    grid-template-rows:
        minmax(0, 1fr)
        145px;

    background: var(--surface);
}


/* Upper white area */

.balance-card-top {
    display: flex;

    min-height: 0;

    flex-direction: column;

    padding:
        28px
        27px
        24px;
}

.balance-title-row {
    display: flex;

    align-items: center;
    gap: 13px;
}

.balance-title-icon {
    display: flex;

    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    align-items: center;
    justify-content: center;
}

.balance-title-icon img {
    width: 44px;
    height: 44px;

    object-fit: contain;
}

.balance-title-row h1 {
    margin: 0;

    color: #161616;

    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.45px;
}

.main-balance {
    display: block;

    margin-top: auto;

    color: #000000;

    font-size: clamp(46px, 12vw, 58px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -2.5px;

    font-variant-numeric:
        tabular-nums;
}


/* =========================================================
   ADD MONEY BLUE AREA
========================================================= */

.add-money-panel {
    display: grid;

    grid-template-columns:
        76px
        minmax(0, 1fr)
        28px;

    align-items: center;
    gap: 16px;

    min-height: 145px;

    padding:
        20px
        23px;

    background:
        linear-gradient(
            110deg,
            #096be7,
            #075fd6
        );

    color: #ffffff;
}

.add-money-icon {
    display: flex;

    width: 76px;
    height: 76px;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.075);
}

.add-money-icon img {
    width: 45px;
    height: 45px;

    object-fit: contain;
}

.add-money-copy {
    min-width: 0;
}

.add-money-copy strong,
.add-money-copy small {
    display: block;
}

.add-money-copy strong {
    color: #ffffff;

    font-size: 25px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.6px;
}

.add-money-copy small {
    margin-top: 4px;

    overflow: hidden;

    color:
        rgba(255, 255, 255, 0.96);

    font-size: 19px;
    font-weight: 400;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-money-arrow {
    justify-self: end;

    color: #ffffff;

    font-size: 48px;
    font-weight: 200;
    line-height: 1;
}


/* =========================================================
   POOLS CARD
========================================================= */

.pools-wallet-card {
    flex-basis:
        calc(100% - 115px);

    background:
        linear-gradient(
            145deg,
            #0d75ef,
            #075fd9
        );

    color: #ffffff;
}

.pools-card-content {
    display: flex;

    height: 100%;

    flex-direction: column;

    padding: 28px 24px;
}

.pools-label {
    font-size: 17px;
    font-weight: 500;
}

.pools-card-content h2 {
    max-width: 250px;

    margin:
        22px
        0
        0;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.8px;
}

.pools-card-content p {
    max-width: 250px;

    margin:
        13px
        0
        0;

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 16px;
    line-height: 1.35;
}

.pool-avatars {
    display: flex;

    align-items: center;

    margin-top: auto;
}

.pool-avatars span {
    display: flex;

    width: 55px;
    height: 55px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    margin-left: -11px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #ffffff;
}

.pool-avatars span:first-child {
    margin-left: 0;
}

.pool-avatars img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   THIRD CARD
========================================================= */

.secondary-wallet-card {
    flex-basis:
        calc(100% - 115px);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f9fb
        );

    color: var(--text);
}

.secondary-card-content {
    display: flex;

    height: 100%;

    flex-direction: column;

    padding: 28px 24px;
}

.secondary-card-label {
    color: var(--text-soft);

    font-size: 15px;
}

.secondary-card-content h2 {
    max-width: 250px;

    margin:
        22px
        0
        0;

    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.secondary-card-content p {
    max-width: 250px;

    margin:
        12px
        0
        0;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.4;
}

.secondary-card-image {
    width: 88px;
    height: 88px;

    margin-top: auto;

    object-fit: contain;
}


/* =========================================================
   WALLET DOTS
========================================================= */

.wallet-dots {
    display: flex;

    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 28px;

    margin-top: 4px;
}

.wallet-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border-radius: 50%;

    background: #b9bec8;

    transition:
        width var(--transition),
        border-radius var(--transition),
        background var(--transition);
}

.wallet-dot.active {
    width: 20px;

    border-radius: 999px;

    background: var(--app-blue);
}


/* =========================================================
   RECENT ACTIVITY
========================================================= */

.recent-activity-card {
    display: flex;

    min-height: 115px;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin:
        13px
        28px
        0;

    padding:
        20px
        24px;

    border-radius: 22px;

    background: var(--surface);

    box-shadow: var(--shadow-card);
}

.recent-activity-copy span,
.recent-activity-copy strong {
    display: block;
}

.recent-activity-copy span {
    color: #666666;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.recent-activity-copy strong {
    margin-top: 6px;

    color: #111111;

    font-size: 27px;
    font-weight: 500;
}

.recent-activity-image {
    display: flex;

    width: 105px;
    height: 70px;

    align-items: center;
    justify-content: center;
}

.recent-activity-image img {
    width: 100%;
    max-height: 70px;

    object-fit: contain;
}


/* =========================================================
   REWARDS PROMO
========================================================= */

.rewards-promo-card {
    position: relative;

    display: grid;

    min-height: 345px;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(170px, 1.1fr);

    overflow: hidden;

    margin:
        42px
        28px
        0;

    border-radius: 24px;

    background:
        linear-gradient(
            120deg,
            #57c2eb,
            #55bee8
        );

    box-shadow: var(--shadow-card);
}

.rewards-promo-copy {
    position: relative;

    z-index: 2;

    display: flex;

    min-width: 0;

    flex-direction: column;

    padding:
        31px
        0
        29px
        28px;
}

.rewards-promo-copy h2 {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #050505;

    font-size: clamp(34px, 8.6vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.6px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.rewards-promo-copy p {
    max-width: 210px;

    margin:
        13px
        0
        0;

    overflow: hidden;

    color: #0a0a0a;

    font-size: 20px;
    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.rewards-learn-button {
    display: inline-flex;

    width: max-content;

    min-height: 53px;

    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding:
        11px
        26px;

    border-radius: 999px;

    background: #050505;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;
}

.rewards-promo-image {
    position: relative;

    min-width: 0;
    height: 100%;
}

.rewards-promo-image img {
    position: absolute;

    right: -10px;
    bottom: 0;

    width: 118%;
    max-width: none;
    height: 100%;

    object-fit: contain;
    object-position: right bottom;
}


/* =========================================================
   FOR YOU SECTION
========================================================= */

.for-you-section {
    margin:
        42px
        28px
        0;
}

.for-you-card {
    display: grid;

    min-height: 210px;

    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(190px, 0.82fr);

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow: var(--shadow-card);
}

.for-you-copy {
    padding:
        29px
        23px;
}

.for-you-title-row {
    display: flex;

    align-items: center;
    gap: 15px;
}

.for-you-icon {
    display: flex;

    width: 68px;
    height: 68px;

    flex: 0 0 68px;

    align-items: center;
    justify-content: center;

    border: 1px solid #e3e3e3;
    border-radius: 50%;

    background: #ffffff;
}

.for-you-icon img {
    width: 43px;
    height: 43px;

    object-fit: contain;
}

.for-you-title-row h2 {
    margin: 0;

    color: #111111;

    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.for-you-copy p {
    max-width: 270px;

    margin:
        18px
        0
        0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.5;
}

.for-you-link {
    display: inline-flex;

    margin-top: 15px;

    color: var(--app-blue);

    font-size: 14px;
    font-weight: 700;
}

.for-you-image {
    position: relative;

    min-width: 0;
    min-height: 210px;

    overflow: hidden;

    background: #dde8f8;
}

.for-you-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.ad-badge {
    position: absolute;

    top: 14px;
    right: 13px;

    padding:
        4px
        7px;

    border-radius: 5px;

    background: rgba(255, 255, 255, 0.88);

    color: #171717;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions-section {
    margin:
        38px
        28px
        0;
}

.home-section-heading {
    margin-bottom: 17px;
}

.home-section-heading h2 {
    margin: 0;

    color: #151515;

    font-size: 23px;
    font-weight: 700;
}

.quick-actions-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.quick-action-card {
    display: flex;

    min-width: 0;

    align-items: center;
    flex-direction: column;
    gap: 9px;

    padding:
        15px
        5px;

    border-radius: 17px;

    background: #ffffff;

    box-shadow: var(--shadow-card);

    text-align: center;
}

.quick-action-icon {
    display: flex;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;
}

.quick-action-icon img {
    width: 38px;
    height: 38px;

    object-fit: contain;
}

.quick-action-card strong {
    overflow: hidden;

    color: #383838;

    font-size: 11px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   BOTTOM SPACER
========================================================= */

.bottom-navigation-spacer {
    height: 30px;
}


/* =========================================================
   FIXED BOTTOM NAVIGATION
========================================================= */

.bottom-navigation {
    position: fixed;

    z-index: 1100;

    right: 0;
    bottom: 0;
    left: 0;

    display: grid;

    height:
        calc(
            var(--bottom-nav-height) +
            env(safe-area-inset-bottom, 0px)
        );

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    align-items: start;

    padding:
        10px
        max(9px, env(safe-area-inset-left, 0px))
        env(safe-area-inset-bottom, 0px)
        max(9px, env(safe-area-inset-right, 0px));

    border-top:
        1px solid rgba(0, 0, 0, 0.05);

    background: rgba(255, 255, 255, 0.985);

    box-shadow:
        0 -7px 26px rgba(29, 39, 58, 0.05);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* Bottom item */

.bottom-navigation-item {
    display: flex;

    min-width: 0;

    align-items: center;
    flex-direction: column;
    gap: 6px;

    color: #626262;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;

    text-align: center;
}

.bottom-navigation-item > span:last-child {
    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-navigation-item.active {
    color: #111111;

    font-weight: 800;
}

.bottom-navigation-icon {
    display: flex;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;
}

.bottom-navigation-icon img {
    width: 35px;
    height: 35px;

    object-fit: contain;

    opacity: 0.68;
}

.bottom-navigation-item.active
.bottom-navigation-icon img {
    opacity: 1;
}


/* =========================================================
   CENTRAL SEND / REQUEST NAVIGATION
========================================================= */

.send-request-navigation {
    position: relative;

    margin-top: -1px;
}

.send-request-circle {
    display: flex;

    width: 60px;
    height: 60px;

    align-items: center;
    justify-content: center;

    margin-top: -8px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #0b71ee,
            #0963df
        );

    box-shadow:
        0 8px 18px rgba(9, 102, 225, 0.25);
}

.send-request-circle img {
    width: 39px;
    height: 39px;

    object-fit: contain;
}

.send-request-navigation > span:last-child {
    margin-top: -1px;

    font-size: 9px;
    font-weight: 500;
}


/* =========================================================
   SIDE MENU BACKDROP
========================================================= */

.menu-backdrop {
    position: fixed;

    z-index: 2000;

    inset: 0;

    background:
        rgba(14, 24, 38, 0.35);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* =========================================================
   SIDE MENU
========================================================= */

.side-menu {
    position: fixed;

    z-index: 2100;

    top: 0;
    bottom: 0;
    left: 0;

    width: min(82vw, 340px);

    padding:
        calc(
            22px +
            env(safe-area-inset-top, 0px)
        )
        19px
        calc(
            22px +
            env(safe-area-inset-bottom, 0px)
        );

    overflow-y: auto;

    background: #ffffff;

    box-shadow:
        18px 0 45px rgba(21, 34, 54, 0.13);

    transform: translateX(-105%);

    transition:
        transform 280ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.side-menu.is-open {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 22px;

    border-bottom:
        1px solid var(--border);
}

.side-menu-brand {
    display: flex;

    min-width: 0;

    align-items: center;
    gap: 12px;
}

.side-menu-brand img {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border-radius: 13px;

    object-fit: contain;
}

.side-menu-brand span,
.side-menu-brand strong {
    display: block;
}

.side-menu-brand span {
    color: var(--text-muted);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.side-menu-brand strong {
    margin-top: 3px;

    font-size: 20px;
    font-weight: 800;
}

.close-menu-button {
    display: flex;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--surface-soft);

    color: #343434;

    font-size: 26px;
    font-weight: 300;
}


/* =========================================================
   SIDE MENU LINKS
========================================================= */

.side-menu-navigation {
    display: flex;

    flex-direction: column;
    gap: 7px;

    margin-top: 21px;
}

.side-menu-link {
    display: grid;

    min-height: 56px;

    grid-template-columns:
        39px
        minmax(0, 1fr);

    align-items: center;
    gap: 12px;

    padding:
        8px
        12px;

    border-radius: 15px;

    color: #4b4b4b;

    font-size: 14px;
    font-weight: 600;
}

.side-menu-link img {
    width: 29px;
    height: 29px;

    object-fit: contain;

    opacity: 0.73;
}

.side-menu-link.active {
    background: var(--app-blue-soft);

    color: var(--app-blue);
}

.side-menu-link.active img {
    opacity: 1;
}


/* =========================================================
   TOAST
========================================================= */

.app-toast {
    position: fixed;

    z-index: 4000;

    right: 16px;
    bottom:
        calc(
            var(--bottom-nav-height) +
            env(safe-area-inset-bottom, 0px) +
            16px
        );

    width:
        min(
            360px,
            calc(100% - 32px)
        );

    padding:
        13px
        15px;

    border-radius: 14px;

    background:
        rgba(15, 20, 28, 0.94);

    color: #ffffff;

    box-shadow:
        0 18px 35px rgba(14, 22, 35, 0.22);

    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;

    opacity: 0;

    transform: translateY(12px);

    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.app-toast.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   DESKTOP / LARGE TABLET
========================================================= */

@media (min-width: 760px) {

    .top-header-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .wallet-carousel {
        padding-right: 28px;
        padding-left: 28px;
    }

    .home-wallet-card {
        flex-basis: 560px;
    }

    .pools-wallet-card,
    .secondary-wallet-card {
        flex-basis: 430px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    :root {
        --header-height: 89px;
        --bottom-nav-height: 88px;
    }


    /* Header */

    .top-header-inner {
        width: calc(100% - 28px);

        padding-bottom: 11px;
    }

    .header-circle-button {
        width: 52px;
        height: 52px;

        flex-basis: 52px;
    }

    .header-circle-button > img {
        width: 25px;
        height: 25px;
    }

    .profile-button > img {
        width: 27px;
        height: 27px;
    }


    /* Carousel */

    .wallet-carousel {
        gap: 15px;

        padding-right: 19px;
        padding-left: 19px;
    }

    .home-wallet-card {
        flex-basis:
            calc(100% - 63px);

        min-height: 390px;

        border-radius: 21px;
    }


    /* Balance card */

    .balance-wallet-card {
        grid-template-rows:
            minmax(0, 1fr)
            132px;
    }

    .balance-card-top {
        padding:
            24px
            23px
            20px;
    }

    .balance-title-row {
        gap: 10px;
    }

    .balance-title-icon {
        width: 39px;
        height: 39px;

        flex-basis: 39px;
    }

    .balance-title-icon img {
        width: 39px;
        height: 39px;
    }

    .balance-title-row h1 {
        font-size: 20px;
    }

    .main-balance {
        font-size: clamp(42px, 13.7vw, 52px);
    }


    /* Add money */

    .add-money-panel {
        min-height: 132px;

        grid-template-columns:
            65px
            minmax(0, 1fr)
            23px;

        gap: 13px;

        padding:
            17px
            19px;
    }

    .add-money-icon {
        width: 65px;
        height: 65px;
    }

    .add-money-icon img {
        width: 39px;
        height: 39px;
    }

    .add-money-copy strong {
        font-size: 21px;
    }

    .add-money-copy small {
        font-size: 15px;
    }

    .add-money-arrow {
        font-size: 39px;
    }


    /* Second cards */

    .pools-wallet-card,
    .secondary-wallet-card {
        flex-basis:
            calc(100% - 94px);
    }


    /* Recent */

    .recent-activity-card {
        min-height: 100px;

        margin:
            10px
            19px
            0;

        padding:
            18px
            20px;

        border-radius: 19px;
    }

    .recent-activity-copy span {
        font-size: 17px;
    }

    .recent-activity-copy strong {
        font-size: 24px;
    }

    .recent-activity-image {
        width: 91px;
        height: 62px;
    }


    /* Reward banner */

    .rewards-promo-card {
        min-height: 300px;

        grid-template-columns:
            minmax(0, 0.93fr)
            minmax(150px, 1.07fr);

        margin:
            34px
            19px
            0;

        border-radius: 21px;
    }

    .rewards-promo-copy {
        padding:
            27px
            0
            24px
            22px;
    }

    .rewards-promo-copy h2 {
        font-size:
            clamp(
                30px,
                9.6vw,
                39px
            );

        letter-spacing: -1.3px;
    }

    .rewards-promo-copy p {
        margin-top: 11px;

        font-size: 16px;
    }

    .rewards-learn-button {
        min-height: 48px;

        padding:
            10px
            23px;

        font-size: 15px;
    }

    .rewards-promo-image img {
        right: -8px;

        width: 128%;
    }


    /* For you */

    .for-you-section {
        margin:
            34px
            19px
            0;
    }

    .for-you-card {
        min-height: 185px;

        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(140px, 0.9fr);

        border-radius: 21px;
    }

    .for-you-copy {
        padding:
            23px
            17px;
    }

    .for-you-title-row {
        gap: 11px;
    }

    .for-you-icon {
        width: 57px;
        height: 57px;

        flex-basis: 57px;
    }

    .for-you-icon img {
        width: 36px;
        height: 36px;
    }

    .for-you-title-row h2 {
        font-size: 21px;
    }

    .for-you-copy p {
        margin-top: 13px;

        font-size: 11px;
    }

    .for-you-link {
        margin-top: 11px;

        font-size: 12px;
    }


    /* Quick actions */

    .quick-actions-section {
        margin:
            32px
            19px
            0;
    }

    .home-section-heading h2 {
        font-size: 20px;
    }

    .quick-actions-grid {
        gap: 8px;
    }

    .quick-action-card {
        padding:
            13px
            3px;
    }

    .quick-action-icon {
        width: 39px;
        height: 39px;
    }

    .quick-action-icon img {
        width: 33px;
        height: 33px;
    }

    .quick-action-card strong {
        font-size: 9px;
    }


    /* Bottom navigation */

    .bottom-navigation {
        padding-top: 9px;
    }

    .bottom-navigation-item {
        gap: 4px;

        font-size: 9px;
    }

    .bottom-navigation-icon {
        width: 38px;
        height: 38px;
    }

    .bottom-navigation-icon img {
        width: 31px;
        height: 31px;
    }

    .send-request-circle {
        width: 56px;
        height: 56px;

        margin-top: -6px;
    }

    .send-request-circle img {
        width: 35px;
        height: 35px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 365px) {

    .wallet-carousel {
        padding-right: 14px;
        padding-left: 14px;
    }

    .home-wallet-card {
        flex-basis:
            calc(100% - 48px);
    }

    .recent-activity-card,
    .rewards-promo-card,
    .for-you-section,
    .quick-actions-section {
        margin-right: 14px;
        margin-left: 14px;
    }

    .add-money-copy strong {
        font-size: 19px;
    }

    .add-money-copy small {
        font-size: 13px;
    }

    .rewards-promo-card {
        grid-template-columns:
            minmax(0, 1fr)
            135px;
    }

    .rewards-promo-copy h2 {
        font-size: 29px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
/* =========================================================
   FINAL SHARED UI CORRECTION
   Paste at the VERY BOTTOM of style.css
========================================================= */


/* =========================================================
   GLOBAL TYPOGRAPHY
========================================================= */

body,
button,
input,
textarea,
select {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body {
    font-weight: 400;
    letter-spacing: -0.1px;
}


/* =========================================================
   PAGE BACKGROUND
========================================================= */

html,
body {
    background: #eef1f7;
}

body {
    overflow-x: hidden;
}


/* =========================================================
   FORCE HEADER TO REMAIN FIXED
========================================================= */

.top-header {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    left: 0 !important;

    z-index: 1500 !important;

    width: 100% !important;

    transform: translateZ(0);

    background:
        rgba(
            238,
            241,
            247,
            0.98
        ) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   HEADER CONTENT SIZE
========================================================= */

.top-header-inner {
    width:
        min(
            calc(100% - 30px),
            704px
        ) !important;

    margin:
        0
        auto !important;
}

.header-right-actions {
    flex: 0 0 auto;

    gap: 11px !important;
}


/* =========================================================
   HEADER BUTTONS
========================================================= */

.header-circle-button {
    width: 54px !important;
    height: 54px !important;

    flex: 0 0 54px !important;

    padding: 0 !important;

    overflow: hidden;

    border-radius: 50% !important;

    background: #ffffff !important;

    box-shadow:
        0 5px 17px
        rgba(
            35,
            49,
            75,
            0.045
        ) !important;
}

.header-circle-button img {
    display: block;

    width: 27px !important;
    height: 27px !important;

    margin: auto;

    object-fit: contain !important;
    object-position: center !important;
}

.profile-button img {
    width: 30px !important;
    height: 30px !important;
}


/* =========================================================
   NOTIFICATION DOT
========================================================= */

.notification-dot {
    top: 11px !important;
    right: 11px !important;

    width: 8px !important;
    height: 8px !important;

    border:
        2px solid
        #ffffff !important;

    background:
        #0866df !important;
}


/* =========================================================
   HOMEPAGE MAIN WIDTH
========================================================= */

.home-main {
    width:
        min(
            100%,
            760px
        ) !important;

    margin:
        0
        auto !important;
}


/* =========================================================
   WALLET CAROUSEL
========================================================= */

.wallet-carousel {
    display: flex !important;

    width: 100% !important;

    align-items: stretch;

    gap: 15px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding:
        0
        19px
        5px !important;

    scroll-snap-type:
        x mandatory;

    scrollbar-width: none;

    -webkit-overflow-scrolling:
        touch;
}

.wallet-carousel::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   WALLET CARDS
========================================================= */

.home-wallet-card {
    position: relative;

    flex:
        0
        0
        calc(100% - 63px) !important;

    min-width: 0 !important;

    height: 390px !important;
    min-height: 390px !important;

    overflow: hidden !important;

    border-radius: 21px !important;

    scroll-snap-align: start;

    box-shadow:
        0 9px 27px
        rgba(
            23,
            41,
            67,
            0.045
        ) !important;
}


/* =========================================================
   BALANCE CARD
========================================================= */

.balance-wallet-card {
    display: grid !important;

    grid-template-rows:
        minmax(0, 1fr)
        132px !important;

    background:
        #ffffff !important;
}

.balance-card-top {
    display: flex;

    flex-direction: column;

    min-height: 0;

    padding:
        24px
        23px
        20px !important;
}


/* Balance icon */

.balance-title-icon {
    width: 39px !important;
    height: 39px !important;

    flex:
        0
        0
        39px !important;
}

.balance-title-icon img {
    width: 39px !important;
    height: 39px !important;

    object-fit:
        contain !important;
}


/* Balance title */

.balance-title-row {
    align-items: center !important;

    gap: 10px !important;
}

.balance-title-row h1 {
    margin: 0 !important;

    color: #171717 !important;

    font-size: 20px !important;
    font-weight: 500 !important;

    line-height: 1.2 !important;

    letter-spacing:
        -0.45px !important;
}


/* Balance number */

.main-balance {
    margin-top: auto !important;

    margin-bottom: 0 !important;

    color: #000000 !important;

    font-size:
        clamp(
            43px,
            13vw,
            53px
        ) !important;

    font-weight: 800 !important;

    line-height: 0.95 !important;

    letter-spacing:
        -2.4px !important;

    font-variant-numeric:
        tabular-nums;
}


/* =========================================================
   BLUE ADD MONEY AREA
========================================================= */

.add-money-panel {
    display: grid !important;

    min-height: 132px !important;

    grid-template-columns:
        65px
        minmax(0, 1fr)
        23px !important;

    align-items:
        center !important;

    gap:
        13px !important;

    padding:
        17px
        19px !important;

    background:
        #0866df !important;

    color:
        #ffffff !important;
}

.add-money-icon {
    width: 65px !important;
    height: 65px !important;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius:
        14px !important;
}

.add-money-icon img {
    width: 39px !important;
    height: 39px !important;

    object-fit:
        contain !important;
}

.add-money-copy {
    min-width: 0;
}

.add-money-copy strong {
    display: block;

    font-size:
        21px !important;

    font-weight:
        800 !important;

    line-height:
        1.15 !important;

    letter-spacing:
        -0.5px !important;
}

.add-money-copy small {
    display: block;

    margin-top:
        4px !important;

    overflow: hidden;

    color:
        rgba(
            255,
            255,
            255,
            0.94
        ) !important;

    font-size:
        15px !important;

    font-weight:
        400 !important;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.add-money-arrow {
    align-self:
        center;

    font-size:
        39px !important;

    font-weight:
        200 !important;
}


/* =========================================================
   SECOND / THIRD WALLET CARDS
========================================================= */

.pools-wallet-card,
.secondary-wallet-card {
    flex-basis:
        calc(100% - 94px) !important;
}

.pools-card-content,
.secondary-card-content {
    height: 100%;

    padding:
        25px
        21px !important;
}


/* =========================================================
   CAROUSEL DOTS
========================================================= */

.wallet-dots {
    display: flex !important;

    min-height:
        27px;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    margin-top:
        5px !important;
}

.wallet-dot {
    width:
        7px !important;

    height:
        7px !important;

    min-width:
        7px;

    padding:
        0 !important;

    border-radius:
        50%;

    background:
        #b8bec8;
}

.wallet-dot.active {
    width:
        20px !important;

    border-radius:
        999px;

    background:
        #0866df !important;
}


/* =========================================================
   RECENT ACTIVITY
========================================================= */

.recent-activity-card {
    display: flex !important;

    min-height:
        100px !important;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;

    margin:
        10px
        19px
        0 !important;

    padding:
        18px
        20px !important;

    border-radius:
        19px !important;

    background:
        #ffffff !important;

    box-shadow:
        0 8px 24px
        rgba(
            25,
            42,
            69,
            0.045
        ) !important;
}

.recent-activity-copy span {
    color:
        #626262 !important;

    font-size:
        17px !important;

    font-weight:
        600 !important;
}

.recent-activity-copy strong {
    margin-top:
        6px !important;

    font-size:
        24px !important;

    font-weight:
        500 !important;
}

.recent-activity-image {
    width:
        91px !important;

    height:
        62px !important;
}

.recent-activity-image img {
    width:
        100% !important;

    height:
        100% !important;

    object-fit:
        contain !important;
}


/* =========================================================
   REWARDS HERO
========================================================= */

.rewards-promo-card {
    display: grid !important;

    min-height:
        300px !important;

    grid-template-columns:
        minmax(0, 0.93fr)
        minmax(150px, 1.07fr) !important;

    overflow:
        hidden !important;

    margin:
        34px
        19px
        0 !important;

    border-radius:
        21px !important;

    background:
        #58c2ea !important;

    box-shadow:
        0 9px 27px
        rgba(
            23,
            41,
            67,
            0.045
        ) !important;
}

.rewards-promo-copy {
    position:
        relative;

    z-index:
        2;

    padding:
        27px
        0
        24px
        22px !important;
}

.rewards-promo-copy h2 {
    margin:
        0 !important;

    color:
        #050505 !important;

    font-size:
        clamp(
            30px,
            9.6vw,
            39px
        ) !important;

    font-weight:
        800 !important;

    line-height:
        1.12 !important;

    letter-spacing:
        -1.3px !important;
}

.rewards-promo-copy p {
    margin-top:
        11px !important;

    color:
        #101010 !important;

    font-size:
        16px !important;

    line-height:
        1.3 !important;
}

.rewards-learn-button {
    min-height:
        48px !important;

    margin-top:
        auto;

    padding:
        10px
        23px !important;

    border-radius:
        999px !important;

    background:
        #050505 !important;

    color:
        #ffffff !important;

    font-size:
        15px !important;

    font-weight:
        800 !important;
}

.rewards-promo-image {
    position:
        relative;

    min-width:
        0;

    overflow:
        hidden;
}

.rewards-promo-image img {
    position:
        absolute;

    right:
        -8px !important;

    bottom:
        0 !important;

    width:
        128% !important;

    max-width:
        none !important;

    height:
        100% !important;

    object-fit:
        contain !important;

    object-position:
        right bottom !important;
}


/* =========================================================
   FOR YOU
========================================================= */

.for-you-section {
    margin:
        34px
        19px
        0 !important;
}

.for-you-card {
    display:
        grid !important;

    min-height:
        185px !important;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(140px, 0.9fr) !important;

    overflow:
        hidden;

    border-radius:
        21px !important;

    background:
        #ffffff !important;

    box-shadow:
        0 8px 24px
        rgba(
            25,
            42,
            69,
            0.045
        ) !important;
}

.for-you-copy {
    padding:
        23px
        17px !important;
}

.for-you-title-row {
    gap:
        11px !important;
}

.for-you-icon {
    width:
        57px !important;

    height:
        57px !important;

    flex:
        0
        0
        57px !important;
}

.for-you-icon img {
    width:
        36px !important;

    height:
        36px !important;

    object-fit:
        contain !important;
}

.for-you-title-row h2 {
    font-size:
        21px !important;

    font-weight:
        500 !important;
}

.for-you-image {
    min-height:
        185px !important;

    overflow:
        hidden;
}

.for-you-image img {
    width:
        100% !important;

    height:
        100% !important;

    object-fit:
        cover !important;

    object-position:
        center !important;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions-section {
    margin:
        32px
        19px
        0 !important;
}

.quick-actions-grid {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        ) !important;

    gap:
        8px !important;
}

.quick-action-card {
    min-height:
        91px;

    justify-content:
        center;

    padding:
        13px
        3px !important;

    border-radius:
        17px !important;

    background:
        #ffffff !important;
}

.quick-action-icon {
    width:
        39px !important;

    height:
        39px !important;
}

.quick-action-icon img {
    width:
        33px !important;

    height:
        33px !important;

    object-fit:
        contain !important;
}

.quick-action-card strong {
    max-width:
        100%;

    font-size:
        9px !important;

    line-height:
        1.2;
}


/* =========================================================
   FORCE BOTTOM NAVIGATION FIXED
========================================================= */

.bottom-navigation {
    position:
        fixed !important;

    z-index:
        1600 !important;

    right:
        0 !important;

    bottom:
        0 !important;

    left:
        0 !important;

    width:
        100% !important;

    height:
        calc(
            88px +
            env(
                safe-area-inset-bottom,
                0px
            )
        ) !important;

    display:
        grid !important;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        ) !important;

    align-items:
        start !important;

    padding:
        9px
        max(
            8px,
            env(
                safe-area-inset-left,
                0px
            )
        )
        env(
            safe-area-inset-bottom,
            0px
        )
        max(
            8px,
            env(
                safe-area-inset-right,
                0px
            )
        ) !important;

    border-top:
        1px solid
        rgba(
            0,
            0,
            0,
            0.05
        ) !important;

    background:
        rgba(
            255,
            255,
            255,
            0.99
        ) !important;

    box-shadow:
        0
        -7px
        25px
        rgba(
            29,
            39,
            58,
            0.05
        ) !important;

    transform:
        translateZ(0);
}


/* =========================================================
   NAV ITEM
========================================================= */

.bottom-navigation-item {
    display:
        flex !important;

    min-width:
        0;

    align-items:
        center !important;

    justify-content:
        flex-start;

    flex-direction:
        column !important;

    gap:
        4px !important;

    color:
        #626262 !important;

    font-size:
        9px !important;

    font-weight:
        500 !important;

    line-height:
        1.1 !important;

    text-align:
        center;
}

.bottom-navigation-item.active {
    color:
        #111111 !important;

    font-weight:
        800 !important;
}

.bottom-navigation-icon {
    display:
        flex;

    width:
        38px !important;

    height:
        38px !important;

    align-items:
        center;

    justify-content:
        center;
}

.bottom-navigation-icon img {
    width:
        31px !important;

    height:
        31px !important;

    object-fit:
        contain !important;

    opacity:
        0.68;
}

.bottom-navigation-item.active
.bottom-navigation-icon img {
    opacity:
        1 !important;
}


/* =========================================================
   SEND / REQUEST CENTER BUTTON
========================================================= */

.send-request-navigation {
    margin-top:
        0 !important;
}

.send-request-circle {
    display:
        flex !important;

    width:
        56px !important;

    height:
        56px !important;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        -6px !important;

    border-radius:
        50% !important;

    background:
        #0866df !important;

    box-shadow:
        0 8px 18px
        rgba(
            8,
            102,
            223,
            0.24
        ) !important;
}

.send-request-circle img {
    width:
        35px !important;

    height:
        35px !important;

    object-fit:
        contain !important;
}

.send-request-navigation
> span:last-child {
    margin-top:
        -1px !important;

    font-size:
        9px !important;
}


/* =========================================================
   GENERAL IMAGE FITTING
========================================================= */

.account-row-icon img,
.linked-method-icon img,
.activity-item-icon img,
.notification-row-icon img,
.profile-detail-icon img,
.profile-setting-icon img,
.menu-grid-icon img,
.menu-link-icon img,
.reward-status-icon img,
.transfer-card-icon img,
.form-control-icon img {
    display:
        block;

    max-width:
        100%;

    object-fit:
        contain !important;

    object-position:
        center !important;
}


/* =========================================================
   PROFILE PHOTOS
========================================================= */

.contact-avatar img,
.menu-profile-avatar img,
.profile-large-avatar img,
.login-profile-preview img,
.pool-avatars img {
    width:
        100% !important;

    height:
        100% !important;

    object-fit:
        cover !important;

    object-position:
        center !important;
}


/* =========================================================
   COMMON PAGE MAIN WIDTH
========================================================= */

.accounts-main,
.transfer-main,
.activity-main,
.offers-main,
.notifications-main,
.profile-main-page,
.menu-page-main,
.continue-main {
    width:
        min(
            calc(100% - 28px),
            704px
        ) !important;

    margin:
        0
        auto !important;
}


/* =========================================================
   COMMON CARDS
========================================================= */

.account-list,
.activity-list,
.notification-list,
.profile-details-card,
.profile-settings-card,
.menu-links-card,
.transfer-card,
.reward-status-card {
    border:
        0 !important;

    background:
        #ffffff !important;

    box-shadow:
        0 8px 24px
        rgba(
            25,
            42,
            69,
            0.045
        ) !important;
}


/* =========================================================
   COMMON TITLES
========================================================= */

.accounts-heading-copy h1,
.transfer-heading h1,
.activity-heading h1,
.offers-heading h1,
.notifications-heading-copy h1,
.menu-page-heading h1 {
    color:
        #111111 !important;

    font-weight:
        800 !important;

    letter-spacing:
        -0.9px !important;
}


/* =========================================================
   MOBILE FINAL OVERRIDES
========================================================= */

@media (max-width: 600px) {

    .top-header-inner {
        width:
            calc(
                100% - 28px
            ) !important;
    }

    .home-main {
        padding-top:
            calc(
                89px +
                env(
                    safe-area-inset-top,
                    0px
                ) +
                14px
            ) !important;
    }

    .accounts-main,
    .transfer-main,
    .activity-main,
    .offers-main,
    .notifications-main,
    .profile-main-page,
    .menu-page-main,
    .continue-main {
        padding-top:
            calc(
                89px +
                env(
                    safe-area-inset-top,
                    0px
                ) +
                14px
            ) !important;

        padding-bottom:
            calc(
                88px +
                env(
                    safe-area-inset-bottom,
                    0px
                ) +
                35px
            ) !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 365px) {

    .wallet-carousel {
        padding-right:
            14px !important;

        padding-left:
            14px !important;
    }

    .home-wallet-card {
        flex-basis:
            calc(
                100% - 48px
            ) !important;
    }

    .recent-activity-card,
    .rewards-promo-card {
        margin-right:
            14px !important;

        margin-left:
            14px !important;
    }

    .for-you-section,
    .quick-actions-section {
        margin-right:
            14px !important;

        margin-left:
            14px !important;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline:
        3px solid
        rgba(
            8,
            102,
            223,
            0.25
        );

    outline-offset:
        3px;
}


/* =========================================================
   REMOVE TAP FLASH
========================================================= */

a,
button {
    -webkit-tap-highlight-color:
        transparent;
}
/* =========================================================
   FINAL HEADER + HOMEPAGE IMAGE SIZE FIX
   Keep this at the VERY BOTTOM of style.css
========================================================= */


/* =========================
   HEADER ACTION BUTTONS
========================= */

.topbar,
.app-header,
.home-header,
.page-header {
    overflow: visible;
}


/* Menu, notification and profile circular buttons */
.menu-btn,
.notification-btn,
.profile-btn,
.header-icon-btn,
.topbar-btn,
.icon-btn {
    width: 64px !important;
    height: 64px !important;

    min-width: 64px !important;
    min-height: 64px !important;

    border-radius: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    flex-shrink: 0 !important;
}


/* Make SVG icons themselves larger */
.menu-btn svg,
.notification-btn svg,
.profile-btn svg,
.header-icon-btn svg,
.topbar-btn svg,
.icon-btn svg {
    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    stroke-width: 1.8;
}


/* If your icons are IMG files instead of SVG */
.menu-btn img,
.notification-btn img,
.profile-btn img,
.header-icon-btn img,
.topbar-btn img,
.icon-btn img {
    width: 28px !important;
    height: 28px !important;

    object-fit: contain !important;
    display: block !important;
}


/* Keep space between notification and profile */
.header-actions,
.topbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}


/* =========================
   HOMEPAGE OVERLAPPING
   CIRCULAR IMAGES
========================= */

.balance-avatars,
.balance-images,
.avatar-stack,
.card-avatars {
    display: flex !important;
    align-items: center !important;
}


/* Each circular image */
.balance-avatars img,
.balance-images img,
.avatar-stack img,
.card-avatars img {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    display: block !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 3px solid #ffffff !important;

    overflow: hidden !important;
}


/* Make the second image overlap the first */
.balance-avatars img + img,
.balance-images img + img,
.avatar-stack img + img,
.card-avatars img + img {
    margin-left: -13px !important;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .menu-btn,
    .notification-btn,
    .profile-btn,
    .header-icon-btn,
    .topbar-btn,
    .icon-btn {
        width: 60px !important;
        height: 60px !important;

        min-width: 60px !important;
        min-height: 60px !important;
    }

    .menu-btn svg,
    .notification-btn svg,
    .profile-btn svg,
    .header-icon-btn svg,
    .topbar-btn svg,
    .icon-btn svg {
        width: 27px !important;
        height: 27px !important;
    }

    .balance-avatars img,
    .balance-images img,
    .avatar-stack img,
    .card-avatars img {
        width: 46px !important;
        height: 46px !important;
    }
}
/* =========================================================
   REAL HEADER ICON + CIRCULAR IMAGE FIX
   KEEP THIS AT THE VERY BOTTOM OF style.css
========================================================= */


/* =========================================================
   HEADER BUTTON SIZE
========================================================= */

.header-circle-button {
    width: 66px !important;
    height: 66px !important;

    min-width: 66px !important;
    min-height: 66px !important;
    flex: 0 0 66px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border-radius: 50% !important;

    overflow: hidden !important;
}


/* =========================================================
   MENU ICON
========================================================= */

.header-circle-button.menu-button img {
    width: 34px !important;
    height: 34px !important;

    max-width: none !important;

    object-fit: contain !important;
    object-position: center !important;

    visibility: visible !important;
}


/* =========================================================
   NOTIFICATION ICON
========================================================= */

.header-circle-button.notification-button img {
    width: 33px !important;
    height: 33px !important;

    max-width: none !important;

    object-fit: contain !important;
    object-position: center !important;

    visibility: visible !important;
}


/* =========================================================
   PROFILE ICON
========================================================= */

.header-circle-button.profile-button img {
    width: 35px !important;
    height: 35px !important;

    max-width: none !important;

    object-fit: contain !important;
    object-position: center !important;

    visibility: visible !important;
}


/* Keep notification dot positioned correctly */

.header-circle-button.notification-button
.notification-dot {
    top: 12px !important;
    right: 12px !important;

    width: 8px !important;
    height: 8px !important;
}


/* =========================================================
   HEADER SPACING
========================================================= */

.header-right-actions {
    display: flex !important;
    align-items: center !important;

    gap: 12px !important;
}


/* =========================================================
   HOMEPAGE TWO CIRCULAR IMAGES
========================================================= */

.pool-avatars {
    display: flex !important;

    align-items: center !important;

    overflow: visible !important;
}


.pool-avatars span {
    width: 54px !important;
    height: 54px !important;

    min-width: 54px !important;
    min-height: 54px !important;

    flex: 0 0 54px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    overflow: hidden !important;

    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    background: #ffffff !important;
}


/* THIS forces the image to fill the circle */

.pool-avatars span img {
    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    transform: scale(1.08);

    visibility: visible !important;
}


/* Overlap second image */

.pool-avatars span + span {
    margin-left: -14px !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .header-circle-button {
        width: 64px !important;
        height: 64px !important;

        min-width: 64px !important;
        min-height: 64px !important;

        flex-basis: 64px !important;
    }


    .header-circle-button.menu-button img {
        width: 33px !important;
        height: 33px !important;
    }


    .header-circle-button.notification-button img {
        width: 32px !important;
        height: 32px !important;
    }


    .header-circle-button.profile-button img {
        width: 34px !important;
        height: 34px !important;
    }


    .pool-avatars span {
        width: 52px !important;
        height: 52px !important;

        min-width: 52px !important;
        min-height: 52px !important;

        flex-basis: 52px !important;
    }

}
/* =========================================================
   FINAL POOL AVATAR IMAGE FIT FIX
   Removes visible white space inside the circles
========================================================= */

.pool-avatars span {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    /* Remove the white border */
    border: none !important;
    background: transparent !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Force actual picture to completely fill circle */

.pool-avatars span img {
    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center center !important;

    display: block !important;

    /* Zoom slightly to eliminate white edges in image files */
    transform: scale(1.22) !important;
}


/* Keep the two circles overlapping */

.pool-avatars span + span {
    margin-left: -8px !important;
}


/* Mobile */

@media (max-width: 600px) {

    .pool-avatars span {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
    }

    .pool-avatars span img {
        width: 100% !important;
        height: 100% !important;
        transform: scale(1.22) !important;
    }
}
/* =========================================================
   FIX £2,000.00 BALANCE ON HOMEPAGE
========================================================= */

.balance-card-top {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.main-balance {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: clamp(48px, 9vw, 72px);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -3px;

    white-space: nowrap;

    box-sizing: border-box;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .main-balance {
        font-size: clamp(46px, 10.5vw, 64px) !important;
        line-height: 1 !important;
        letter-spacing: -2.5px !important;

        width: 100% !important;
        max-width: 100% !important;

        white-space: nowrap !important;
    }

}


/* =========================================================
   SMALL IPHONES
========================================================= */

@media (max-width: 430px) {

    .main-balance {
        font-size: 52px !important;
        letter-spacing: -2px !important;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 375px) {

    .main-balance {
        font-size: 46px !important;
        letter-spacing: -1.5px !important;
    }

}
/* =========================================================
   FORCE BALANCE CARD TO MATCH £2 REFERENCE
   Keep this at the VERY BOTTOM of style.css
========================================================= */

/* Complete first wallet card */
.home-wallet-card.balance-wallet-card {
    height: 432px !important;
    min-height: 432px !important;
    max-height: 432px !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    border-radius: 22px !important;
}


/* White balance area */
.balance-wallet-card .balance-card-top {
    height: 288px !important;
    min-height: 288px !important;
    flex: 0 0 288px !important;

    padding: 27px 28px 34px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* PayPal balance title */
.balance-wallet-card .balance-title-row {
    width: 100% !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.balance-wallet-card .balance-title-row h1 {
    margin: 0 !important;
    padding: 0 !important;
}


/* £2,000.00 position */
.balance-wallet-card .main-balance {
    display: block !important;

    margin: auto 0 0 0 !important;
    padding: 0 !important;

    width: auto !important;
    max-width: 100% !important;

    font-size: 58px !important;
    font-weight: 700 !important;
    line-height: 0.95 !important;
    letter-spacing: -3.5px !important;

    white-space: nowrap !important;
}


/* Blue Convert Currency section */
.balance-wallet-card .add-money-panel {
    height: 144px !important;
    min-height: 144px !important;
    flex: 0 0 144px !important;

    margin: 0 !important;
    box-sizing: border-box !important;
}


/* =========================================================
   MOBILE — MATCH SCREENSHOT PROPORTIONS
========================================================= */

@media (max-width: 600px) {

    .home-wallet-card.balance-wallet-card {
        height: 432px !important;
        min-height: 432px !important;
    }

    .balance-wallet-card .balance-card-top {
        height: 288px !important;
        min-height: 288px !important;
        flex-basis: 288px !important;

        padding: 27px 28px 34px !important;
    }

    .balance-wallet-card .main-balance {
        font-size: 58px !important;
        line-height: 0.95 !important;
        letter-spacing: -3.5px !important;

        margin-top: auto !important;
        margin-bottom: 0 !important;
    }

    .balance-wallet-card .add-money-panel {
        height: 144px !important;
        min-height: 144px !important;
        flex-basis: 144px !important;
    }
}


/* Slightly narrower phones */
@media (max-width: 430px) {

    .balance-wallet-card .main-balance {
        font-size: 54px !important;
        letter-spacing: -3px !important;
    }
}


/* Very narrow screens only */
@media (max-width: 375px) {

    .balance-wallet-card .main-balance {
        font-size: 49px !important;
        letter-spacing: -2.5px !important;
    }
}
/* =========================================================
   BALANCE ALL 3 HOMEPAGE CAROUSEL CARDS
========================================================= */

/* ALL THREE CARDS — SAME SIZE */
.wallet-carousel .home-wallet-card {
    flex: 0 0 calc(100% - 63px) !important;

    width: calc(100% - 63px) !important;
    min-width: calc(100% - 63px) !important;

    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;

    box-sizing: border-box !important;

    border-radius: 22px !important;

    overflow: hidden !important;
}


/* =========================================================
   FIRST CARD STRUCTURE
========================================================= */

.balance-wallet-card {
    display: grid !important;

    grid-template-rows:
        minmax(0, 1fr)
        132px !important;
}


/* White balance section */
.balance-wallet-card .balance-card-top {
    min-width: 0 !important;
    min-height: 0 !important;

    height: auto !important;

    padding:
        25px
        28px
        27px !important;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box !important;
}


/* Balance title */
.balance-wallet-card .balance-title-row {
    margin: 0 !important;

    width: 100% !important;
}


/* £2,000.00 */
.balance-wallet-card .main-balance {
    margin:
        auto
        0
        0 !important;

    padding: 0 !important;

    max-width: 100% !important;

    font-size: 52px !important;
    line-height: 1 !important;

    letter-spacing: -2.5px !important;

    white-space: nowrap !important;
}


/* Blue bottom section */
.balance-wallet-card .add-money-panel {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   CONFIRMATION + WALLET CARDS
========================================================= */

.pools-wallet-card,
.secondary-wallet-card {
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
}


.pools-card-content,
.secondary-card-content {
    width: 100% !important;
    height: 100% !important;

    box-sizing: border-box !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .wallet-carousel .home-wallet-card {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }

    .balance-wallet-card .main-balance {
        font-size: 50px !important;
        letter-spacing: -2.3px !important;
    }

}


/* Narrow phones */
@media (max-width: 390px) {

    .balance-wallet-card .main-balance {
        font-size: 46px !important;
        letter-spacing: -2px !important;
    }

}
/* =========================================================
   FINAL FIRST CARD LEFT GAP FIX
   Does NOT change card width or height
========================================================= */

/* Give only the FIRST card proper distance from screen edge */
.wallet-carousel .home-wallet-card:first-child {
    margin-left: 28px !important;
}

/* Keep normal spacing between all cards */
.wallet-carousel .home-wallet-card {
    margin-right: 15px !important;
}

/* Mobile */
@media (max-width: 600px) {

}
/* =========================================================
   ALIGN WALLET CAROUSEL WITH RECENT ACTIVITY / REWARDS
   KEEP THIS AT THE VERY BOTTOM OF style.css
========================================================= */

/* The carousel itself gets the SAME 19px page gutter */
.home-main > .wallet-carousel {
    width: 100% !important;

    padding-left: 19px !important;
    padding-right: 19px !important;
    padding-bottom: 5px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;

    scroll-padding-left: 19px !important;
}


/* REMOVE the extra first-card margin from our previous fix */
.home-main > .wallet-carousel
.home-wallet-card:first-child {
    margin-left: 0 !important;
}


/* Keep every carousel card equal */
.home-main > .wallet-carousel
.home-wallet-card {
    flex: 0 0 calc(100% - 63px) !important;

    width: calc(100% - 63px) !important;
    min-width: calc(100% - 63px) !important;

    margin-left: 0 !important;
    margin-right: 15px !important;

    box-sizing: border-box !important;
}


/* Exact same page gutter on mobile */
@media (max-width: 600px) {

    .home-main > .wallet-carousel {
        padding-left: 19px !important;
        padding-right: 19px !important;
    }

}
/* =========================================
   REMOVE NOTIFICATION BLUE DOT
========================================= */

.notification-dot,
.notification-badge,
.notify-dot,
.notification-indicator,
.header-notification .dot,
.notification-btn .dot {
    display: none !important;
}