/* ==========================================================
   UNITYLIFE MOBILE WALLET UI
   Premium Green / White Mobile Responsive Design
========================================================== */

:root {
    --green-950: #062e1d;
    --green-900: #06492c;
    --green-800: #087c44;
    --green-700: #0b8f4d;
    --green-600: #12a85f;
    --green-500: #19c878;
    --green-100: #e9fff2;
    --green-50: #f4fff8;

    --white: #ffffff;
    --bg: #eef8f2;
    --text: #123829;
    --muted: #72877d;
    --border: #dcebe3;

    --danger-bg: #fff1f1;
    --danger-text: #b42318;
    --success-bg: #edfff4;
    --success-text: #087443;

    --shadow-soft: 0 14px 35px rgba(7, 71, 42, .10);
    --shadow-card: 0 26px 60px rgba(7, 71, 42, .20);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ==========================================================
   LOGIN PAGE
========================================================== */

.login-body {
    background:
        radial-gradient(circle at 12% 4%, rgba(70, 240, 143, .28), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(255, 255, 255, .20), transparent 26%),
        linear-gradient(180deg, #087c44 0%, #0b8f4d 39%, #eef8f2 39%, #eef8f2 100%);
}

.wallet-app-shell {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* ==========================================================
   HERO HEADER
========================================================== */

.login-hero {
    min-height: 390px;
    padding: max(24px, env(safe-area-inset-top)) 22px 110px;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(.2px);
}

.glow-one {
    width: 230px;
    height: 230px;
    right: -95px;
    top: 18px;
    background: rgba(255,255,255,.15);
}

.glow-two {
    width: 135px;
    height: 135px;
    left: -55px;
    bottom: 82px;
    background: rgba(20, 255, 138, .24);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 3;
}

.logo-card {
    width: 58px;
    height: 58px;
    border-radius: 21px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,255,249,.94));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 18px 36px rgba(0,0,0,.18),
        inset 0 0 0 1px rgba(255,255,255,.8);
    overflow: hidden;
}

.logo-card img {
    width: 84%;
    height: 84%;
    object-fit: contain;
}

.brand-title {
    font-size: 17px;
    font-weight: 950;
    letter-spacing: .14em;
}

.brand-caption {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 650;
    color: rgba(255,255,255,.80);
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 42px;
}

.status-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 850;
    color: rgba(255,255,255,.92);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #7dffad;
    box-shadow: 0 0 0 6px rgba(125,255,173,.14);
}

.hero-content h1 {
    margin: 18px 0 0;
    max-width: 390px;
    font-size: clamp(32px, 8.7vw, 43px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 950;
}

.hero-content p {
    margin: 15px 0 0;
    max-width: 355px;
    color: rgba(255,255,255,.85);
    font-size: 15px;
    line-height: 1.58;
    font-weight: 500;
}

.hero-mini-card {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

.hero-mini-card span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.70);
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-mini-card strong {
    display: block;
    font-size: 13px;
    color: #fff;
    font-weight: 900;
}

.mini-badge {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--green-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
}

/* ==========================================================
   LOGIN PANEL
========================================================== */

.login-panel {
    width: calc(100% - 28px);
    margin: -96px auto 24px;
    position: relative;
    z-index: 10;
    padding: 20px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,255,251,.96));
    box-shadow:
        var(--shadow-card),
        inset 0 0 0 1px rgba(255,255,255,.84);
    backdrop-filter: blur(18px);
}

.panel-handle {
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: #d7e7de;
    margin: 0 auto 18px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 21px;
}

.panel-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.panel-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.secure-badge {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 11px;
    font-weight: 950;
    border: 1px solid #c8f4d9;
}

/* ==========================================================
   FORM
========================================================== */

.field-group {
    margin-bottom: 16px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #214b39;
    font-size: 13px;
    font-weight: 900;
}

.field-control {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 20px;
    background: #f7fcf9;
    border: 1px solid var(--border);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.field-control:focus-within {
    background: #ffffff;
    border-color: var(--green-700);
    box-shadow: 0 0 0 5px rgba(11,143,77,.10);
    transform: translateY(-1px);
}

.field-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #e9fff2;
    color: var(--green-800);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.field-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.field-control input {
    width: 100%;
    flex: 1;
    height: 56px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    min-width: 0;
}

.field-control input::placeholder {
    color: #9aaca3;
    font-weight: 500;
}

.toggle-pass {
    border: none;
    background: transparent;
    color: var(--green-800);
    font-size: 13px;
    font-weight: 950;
    padding: 8px 0 8px 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

/* ==========================================================
   BUTTON
========================================================== */

.wallet-login-btn {
    width: 100%;
    min-height: 60px;
    margin-top: 7px;
    border: none;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #087c44 0%, #10a65d 45%, #18c877 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 16px 32px rgba(11,143,77,.30),
        inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.wallet-login-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: translateX(-120%);
    transition: transform .6s ease;
}

.wallet-login-btn:hover::before {
    transform: translateX(120%);
}

.wallet-login-btn:active {
    transform: scale(.985);
    box-shadow: 0 10px 22px rgba(11,143,77,.24);
}

.wallet-login-btn:disabled {
    opacity: .78;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    width: 21px;
    height: 21px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.38);
    border-top-color: #fff;
    animation: spin .75s linear infinite;
}

.wallet-login-btn.loading .btn-text {
    display: none;
}

.wallet-login-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================
   MESSAGES
========================================================== */

.login-message {
    display: none;
    margin-top: 15px;
    padding: 13px 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.login-message.error,
.login-message.success {
    display: block;
}

.login-message.error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #ffd1d1;
}

.login-message.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #b9f4cf;
}

/* ==========================================================
   FEATURES
========================================================== */

.feature-strip {
    margin-top: 20px;
    display: grid;
    gap: 11px;
}

.feature-card {
    padding: 13px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    background:
        linear-gradient(180deg, #ffffff, #f7fcf9);
    border: 1px solid #e3f0e8;
    box-shadow: 0 8px 18px rgba(7, 71, 42, .045);
}

.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
    flex: 0 0 auto;
}

.qr-icon {
    background: #e8fff1;
    color: #087c44;
}

.points-icon {
    background: #fff8e7;
    color: #a26b00;
}

.store-icon {
    background: #eaf3ff;
    color: #1765ad;
}

.feature-card strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}

.feature-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}

/* ==========================================================
   FOOTER
========================================================== */

.trust-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    color: #81968c;
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
}

.trust-footer span {
    width: 28px;
    height: 1px;
    background: #dbe9e1;
}

/* ==========================================================
   GENERAL MOBILE APP COMPONENTS
   Keeps dashboard/QR/merchant pages beautiful too
========================================================== */

.mobile-page {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(18,168,95,.12), transparent 28%),
        #eef8f2;
}

.top-card {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 26%),
        linear-gradient(135deg, #087c44, #0b8f4d 55%, #10a65d);
    color: #fff;
    border-radius: 30px;
    padding: 21px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    box-shadow: 0 18px 38px rgba(11,143,77,.26);
}

.top-card h2 {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.small {
    font-size: 13px;
    color: #6f857a;
}

.top-card .small {
    color: rgba(255,255,255,.82);
}

.logout {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.wallet-card,
.qr-card,
.form-card,
.list-card {
    margin-top: 16px;
    background: rgba(255,255,255,.96);
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e4f0e9;
}

.points {
    font-size: 42px;
    font-weight: 950;
    color: var(--green-800);
    margin: 8px 0;
    letter-spacing: -.045em;
}

.grid-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

.menu-card {
    background: rgba(255,255,255,.98);
    border-radius: 26px;
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e4f0e9;
    transition: transform .16s ease, box-shadow .16s ease;
}

.menu-card:active {
    transform: scale(.985);
}

.menu-card h3 {
    margin: 10px 0 5px;
    font-size: 17px;
}

.menu-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.icon {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 950;
    font-size: 12px;
}

.menu-card.merchant {
    border-color: #bdeecf;
}

.menu-card.disabled {
    opacity: .72;
}

.qr-card {
    text-align: center;
}

.qr-card h3,
.form-card h3 {
    margin-top: 0;
    color: var(--text);
}

.muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

#qrcode {
    display: inline-block;
    background: #fff;
    padding: 16px;
    border-radius: 24px;
    margin: 16px auto;
    box-shadow:
        0 12px 26px rgba(0,0,0,.08),
        inset 0 0 0 1px #e5f0ea;
}

#reader {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 16px;
    background: #f6fbf8;
}

.form-card label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #254d3d;
    margin: 14px 0 7px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #f8fcfa;
    outline: none;
    font-size: 15px;
}

.form-card input:focus,
.form-card textarea:focus {
    border-color: var(--green-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11,143,77,.10);
}

.form-card button {
    width: 100%;
    min-height: 56px;
    border: none;
    margin-top: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #087c44, #18c878);
    color: #fff;
    font-size: 16px;
    font-weight: 950;
}

.txn {
    padding: 15px 0;
    border-bottom: 1px solid #edf4ef;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.txn:last-child {
    border-bottom: none;
}

.txn strong {
    font-size: 14px;
}

.txn-points {
    color: var(--green-800);
    font-weight: 950;
    font-size: 18px;
    white-space: nowrap;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 390px) {
    .login-hero {
        min-height: 365px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-panel {
        width: calc(100% - 22px);
        padding: 18px;
        border-radius: 30px;
    }

    .logo-card {
        width: 54px;
        height: 54px;
        border-radius: 19px;
    }

    .panel-header {
        flex-direction: column;
    }

    .secure-badge {
        width: fit-content;
    }

    .feature-card {
        padding: 12px;
    }

    .points {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    body {
        background:
            radial-gradient(circle at top, rgba(11,143,77,.12), transparent 35%),
            #e7f5ed;
    }

    .wallet-app-shell {
        min-height: 100vh;
        box-shadow: 0 0 55px rgba(0,0,0,.10);
    }
}

/* ==========================================================
   COMMUNITY PARTNERSHIP PROGRAM BRANDING
========================================================== */

.brand-caption {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 750;
    color: rgba(255,255,255,.84);
    letter-spacing: .02em;
}

.status-pill {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.hero-content h1 {
    max-width: 410px;
}

.program-card {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    padding: 15px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.09));
    border: 1px solid rgba(255,255,255,.23);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 18px 34px rgba(0,0,0,.12);
}

.program-left span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.68);
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.program-left strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
    font-weight: 950;
    line-height: 1.2;
}

.program-left small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.76);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.program-seal {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 20%, #ffffff, #e9fff2);
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .04em;
    box-shadow:
        0 12px 24px rgba(0,0,0,.14),
        inset 0 0 0 1px rgba(255,255,255,.85);
}

.program-label {
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9fff2;
    color: #087c44;
    border: 1px solid #c9f5d9;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.partner-note {
    margin-top: 18px;
    padding: 15px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, #f3fff7, #ffffff);
    border: 1px solid #d9f4e3;
    box-shadow: 0 8px 18px rgba(7, 71, 42, .045);
}

.partner-note strong {
    display: block;
    color: #087c44;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 5px;
}

.partner-note span {
    display: block;
    color: #6f857a;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

/* Hide old mini card if still exists */
.hero-mini-card {
    display: none;
}

/* Better small-screen balance for the longer branding */
@media (max-width: 390px) {
    .brand-title {
        font-size: 15px;
    }

    .brand-caption {
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.02;
    }

    .program-card {
        padding: 13px;
        border-radius: 22px;
    }

    .program-left strong {
        font-size: 14px;
    }

    .program-seal {
        width: 50px;
        height: 50px;
        border-radius: 18px;
        font-size: 12px;
    }
}



/* ==========================================================
   COMMUNITY PARTNERSHIP PROGRAM DASHBOARD
========================================================== */

.dashboard-body {
    background:
        radial-gradient(circle at top left, rgba(18,168,95,.16), transparent 32%),
        #eef8f2;
}

.cpp-dashboard {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: #eef8f2;
    position: relative;
    overflow: hidden;
}

.dashboard-hero {
    position: relative;
    padding: max(20px, env(safe-area-inset-top)) 16px 118px;
    min-height: 390px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #087c44 0%, #0b8f4d 48%, #13b869 100%);
    overflow: hidden;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.dashboard-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .10;
    background-image:
        linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.dash-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.dash-glow-one {
    width: 220px;
    height: 220px;
    right: -90px;
    top: 8px;
    background: rgba(255,255,255,.13);
}

.dash-glow-two {
    width: 150px;
    height: 150px;
    left: -70px;
    bottom: 70px;
    background: rgba(113,255,177,.22);
}

.dashboard-topbar,
.dashboard-brand,
.points-card {
    position: relative;
    z-index: 3;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #ffffff;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 20px;
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
    flex: 0 0 auto;
}

.user-chip span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}

.user-chip strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    max-width: 235px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-pill {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.dashboard-brand {
    margin-top: 32px;
}

.dashboard-brand span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    color: rgba(255,255,255,.72);
}

.dashboard-brand h1 {
    margin: 8px 0 0;
    max-width: 390px;
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.dashboard-brand p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 650;
}

.points-card {
    margin-top: 24px;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 22px 42px rgba(0,0,0,.14);
    backdrop-filter: blur(16px);
}

.points-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.points-card-header span {
    color: rgba(255,255,255,.74);
    font-size: 12px;
    font-weight: 800;
}

.points-card-header h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 950;
}

.points-badge {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: #ffffff;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
}

.points-card-footer {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.points-card-footer div {
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16);
}

.points-card-footer small {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.points-card-footer strong {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
}

.dashboard-content {
    position: relative;
    z-index: 5;
    margin-top: -84px;
    padding: 0 16px 24px;
}

.quick-actions {
    display: grid;
    gap: 13px;
}

.action-card {
    min-height: 92px;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255,255,255,.98);
    border: 1px solid #e4f0e9;
    box-shadow: 0 16px 35px rgba(7,71,42,.10);
    color: #123829;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(18,200,120,.10), transparent 35%);
    pointer-events: none;
}

.action-card > * {
    position: relative;
    z-index: 2;
}

.primary-action {
    border-color: #c7f4d9;
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    flex: 0 0 auto;
}

.points-action {
    background: #fff8e7;
    color: #a26b00;
}

.merchant-action-icon {
    background: #eaf3ff;
    color: #1765ad;
}

.action-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    color: #123829;
}

.action-card p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #72877d;
    line-height: 1.4;
}

.action-arrow {
    margin-left: auto;
    color: #0b8f4d;
    font-size: 30px;
    font-weight: 300;
}

.disabled-action {
    opacity: .82;
}

.status-dot {
    margin-left: auto;
    width: 10px;
    height: 10px;
    background: #f5b544;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(245,181,68,.12);
}

.program-summary,
.merchant-status-card,
.recent-section {
    margin-top: 16px;
}

.summary-card,
.merchant-status-card,
.recent-section {
    background: rgba(255,255,255,.98);
    border-radius: 28px;
    padding: 18px;
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.08);
}

.summary-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 19px;
    background:
        radial-gradient(circle at 30% 20%, #ffffff, #e9fff2);
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid #c9f5d9;
    flex: 0 0 auto;
}

.summary-card h3,
.merchant-status-card h3,
.recent-section h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
    color: #123829;
}

.summary-card p,
.merchant-status-card p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #72877d;
    line-height: 1.5;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    color: #087c44;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.section-heading a {
    color: #087c44;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    background: #e9fff2;
    border: 1px solid #c9f5d9;
    padding: 8px 11px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.status-badge {
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    flex: 0 0 auto;
}

.status-badge.approved {
    background: #e9fff2;
    color: #087c44;
    border: 1px solid #c9f5d9;
}

.status-badge.pending {
    background: #fff8e7;
    color: #9b6500;
    border: 1px solid #ffe0a1;
}

.recent-list {
    display: grid;
    gap: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 22px;
    background: #f8fcfa;
    border: 1px solid #e8f2ec;
}

.recent-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    flex: 0 0 auto;
}

.recent-info {
    min-width: 0;
    flex: 1;
}

.recent-info strong {
    display: block;
    color: #123829;
    font-size: 13px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-info span {
    display: block;
    margin-top: 3px;
    color: #72877d;
    font-size: 12px;
}

.recent-points {
    color: #087c44;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 20px 10px;
}

.empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 20px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 950;
}

.empty-state h4 {
    margin: 0;
    color: #123829;
    font-size: 15px;
    font-weight: 950;
}

.empty-state p {
    margin: 6px auto 0;
    max-width: 280px;
    color: #72877d;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .dashboard-hero {
        min-height: 370px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-brand h1 {
        font-size: 30px;
    }

    .points-card-header h2 {
        font-size: 36px;
    }

    .points-card-footer {
        grid-template-columns: 1fr;
    }

    .user-chip strong {
        max-width: 185px;
    }
}

@media (min-width: 768px) {
    .cpp-dashboard {
        box-shadow: 0 0 55px rgba(0,0,0,.10);
    }
}


/* ==========================================================
   COMMUNITY PARTNERSHIP PROGRAM - MEMBER QR PAGE
========================================================== */

.qr-page-body {
    background:
        radial-gradient(circle at top left, rgba(18,168,95,.16), transparent 32%),
        #eef8f2;
}

.qr-hero {
    position: relative;
    padding: max(20px, env(safe-area-inset-top)) 16px 116px;
    min-height: 330px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #087c44 0%, #0b8f4d 48%, #13b869 100%);
    overflow: hidden;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.qr-brand-block {
    position: relative;
    z-index: 3;
    margin-top: 34px;
}

.qr-brand-block span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    color: rgba(255,255,255,.72);
}

.qr-brand-block h1 {
    margin: 8px 0 0;
    max-width: 380px;
    color: #fff;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.qr-brand-block p {
    margin: 12px 0 0;
    max-width: 360px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.qr-content {
    position: relative;
    z-index: 5;
    margin-top: -82px;
    padding: 0 16px 24px;
}

.member-qr-card {
    padding: 20px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,255,251,.97));
    border: 1px solid #e4f0e9;
    box-shadow: 0 26px 60px rgba(7, 71, 42, .18);
}

.qr-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.qr-card-header span {
    display: block;
    color: #087c44;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.qr-card-header h2 {
    margin: 0;
    color: #123829;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: #e9fff2;
    color: #087c44;
    border: 1px solid #c9f5d9;
    font-size: 11px;
    font-weight: 950;
}

.green-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 5px rgba(11,143,77,.12);
}

.qr-owner-card {
    margin-top: 16px;
    padding: 13px;
    border-radius: 24px;
    background: #f7fcf9;
    border: 1px solid #e4f0e9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #087c44, #18c878);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 950;
    flex: 0 0 auto;
    box-shadow: 0 12px 24px rgba(11,143,77,.22);
}

.qr-owner-card strong {
    display: block;
    color: #123829;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}

.qr-owner-card span {
    display: block;
    margin-top: 3px;
    color: #72877d;
    font-size: 12px;
    font-weight: 700;
}

.qr-frame {
    position: relative;
    margin: 22px auto 18px;
    width: min(100%, 304px);
    min-height: 304px;
    border-radius: 34px;
    background:
        radial-gradient(circle at center, #ffffff 0%, #ffffff 68%, #f2fff7 100%);
    border: 1px solid #d8f1e2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 8px #f7fcf9,
        0 18px 38px rgba(7,71,42,.10);
    overflow: hidden;
}

#qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border-radius: 22px;
    position: relative;
    z-index: 3;
}

#qrcode img,
#qrcode canvas {
    border-radius: 12px;
}

.qr-corner {
    position: absolute;
    width: 38px;
    height: 38px;
    border-color: #087c44;
    z-index: 2;
}

.corner-tl {
    top: 18px;
    left: 18px;
    border-top: 5px solid;
    border-left: 5px solid;
    border-top-left-radius: 12px;
}

.corner-tr {
    top: 18px;
    right: 18px;
    border-top: 5px solid;
    border-right: 5px solid;
    border-top-right-radius: 12px;
}

.corner-bl {
    bottom: 18px;
    left: 18px;
    border-bottom: 5px solid;
    border-left: 5px solid;
    border-bottom-left-radius: 12px;
}

.corner-br {
    bottom: 18px;
    right: 18px;
    border-bottom: 5px solid;
    border-right: 5px solid;
    border-bottom-right-radius: 12px;
}

.qr-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    color: #087c44;
    font-size: 13px;
    font-weight: 950;
    z-index: 5;
}

.qr-status-box {
    padding: 14px;
    border-radius: 24px;
    background: #f7fcf9;
    border: 1px solid #e4f0e9;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.status-row span {
    display: block;
    color: #72877d;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 4px;
}

.status-row strong {
    display: block;
    color: #123829;
    font-size: 14px;
    font-weight: 950;
}

.qr-timer-pill {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    background: #e9fff2;
    color: #087c44;
    border: 1px solid #c9f5d9;
    font-size: 13px;
    font-weight: 950;
}

.timer-track {
    width: 100%;
    height: 8px;
    margin-top: 13px;
    border-radius: 999px;
    background: #dfeee6;
    overflow: hidden;
}

.timer-progress {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #087c44, #18c878);
    transition: width .35s linear;
}

.refresh-qr-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 16px;
    border: none;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #087c44 0%, #10a65d 45%, #18c878 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 16px 32px rgba(11,143,77,.26);
}

.refresh-qr-btn:active {
    transform: scale(.985);
}

.qr-instruction-card,
.qr-security-card {
    margin-top: 16px;
    background: rgba(255,255,255,.98);
    border-radius: 28px;
    padding: 18px;
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.08);
}

.qr-instruction-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.instruction-icon {
    width: 50px;
    height: 50px;
    border-radius: 19px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid #c9f5d9;
    flex: 0 0 auto;
}

.qr-instruction-card h3,
.qr-security-card h3 {
    margin: 0;
    color: #123829;
    font-size: 17px;
    font-weight: 950;
}

.qr-instruction-card p,
.qr-security-card p {
    margin: 6px 0 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.55;
}

.compact-heading {
    margin-bottom: 8px;
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .qr-hero {
        min-height: 315px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .qr-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .qr-brand-block h1 {
        font-size: 30px;
    }

    .member-qr-card {
        padding: 18px;
        border-radius: 30px;
    }

    .qr-frame {
        min-height: 288px;
        border-radius: 30px;
    }

    #qrcode {
        transform: scale(.94);
    }

    .status-row {
        align-items: flex-start;
    }
}

/* ==========================================================
   COMMUNITY PARTNERSHIP PROGRAM - POINTS HISTORY PAGE
========================================================== */

.points-page-body {
    background:
        radial-gradient(circle at top left, rgba(18,168,95,.16), transparent 32%),
        #eef8f2;
}

.points-hero {
    position: relative;
    padding: max(20px, env(safe-area-inset-top)) 16px 118px;
    min-height: 395px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #087c44 0%, #0b8f4d 48%, #13b869 100%);
    overflow: hidden;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.points-brand-block {
    position: relative;
    z-index: 3;
    margin-top: 32px;
}

.points-brand-block span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    color: rgba(255,255,255,.72);
}

.points-brand-block h1 {
    margin: 8px 0 0;
    max-width: 380px;
    color: #fff;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.points-brand-block p {
    margin: 12px 0 0;
    max-width: 360px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.points-balance-card {
    position: relative;
    z-index: 3;
    margin-top: 22px;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 22px 42px rgba(0,0,0,.14);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.points-balance-card span {
    display: block;
    color: rgba(255,255,255,.74);
    font-size: 12px;
    font-weight: 800;
}

.points-balance-card h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 950;
}

.points-balance-card p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 650;
}

.points-balance-badge {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: #ffffff;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    flex: 0 0 auto;
}

.points-content {
    position: relative;
    z-index: 5;
    margin-top: -82px;
    padding: 0 16px 24px;
}

.points-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.points-summary-card {
    padding: 16px;
    border-radius: 26px;
    background: rgba(255,255,255,.98);
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.09);
}

.points-summary-card.full {
    grid-column: 1 / -1;
}

.points-summary-card span {
    display: block;
    color: #087c44;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 6px;
}

.points-summary-card strong {
    display: block;
    color: #123829;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.points-summary-card small {
    display: block;
    margin-top: 5px;
    color: #72877d;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 650;
}

.points-history-card,
.points-info-card {
    margin-top: 16px;
    background: rgba(255,255,255,.98);
    border-radius: 30px;
    padding: 18px;
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.08);
}

.transaction-list {
    display: grid;
    gap: 11px;
}

.points-txn-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #f8fcfa;
    border: 1px solid #e8f2ec;
}

.txn-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.txn-logo {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 auto;
}

.txn-details {
    min-width: 0;
    flex: 1;
}

.txn-details strong {
    display: block;
    color: #123829;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.txn-details span {
    display: block;
    margin-top: 4px;
    color: #72877d;
    font-size: 12px;
    font-weight: 650;
}

.txn-details small {
    display: block;
    margin-top: 3px;
    color: #8b9d95;
    font-size: 11px;
    line-height: 1.3;
}

.txn-right {
    text-align: right;
    flex: 0 0 auto;
}

.txn-right strong {
    display: block;
    color: #087c44;
    font-size: 16px;
    font-weight: 950;
    white-space: nowrap;
}

.txn-right span {
    display: block;
    margin-top: 4px;
    color: #8b9d95;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.points-empty {
    padding: 24px 10px;
}

.empty-action-btn {
    display: inline-flex;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #087c44, #18c878);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(11,143,77,.22);
}

.points-info-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.points-info-card h3 {
    margin: 0;
    color: #123829;
    font-size: 17px;
    font-weight: 950;
}

.points-info-card p {
    margin: 6px 0 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.55;
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .points-hero {
        min-height: 382px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .points-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .points-brand-block h1 {
        font-size: 30px;
    }

    .points-balance-card h2 {
        font-size: 36px;
    }

    .points-summary-grid {
        grid-template-columns: 1fr;
    }

    .points-summary-card.full {
        grid-column: auto;
    }

    .points-txn-item {
        padding: 13px;
    }

    .txn-details strong {
        max-width: 165px;
    }
}

/* ==========================================================
   COMMUNITY PARTNERSHIP PROGRAM - MERCHANT DASHBOARD
========================================================== */

.merchant-page-body {
    background:
        radial-gradient(circle at top left, rgba(18,168,95,.16), transparent 32%),
        #eef8f2;
}

.merchant-hero {
    position: relative;
    padding: max(20px, env(safe-area-inset-top)) 16px 118px;
    min-height: 410px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #087c44 0%, #0b8f4d 48%, #13b869 100%);
    overflow: hidden;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.merchant-brand-block {
    position: relative;
    z-index: 3;
    margin-top: 32px;
}

.merchant-brand-block span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    color: rgba(255,255,255,.72);
}

.merchant-brand-block h1 {
    margin: 8px 0 0;
    max-width: 390px;
    color: #fff;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.merchant-brand-block p {
    margin: 12px 0 0;
    max-width: 360px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.merchant-sales-card {
    position: relative;
    z-index: 3;
    margin-top: 22px;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 22px 42px rgba(0,0,0,.14);
    backdrop-filter: blur(16px);
}

.sales-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sales-card-header span {
    display: block;
    color: rgba(255,255,255,.74);
    font-size: 12px;
    font-weight: 800;
}

.sales-card-header h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 950;
}

.sales-card-header p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 650;
}

.merchant-badge {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: #ffffff;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    flex: 0 0 auto;
}

.sales-card-footer {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sales-card-footer div {
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16);
}

.sales-card-footer small {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sales-card-footer strong {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
}

.merchant-content {
    position: relative;
    z-index: 5;
    margin-top: -82px;
    padding: 0 16px 24px;
}

.merchant-action-panel {
    display: grid;
    gap: 13px;
}

.merchant-scan-card {
    min-height: 104px;
    padding: 18px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(18,200,120,.13), transparent 35%),
        rgba(255,255,255,.98);
    border: 1px solid #c7f4d9;
    box-shadow: 0 18px 40px rgba(7,71,42,.13);
    color: #123829;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.scan-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, #087c44, #18c878);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(11,143,77,.25);
    flex: 0 0 auto;
    position: relative;
}

.scan-icon::before,
.scan-icon::after,
.scan-icon span::before,
.scan-icon span::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: #fff;
}

.scan-icon::before {
    top: 14px;
    left: 14px;
    border-top: 3px solid;
    border-left: 3px solid;
}

.scan-icon::after {
    top: 14px;
    right: 14px;
    border-top: 3px solid;
    border-right: 3px solid;
}

.scan-icon span::before {
    bottom: 14px;
    left: 14px;
    border-bottom: 3px solid;
    border-left: 3px solid;
}

.scan-icon span::after {
    bottom: 14px;
    right: 14px;
    border-bottom: 3px solid;
    border-right: 3px solid;
}

.merchant-scan-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
    color: #123829;
}

.merchant-scan-card p {
    margin: 5px 0 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.45;
}

.scan-arrow {
    margin-left: auto;
    color: #087c44;
    font-size: 34px;
    font-weight: 300;
}

.merchant-summary-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.merchant-summary-card {
    padding: 16px;
    border-radius: 26px;
    background: rgba(255,255,255,.98);
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.09);
}

.merchant-summary-card.full {
    grid-column: 1 / -1;
}

.merchant-summary-card span {
    display: block;
    color: #087c44;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 6px;
}

.merchant-summary-card strong {
    display: block;
    color: #123829;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.merchant-summary-card small {
    display: block;
    margin-top: 5px;
    color: #72877d;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 650;
}

.merchant-status-panel,
.merchant-recent-section,
.merchant-guide-card {
    margin-top: 16px;
    background: rgba(255,255,255,.98);
    border-radius: 30px;
    padding: 18px;
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.08);
}

.merchant-status-panel p {
    margin: 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.55;
}

.merchant-transaction-list {
    display: grid;
    gap: 11px;
}

.merchant-txn-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #f8fcfa;
    border: 1px solid #e8f2ec;
}

.merchant-txn-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.merchant-txn-icon {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 auto;
}

.merchant-txn-details {
    min-width: 0;
    flex: 1;
}

.merchant-txn-details strong {
    display: block;
    color: #123829;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-txn-details span {
    display: block;
    margin-top: 4px;
    color: #72877d;
    font-size: 12px;
    font-weight: 650;
}

.merchant-txn-details small {
    display: block;
    margin-top: 3px;
    color: #8b9d95;
    font-size: 11px;
    line-height: 1.3;
}

.merchant-txn-right {
    text-align: right;
    flex: 0 0 auto;
}

.merchant-txn-right strong {
    display: block;
    color: #087c44;
    font-size: 16px;
    font-weight: 950;
    white-space: nowrap;
}

.merchant-txn-right span {
    display: block;
    margin-top: 4px;
    color: #8b9d95;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.merchant-empty {
    padding: 24px 10px;
}

.merchant-guide-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.merchant-guide-card h3 {
    margin: 0;
    color: #123829;
    font-size: 17px;
    font-weight: 950;
}

.merchant-guide-card p {
    margin: 6px 0 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.55;
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .merchant-hero {
        min-height: 398px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .merchant-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .merchant-brand-block h1 {
        font-size: 30px;
    }

    .sales-card-header h2 {
        font-size: 30px;
    }

    .merchant-summary-grid {
        grid-template-columns: 1fr;
    }

    .merchant-summary-card.full {
        grid-column: auto;
    }

    .merchant-txn-item {
        padding: 13px;
    }

    .merchant-txn-details strong {
        max-width: 165px;
    }
}


/* ==========================================================
   COMMUNITY PARTNERSHIP PROGRAM - CREDIT MEMBER POINTS PAGE
========================================================== */

.credit-page-body {
    background:
        radial-gradient(circle at top left, rgba(18,168,95,.16), transparent 32%),
        #eef8f2;
}

.credit-hero {
    position: relative;
    padding: max(20px, env(safe-area-inset-top)) 16px 116px;
    min-height: 385px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #087c44 0%, #0b8f4d 48%, #13b869 100%);
    overflow: hidden;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.credit-brand-block {
    position: relative;
    z-index: 3;
    margin-top: 32px;
}

.credit-brand-block span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    color: rgba(255,255,255,.72);
}

.credit-brand-block h1 {
    margin: 8px 0 0;
    max-width: 390px;
    color: #fff;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.credit-brand-block p {
    margin: 12px 0 0;
    max-width: 360px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.credit-merchant-card {
    position: relative;
    z-index: 3;
    margin-top: 22px;
    padding: 16px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 22px 42px rgba(0,0,0,.14);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.credit-merchant-card span {
    display: block;
    color: rgba(255,255,255,.70);
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.credit-merchant-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}

.credit-merchant-card small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    font-weight: 650;
}

.credit-content {
    position: relative;
    z-index: 5;
    margin-top: -82px;
    padding: 0 16px 24px;
}

.scanner-card,
.credit-form-card,
.credit-reminder-card {
    background: rgba(255,255,255,.98);
    border-radius: 30px;
    padding: 18px;
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.08);
}

.scanner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.scanner-header span {
    display: block;
    color: #087c44;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 5px;
}

.scanner-header h2 {
    margin: 0;
    color: #123829;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.scanner-header p {
    margin: 6px 0 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.45;
}

.scanner-live-badge {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: #fff8e7;
    color: #9b6500;
    border: 1px solid #ffe0a1;
    font-size: 11px;
    font-weight: 950;
}

.scanner-live-badge.success {
    background: #e9fff2;
    color: #087c44;
    border-color: #c9f5d9;
}

.scanner-frame {
    position: relative;
    width: 100%;
    min-height: 295px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, #ffffff 0%, #f7fcf9 100%);
    border: 1px solid #d8f1e2;
    box-shadow:
        inset 0 0 0 7px #f7fcf9,
        0 12px 28px rgba(7,71,42,.08);
}

#reader {
    width: 100%;
    min-height: 295px;
    overflow: hidden;
}

#reader video {
    border-radius: 24px;
}

.scanner-overlay-note {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(6, 46, 29, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    backdrop-filter: blur(10px);
    z-index: 4;
}

.scan-corner {
    position: absolute;
    width: 38px;
    height: 38px;
    border-color: #087c44;
    z-index: 5;
}

.scan-tl {
    top: 18px;
    left: 18px;
    border-top: 5px solid;
    border-left: 5px solid;
    border-top-left-radius: 12px;
}

.scan-tr {
    top: 18px;
    right: 18px;
    border-top: 5px solid;
    border-right: 5px solid;
    border-top-right-radius: 12px;
}

.scan-bl {
    bottom: 18px;
    left: 18px;
    border-bottom: 5px solid;
    border-left: 5px solid;
    border-bottom-left-radius: 12px;
}

.scan-br {
    bottom: 18px;
    right: 18px;
    border-bottom: 5px solid;
    border-right: 5px solid;
    border-bottom-right-radius: 12px;
}

.scanner-actions {
    margin-top: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.scanner-btn {
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: #e9fff2;
    color: #087c44;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid #c9f5d9;
}

.scanner-btn.secondary {
    background: #f7fcf9;
    color: #123829;
    border-color: #e4f0e9;
}

.credit-form-card {
    margin-top: 16px;
}

.credit-field-group {
    margin-bottom: 15px;
}

.credit-field-group label {
    display: block;
    color: #254d3d;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 7px;
}

.credit-field-group input,
.credit-field-group textarea {
    width: 100%;
    border: 1px solid #dcebe3;
    background: #f8fcfa;
    border-radius: 18px;
    padding: 14px;
    outline: none;
    color: #123829;
    font-size: 15px;
    font-weight: 650;
    resize: vertical;
}

.credit-field-group input:focus,
.credit-field-group textarea:focus {
    border-color: #087c44;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11,143,77,.10);
}

.credit-field-group small {
    display: block;
    margin-top: 6px;
    color: #72877d;
    font-size: 11px;
    font-weight: 650;
}

.success-note {
    color: #087c44 !important;
}

.amount-control {
    min-height: 56px;
    display: flex;
    align-items: center;
    border: 1px solid #dcebe3;
    background: #f8fcfa;
    border-radius: 18px;
    padding: 0 14px;
}

.amount-control:focus-within {
    border-color: #087c44;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11,143,77,.10);
}

.amount-control span {
    color: #087c44;
    font-size: 18px;
    font-weight: 950;
    margin-right: 8px;
}

.amount-control input {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    height: 54px;
    font-size: 18px;
    font-weight: 850;
}

.amount-control input:focus {
    box-shadow: none;
}

.credit-preview-card {
    margin: 2px 0 15px;
    padding: 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, #f3fff7, #ffffff);
    border: 1px solid #d9f4e3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.credit-preview-card span {
    display: block;
    color: #72877d;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 3px;
}

.credit-preview-card strong {
    color: #087c44;
    font-size: 24px;
    font-weight: 950;
}

.credit-preview-card small {
    color: #72877d;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.credit-submit-btn {
    width: 100%;
    min-height: 58px;
    margin-top: 6px;
    border: none;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #087c44 0%, #10a65d 45%, #18c878 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 16px 32px rgba(11,143,77,.26);
}

.credit-submit-btn:disabled {
    opacity: .78;
}

.credit-submit-btn.loading .btn-text {
    display: none;
}

.credit-submit-btn.loading .btn-loader {
    display: block;
}

.credit-message {
    display: none;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
}

.credit-message.error,
.credit-message.success {
    display: block;
}

.credit-message.error {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffd1d1;
}

.credit-message.success {
    background: #edfff4;
    color: #087443;
    border: 1px solid #b9f4cf;
}

.credit-reminder-card {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.credit-reminder-card h3 {
    margin: 0;
    color: #123829;
    font-size: 17px;
    font-weight: 950;
}

.credit-reminder-card p {
    margin: 6px 0 0;
    color: #72877d;
    font-size: 13px;
    line-height: 1.55;
}

/* ==========================================================
   CONFIRM MODAL
========================================================== */

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6,46,29,.54);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.confirm-modal.show {
    display: flex;
}

.confirm-box {
    width: 100%;
    max-width: 488px;
    background: #fff;
    border-radius: 30px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    animation: modalUp .22s ease;
}

@keyframes modalUp {
    from {
        transform: translateY(24px);
        opacity: .4;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: #e9fff2;
    color: #087c44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 950;
    margin-bottom: 14px;
}

.confirm-box h3 {
    margin: 0;
    color: #123829;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.confirm-box p {
    margin: 8px 0 0;
    color: #72877d;
    font-size: 14px;
    line-height: 1.55;
}

.confirm-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.confirm-actions button {
    min-height: 52px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 950;
}

.confirm-cancel {
    background: #f3f7f4;
    color: #123829;
}

.confirm-submit {
    background: linear-gradient(135deg, #087c44, #18c878);
    color: #fff;
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .credit-hero {
        min-height: 370px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .credit-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .credit-brand-block h1 {
        font-size: 30px;
    }

    .scanner-actions {
        grid-template-columns: 1fr;
    }

    .scanner-frame,
    #reader {
        min-height: 270px;
    }

    .credit-preview-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .credit-preview-card small {
        text-align: left;
    }
}


/* ==========================================================
   MERCHANT DASHBOARD - FULL RECORDS UPGRADE
========================================================== */

.merchant-hero-expanded {
    min-height: 445px;
}

.merchant-content-expanded {
    margin-top: -82px;
}

.merchant-footer-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.merchant-summary-extended {
    grid-template-columns: 1fr 1fr;
}

.merchant-filter-card,
.merchant-record-summary {
    margin-top: 16px;
}

.merchant-filter-card {
    background: rgba(255,255,255,.98);
    border-radius: 30px;
    padding: 18px;
    border: 1px solid #e4f0e9;
    box-shadow: 0 14px 35px rgba(7,71,42,.08);
}

.merchant-filter-form {
    display: grid;
    gap: 13px;
}

.filter-field label {
    display: block;
    color: #254d3d;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 7px;
}

.filter-field input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #dcebe3;
    background: #f8fcfa;
    border-radius: 18px;
    padding: 12px 14px;
    outline: none;
    color: #123829;
    font-size: 14px;
    font-weight: 700;
}

.filter-field input:focus {
    border-color: #087c44;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11,143,77,.10);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.filter-actions button,
.filter-actions a {
    min-height: 50px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.filter-actions button {
    border: none;
    background: linear-gradient(135deg, #087c44, #18c878);
    color: #fff;
    box-shadow: 0 12px 24px rgba(11,143,77,.20);
}

.filter-actions a {
    background: #f3f7f4;
    color: #123829;
    border: 1px solid #e4f0e9;
}

.merchant-record-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.merchant-pagination {
    margin-top: 15px;
    padding: 13px;
    border-radius: 22px;
    background: #f8fcfa;
    border: 1px solid #e8f2ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.merchant-pagination a,
.merchant-pagination span {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.merchant-pagination a {
    background: #e9fff2;
    color: #087c44;
    border: 1px solid #c9f5d9;
}

.merchant-pagination span.disabled {
    background: #f1f5f2;
    color: #9aa9a1;
    border: 1px solid #e3ebe6;
}

.merchant-pagination strong {
    color: #123829;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
}

@media (max-width: 390px) {
    .merchant-hero-expanded {
        min-height: 430px;
    }

    .merchant-footer-3 {
        grid-template-columns: 1fr;
    }

    .merchant-summary-extended,
    .merchant-record-summary,
    .filter-row,
    .filter-actions {
        grid-template-columns: 1fr;
    }

    .merchant-pagination {
        flex-direction: column;
    }

    .merchant-pagination a,
    .merchant-pagination span {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================
   PROFILE IMAGE AVATAR
========================================================== */

.avatar-circle.avatar-image {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 2px solid rgba(255,255,255,.75);
}

.avatar-circle.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bootstrap QR scan icon for merchant action */
.scan-icon-bootstrap {
    font-size: 28px;
    color: #ffffff;
}

.scan-icon-bootstrap i {
    position: relative;
    z-index: 2;
    line-height: 1;
}

.scan-arrow i {
    font-size: 20px;
    font-weight: 900;
}

/* ==========================================================
   SWEETALERT SUCCESS POPUP - QR REWARD CREDIT
========================================================== */

.swal2-popup.swal-wallet-popup {
    border-radius: 28px !important;
    padding: 24px !important;
    box-shadow: 0 24px 60px rgba(6, 46, 29, .22) !important;
}

.swal2-title {
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
    color: #123829 !important;
}

.swal2-html-container {
    margin-top: 12px !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    padding: 12px 30px !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 24px rgba(11,143,77,.22) !important;
}

.swal-success-details {
    display: grid;
    gap: 9px;
    text-align: left;
    margin-top: 8px;
}

.swal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    background: #f8fcfa;
    border: 1px solid #e4f0e9;
}

.swal-row span {
    color: #72877d;
    font-size: 12px;
    font-weight: 800;
}

.swal-row strong {
    color: #123829;
    font-size: 13px;
    font-weight: 950;
    text-align: right;
}

.swal-row.highlight {
    background: #e9fff2;
    border-color: #c9f5d9;
}

.swal-row.highlight strong {
    color: #087c44;
}

.swal-ref {
    text-align: center;
    color: #72877d;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

/* ==========================================================
   SWEETALERT MEMBER POINTS POPUP
========================================================== */

.swal2-popup.swal-wallet-popup {
    border-radius: 28px !important;
    padding: 24px !important;
    box-shadow: 0 24px 60px rgba(6, 46, 29, .22) !important;
}

.swal2-title {
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
    color: #123829 !important;
}

.swal2-html-container {
    margin-top: 12px !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    padding: 12px 30px !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 24px rgba(11,143,77,.22) !important;
}

.swal-success-details {
    display: grid;
    gap: 9px;
    text-align: left;
    margin-top: 8px;
}

.swal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    background: #f8fcfa;
    border: 1px solid #e4f0e9;
}

.swal-row span {
    color: #72877d;
    font-size: 12px;
    font-weight: 800;
}

.swal-row strong {
    color: #123829;
    font-size: 13px;
    font-weight: 950;
    text-align: right;
}

.swal-row.highlight {
    background: #e9fff2;
    border-color: #c9f5d9;
}

.swal-row.highlight strong {
    color: #087c44;
}

.swal-ref {
    text-align: center;
    color: #72877d;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

/* Highlight amount field after QR capture */
.amount-control.amount-focus-highlight {
    border-color: #087c44 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 5px rgba(11,143,77,.13), 0 12px 24px rgba(7,71,42,.08) !important;
}

.back-home-btn {
    margin-top: 14px;
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    color: #0D5C63;
    background: #ffffff;
    border: 1px solid rgba(13, 92, 99, 0.18);
    box-shadow: 0 10px 24px rgba(13, 92, 99, 0.12);
    transition: all .22s ease;
}

.back-home-btn:hover {
    color: #08464b;
    background: #f4fbfb;
    transform: translateY(-2px);
    text-decoration: none;
}

.back-home-btn:active {
    transform: scale(.98);
}

.back-home-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 92, 99, 0.10);
    font-size: 17px;
    font-weight: 900;
}