:root {
    --brand: #22b3af;
    /* main brand */
    --brand-dark: #199591;
    /* darker shade */
    --ink: #0f172a;
    /* slate-900 */
    --muted: #6b7280;
    /* gray-500 */
    --panel: #ffffff;
    /* white panel */
    --ring: #e5e7eb;
    /* gray-200 */
    --shadow: 0 14px 34px rgba(2, 6, 23, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    display: flex;
    justify-content: center;
    background: #f6fffe;

    /* ✅ FIX: one-line, URL-encoded inline SVG background */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='720' viewBox='0 0 360 720'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%2322B3AF' stop-opacity='.12'/><stop offset='1' stop-color='%23199591' stop-opacity='.08'/></linearGradient></defs><rect width='360' height='720' fill='url(%23g)'/><circle cx='60' cy='80' r='60' fill='%2322B3AF' opacity='.08'/><circle cx='320' cy='120' r='44' fill='%2322B3AF' opacity='.08'/><circle cx='300' cy='620' r='80' fill='%23199591' opacity='.07'/></svg>");
    background-size: cover;
    background-attachment: fixed;

    padding-bottom: 92px;
    /* space for bottom bar */
}

.shell {
    width: 100%;
    max-width: 460px;
    background: transparent;
}

/* ===== Header ===== */
.m-header {
    position: relative;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    padding: 18px 14px 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 136px;
}

.m-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            560px 180px at -12% -30%,
            rgba(255, 255, 255, 0.34),
            transparent 60%
        ),
        radial-gradient(
            420px 160px at 115% -25%,
            rgba(255, 255, 255, 0.18),
            transparent 60%
        );
    pointer-events: none;
}

.hdr-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
}

.logo span {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.hdr-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-row {
    position: relative;
    z-index: 1;
    display: flex;
    /* align-items: center; */
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 18px !important;
    justify-content: space-between;
    align-items: center;
    top: -10px;
}

.avatar {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    overflow: hidden;
    flex: none;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    background: #ffffff22;
}

.title {
    font-weight: 900;
    line-height: 1.1;
    font-size: 23px;
    text-shadow: 0px 0px 5px #393737;
}

.phone {
    font-size: 14px;
    opacity: 0.95;
    margin-top: 5px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 12px;
    opacity: 0.95;
    margin-top: 5px;
}

/* ===== Check Balance slider pill ===== */
.balance-wrap {
    position: relative;
    z-index: 2;
    margin-top: 12px;
}

.balance-pill {
    position: relative;
    height: 37px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.knob {
    position: absolute;
    inset: 6px auto 6px 6px;
    width: 25px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06),
        0 6px 14px rgba(0, 0, 0, 0.18);
    display: grid;
    place-items: center;
    color: var(--brand);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.balance-pill.active .knob {
    transform: translateX(196px);
}

/* width 240 - knob/offsets */
.balance-text {
    flex: 1;
    text-align: center;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.details {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0ea99f;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 700;
    display: none;
    align-items: center;
}

.balance-pill.active .details {
    display: flex;
}

.hint {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 6px;
}

/* ===== Sidebar (smooth) ===== */
.sidebar {
    position: fixed;
    inset: 0 0 0 0;
    z-index: 60;
    display: none;
}

.sidebar.open {
    display: block;
}

.side-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar.open .side-dim {
    opacity: 1;
}

.side-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 320px);
    background: #fff;
    border-right: 1px solid var(--ring);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: var(--shadow);
    transform: translateX(-101%);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.sidebar.open .side-panel {
    transform: translateX(0);
}

.side-header {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid var(--ring);
}

.side-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.side-title {
    font-weight: 800;
}

.side-nav {
    padding: 10px;
}

.side-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 12px;
    color: #0f172a;
    border: 1px solid transparent;
}

.side-btn i {
    color: var(--brand);
}

.side-btn:active {
    background: #f1f5f9;
}

/* ===== Quick Actions grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 14px;
}

.qi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #003f3d;
    font-size: 17px;
    font-weight: 700;
}

a {
    text-decoration: none !important;
}

.qi .round {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--ring);
    display: grid;
    place-items: center;
    box-shadow: 1px 2px 10px 0px #8d8d8d91;
    padding: 8px;
}

/* ===== Bottom bar (simple) ===== */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 10px env(safe-area-inset-bottom);
    pointer-events: none;
}

.tab {
    pointer-events: auto;
    height: 76px;
    background: #fff;
    border: 1px solid var(--ring);
    box-shadow: var(--shadow);
    border-radius: 22px;
    width: min(560px, 96vw);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.tab a {
    display: grid;
    place-items: center;
    gap: 4px;
    text-decoration: none;
    color: #475569;
}

.tab a i {
    font-size: 22px;
}

.tab small {
    font-size: 12px;
    font-weight: 700;
}

.tab .scan {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: grid;
    place-items: center;
    margin-top: -28px;
    box-shadow: 0 16px 30px rgba(34, 179, 175, 0.35);
}

/* mobile only helpers */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: auto;
    }
}

/* .swiper-slide>img {
            height: 120px;
            width: 100%;
            border-radius: 8px;
            border: 3px solid #1A9995;
        } */

/* .markuee_headline{
            font-size: 18px;
            margin-bottom: 10px;
            margin-top: 20px;
            background: #ccfdfc;
            margin: 6px;
            letter-spacing: .5px;
            color: #0e041a;
            text-shadow: 2px 0px 1px #000000;
        } */

.markuee_headline {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 20px;
    background: #1b9b97;
    margin: 6px 9px;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-weight: 700;
    display: inline-block;
    padding: 6px;
    border-radius: 10px;
}

.mobile-banking {
    padding: 16px;
    /* background:#fff; */
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
    border: 1px solid #eef1f4;
}
.mobile-banking > h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a; /* slate-900 */
}

/* Force exactly 4 items per line */
.wallet-grid {
    display: flex;
    gap: 16px;
    /* keep one line; items shrink to fit */
    flex-wrap: nowrap;
}
.wallet-item {
    /* 4 items in the row including gaps */
    flex: 0 0 calc((100% - 3 * 16px) / 4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    background: #f8fafc; /* light card */
    border: 1px solid #e6ecf1;
    color: #1f2937; /* slate-800 */
    transition: transform 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease;
}
.wallet-item:hover {
    background: #f1f5f9;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

/* Icon circle */
.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ecfdf5; /* emerald-50 */
    border: 1px solid #a7f3d0; /* emerald-200 */
    display: grid;
    place-items: center;
    overflow: hidden;
}
.icon-wrap img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

/* Label */
.wallet-item span {
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Optional: if the container becomes too narrow, allow horizontal scroll while keeping 4 visible at once */
.wallet-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.wallet-grid::-webkit-scrollbar {
    height: 6px;
}
.wallet-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.swiper {
    width: 100%;
    /* height: 100%; */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}
