/* =========================================================
   LughaPay-Inspired Neon Glass & Gradient UI Theme
   ========================================================= */
:root {
    --bg-gradient: linear-gradient(135deg, #071b91 0%, #0927ad 42%, #21118f 72%, #35108f 100%);
    --panel-bg: linear-gradient(130deg, #00344a 0%, #00172c 28%, #001226 70%, #081b4e 100%);
    --panel-border: #267798;
    --panel-glow: inset 0 0 12px rgba(0, 217, 255, 0.14), 0 0 10px rgba(0, 180, 255, 0.14);
    --card-mzungu-bg: linear-gradient(115deg, #04bfc6 0%, #0672e6 49%, #6500e9 100%);
    --card-mzungu-border: #19d8e3;
    --kpi-bg: #f6f7ff;
    --kpi-text: #14225d;
    --green-btn: linear-gradient(180deg, #00e851 0%, #00b83c 52%, #009c36 100%);
    --purple-btn: linear-gradient(180deg, #a334ff 0%, #7b0de8 55%, #6404be 100%);
    --cta-gradient: linear-gradient(105deg, #00c7c7 0%, #0078ff 48%, #bc00ff 100%);
    --gold: #ffbd00;
    --cyan: #00d9ff;
    --neon-green: #00ff00;
    --text-white: #f5f8ff;
    --text-muted: #91a2bc;
    --footer-bg: #07111e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text-white);
    background-color: #071b91;
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================================================
   APP CONTAINER
   ========================================================= */
.app-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 12px 14px 105px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================================================
   TOP HEADER
   ========================================================= */
.lughapay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px 14px;
    border-bottom: 1px solid rgba(115, 165, 255, 0.22);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00e1ff, #0077ff 60%, #7b0de8);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #04132b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.brand-logo-inner i {
    color: #00f090;
    filter: drop-shadow(0 0 6px rgba(0, 240, 144, 0.45));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-title {
    font-size: clamp(20px, 4.8vw, 27px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-verified {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.45);
}

.brand-subtitle {
    font-size: clamp(12px, 3vw, 14px);
    color: #cbd8ff;
    font-weight: 500;
}

.btn-install-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00dba4 0%, #009875 100%);
    border: 1px solid #20f8bd;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 219, 164, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
}

.btn-install-app:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

/* =========================================================
   HERO NOTIFICATION BANNER
   ========================================================= */
.notification-banner {
    position: relative;
    background: linear-gradient(145deg, #06253b 0%, #06172c 72%, #091d42 100%);
    border: 1.5px solid #00ff00;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: inset 0 0 14px rgba(0, 255, 0, 0.1), 0 0 16px rgba(0, 255, 100, 0.14);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-new-pill {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f60020;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(246, 0, 32, 0.45);
}

.notification-heading {
    font-size: clamp(16px, 4.1vw, 20px);
    font-weight: 900;
    color: #00ffff;
    line-height: 1.25;
    padding-right: 54px;
}

.notification-copy {
    font-size: clamp(12.5px, 3.4vw, 15px);
    font-weight: 600;
    line-height: 1.42;
    color: #00ff00;
}

.notification-copy .hl-cyan {
    color: #00ffff;
}

.notification-copy .hl-white {
    color: #ffffff;
    font-weight: 700;
}

.btn-banner-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--green-btn);
    border: 1px solid #3cff79;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
    margin-top: 2px;
}

.btn-banner-support:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* =========================================================
   3-COLUMN KPI / WALLET CARDS
   ========================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kpi-card {
    background: var(--kpi-bg);
    color: var(--kpi-text);
    border-radius: 18px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(3, 10, 48, 0.25);
    min-height: 124px;
}

.kpi-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: clamp(10px, 2.5vw, 13px);
    font-weight: 900;
    letter-spacing: 0.03em;
    color: #14225d;
    text-transform: uppercase;
}

.kpi-icon-green { color: #00c966; }
.kpi-icon-gold { color: #f59e0b; }
.kpi-icon-purple { color: #8b5cf6; }

.kpi-value {
    font-size: clamp(17px, 4vw, 25px);
    font-weight: 900;
    color: #10225d;
    line-height: 1.15;
}

.kpi-sub {
    font-size: clamp(10.5px, 2.6vw, 12.5px);
    color: #5a6a92;
    font-weight: 600;
}

.btn-toa-pesa {
    width: 100%;
    max-width: 160px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #13225c;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(255, 189, 0, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-toa-pesa:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* =========================================================
   PRIMARY REGISTRATION CTA BANNER
   ========================================================= */
.btn-register-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 74px;
    padding: 14px 24px;
    border-radius: 40px;
    background: var(--cta-gradient);
    border: 2px solid #06bfe8;
    color: #ffffff;
    font-size: clamp(17px, 4.3vw, 22px);
    font-weight: 900;
    box-shadow: 0 0 18px rgba(8, 201, 232, 0.42);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-register-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(8, 201, 232, 0.62);
}

.btn-register-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.cta-yellow-icon {
    color: #ffcc00;
    font-size: 1.15em;
}

.cta-chevrons {
    color: #ffcc00;
    font-weight: 900;
    letter-spacing: -2px;
    font-size: 1.1em;
}

/* =========================================================
   WAZUNGU SECTION HEADER & LIVE CLOCK
   ========================================================= */
.wazungu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.wazungu-title {
    font-size: clamp(23px, 5vw, 31px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.live-clock-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(5, 12, 52, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: clamp(11px, 2.7vw, 13px);
    font-weight: 700;
    color: #e2ebff;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f077;
    box-shadow: 0 0 8px #00f077;
    display: inline-block;
    flex-shrink: 0;
}

/* =========================================================
   WAZUNGU PROFILE CARDS
   ========================================================= */
.wazungu-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mzungu-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 14px;
    background: var(--card-mzungu-bg);
    border: 1px solid var(--card-mzungu-border);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px rgba(5, 14, 70, 0.32);
}

.mzungu-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mzungu-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mzungu-avatar-wrap {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
}

.mzungu-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #ffffff;
    background: #0a204a;
}

.status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
}

.status-dot.online {
    background: #00e868;
}

.status-dot.offline {
    background: #ff5c5c;
    border-color: #162238;
}

.mzungu-meta {
    min-width: 0;
}

.mzungu-name {
    font-size: clamp(16px, 4vw, 21px);
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mzungu-sub {
    font-size: clamp(11.5px, 2.9vw, 13.5px);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.btn-chat-pill {
    width: 100%;
    max-width: 240px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--green-btn);
    border: 1px solid #3cff79;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(0, 210, 80, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-chat-pill:hover:not(:disabled) {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.btn-chat-pill:disabled {
    background: rgba(120, 153, 168, 0.72);
    border-color: rgba(180, 205, 220, 0.25);
    color: rgba(235, 245, 255, 0.65);
    box-shadow: none;
    cursor: not-allowed;
}

.mzungu-right {
    border-left: 2px solid rgba(255, 255, 255, 0.85);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.mzungu-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12.5px, 3.2vw, 15px);
    color: rgba(255, 255, 255, 0.92);
}

.mzungu-stat-row i {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.mzungu-stat-row strong {
    color: #ffffff;
    font-weight: 900;
}

/* =========================================================
   PAGINATION BAR
   ========================================================= */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: var(--panel-glow);
}

.btn-page {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.14);
    border: 1px solid rgba(0, 217, 255, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.15s ease;
}

.btn-page:hover:not(:disabled) {
    background: rgba(0, 217, 255, 0.28);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-status {
    font-size: 13px;
    font-weight: 800;
    color: #bae6fd;
}

/* =========================================================
   DARK TEAL-NAVY NEON PANELS (REVIEWS, ANNOUNCEMENTS, SUPPORT)
   ========================================================= */
.neon-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    padding: 20px 18px;
    box-shadow: var(--panel-glow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-header-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.panel-title {
    font-size: clamp(18px, 4.3vw, 22px);
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-title-icon {
    color: #00f090;
    font-size: 1.05em;
}

.panel-subtitle {
    font-size: 13px;
    color: #b8c9e6;
    margin-top: 4px;
}

.rating-score-box {
    flex-shrink: 0;
    border: 1.5px solid #00c864;
    background: rgba(0, 48, 42, 0.6);
    border-radius: 16px;
    padding: 8px 14px;
    text-align: center;
}

.rating-score-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
}

.rating-score-stars {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 1px;
    margin: 2px 0;
}

.rating-score-count {
    font-size: 11px;
    color: #a3b8d6;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-item {
    background: rgba(3, 18, 38, 0.72);
    border: 1px solid rgba(38, 119, 152, 0.55);
    border-radius: 16px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.av-blue { background: #1d4ed8; }
.av-purple { background: #7e22ce; }
.av-teal { background: #0d9488; }
.av-green { background: #15803d; }
.av-amber { background: #b45309; }

.review-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
}

.review-time {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.review-stars {
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
}

.review-text {
    font-size: 13px;
    color: #dce7fa;
    line-height: 1.45;
    padding-left: 44px;
}

/* Announcements */
.announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(3, 18, 38, 0.72);
    border: 1px solid rgba(38, 119, 152, 0.55);
    border-radius: 16px;
    padding: 14px;
}

.announcement-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ann-pink {
    background: rgba(236, 72, 153, 0.16);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.35);
}

.ann-purple {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.35);
}

.announcement-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.announcement-desc {
    font-size: 13px;
    color: #b8c9e6;
}

.announcement-desc strong {
    color: #00f090;
}

/* Support Action Rows */
.support-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 999px;
    color: #ffffff;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.support-action-row:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.support-row-green {
    background: var(--green-btn);
    border: 1px solid #3cff79;
    box-shadow: 0 4px 16px rgba(0, 210, 80, 0.25);
}

.support-row-purple {
    background: var(--purple-btn);
    border: 1px solid #c27bff;
    box-shadow: 0 4px 16px rgba(140, 40, 255, 0.25);
}

.support-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.support-row-title {
    font-size: 14.5px;
    font-weight: 800;
}

.support-row-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   FULL-BLEED DARK FOOTER
   ========================================================= */
.lp-footer {
    width: 100%;
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 215, 100, 0.16);
    padding: 32px 16px 96px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-lp-badge {
    padding: 4px 9px;
    border-radius: 8px;
    border: 1.5px solid #d4af37;
    color: #f3d26b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
}

.footer-brand-name span {
    color: #f3d26b;
}

.footer-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-pill {
    padding: 7px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(145, 162, 188, 0.25);
    color: #d6e2f5;
    font-size: 12.5px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(243, 210, 107, 0.5);
}

.footer-divider {
    width: 100%;
    max-width: 480px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin: 4px 0;
}

.footer-crafted {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #d4af37;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-copy {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* =========================================================
   FIXED FLOATING BOTTOM PILLS
   ========================================================= */
.floating-whatsapp-left,
.floating-care-right {
    position: fixed;
    bottom: 14px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
    animation: lughapaySoftEdge 4.2s ease-in-out infinite;
}

.floating-whatsapp-left:hover,
.floating-care-right:hover {
    transform: translateY(-2px);
}

.floating-whatsapp-left {
    left: 14px;
    background: var(--green-btn);
    border: 1.5px solid #3cff79;
}

.floating-care-right {
    right: 14px;
    background: var(--purple-btn);
    border: 1.5px solid #c27bff;
}

@keyframes lughapaySoftEdge {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 8px rgba(0, 217, 255, 0.25); }
    50% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 240, 144, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp-left,
    .floating-care-right {
        animation: none;
    }
}

/* =========================================================
   TOAST PAYOUT
   ========================================================= */
.toast-payout {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 200;
    background: rgba(4, 24, 46, 0.95);
    border: 1.5px solid #00e851;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease;
    max-width: calc(100vw - 28px);
}

.toast-payout.show {
    transform: translateX(-50%) translateY(0);
}

.toast-payout-icon {
    color: #00f077;
    font-size: 18px;
    flex-shrink: 0;
}

/* =========================================================
   MODALS (DARK TEAL-NAVY GLASS)
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(2, 8, 28, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

#rewardModal {
    z-index: 500;
}

.reward-card-new {
    background: linear-gradient(180deg, #06283d 0%, #091834 55%, #161547 100%);
    border: 1.5px solid #00c7e8;
    text-align: center;
    padding: 24px 20px;
}

.reward-top-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #4338ca, #2e1065);
    border: 1px solid rgba(165, 180, 252, 0.35);
    color: #ffd000;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.45);
}

.reward-title-main {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin: 2px 0;
}

.reward-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 13px 14px;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.45;
    color: #e8f1ff;
}

.reward-box-green {
    background: linear-gradient(90deg, rgba(0, 130, 80, 0.72), rgba(0, 82, 68, 0.72));
    border: 1px solid #00e676;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
}

.reward-box-green p {
    flex: 1;
    text-align: center;
}

.reward-box-icon-green {
    color: #00f077;
    font-size: 22px;
    flex-shrink: 0;
}

.reward-box-purple {
    background: linear-gradient(135deg, rgba(30, 32, 92, 0.85), rgba(45, 22, 88, 0.85));
    border: 1px solid rgba(129, 140, 248, 0.45);
}

.reward-box-icon-purple {
    color: #a78bfa;
    font-size: 20px;
    flex-shrink: 0;
}

.reward-box-amber {
    background: linear-gradient(90deg, rgba(78, 48, 12, 0.78), rgba(42, 22, 58, 0.82));
    border: 1px solid #ffb703;
    justify-content: center;
    text-align: center;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--panel-bg);
    border: 1.5px solid #00c7e8;
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 0 32px rgba(0, 217, 255, 0.28);
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #ffffff;
}

.modal-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(145, 162, 188, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 36px;
}

.modal-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 217, 255, 0.14);
    border: 1px solid rgba(0, 217, 255, 0.45);
    color: #00e1ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-heading {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
}

.modal-subtext {
    font-size: 13px;
    color: #b8c9e6;
}

.modal-balance-pill {
    background: rgba(0, 42, 66, 0.65);
    border: 1px solid #267798;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 900;
    color: #00f077;
}

.modal-field-label {
    font-size: 13px;
    font-weight: 800;
    color: #e2ebff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.modal-field-label i {
    color: #00d9ff;
}

.modal-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(4, 22, 46, 0.85);
    border: 1px solid #267798;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.modal-input:focus {
    border-color: #00e1ff;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.network-card {
    border-radius: 12px;
    padding: 5px 8px;
    height: 58px;
    border: 2px solid transparent;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.network-logo-svg {
    width: 100%;
    height: 100%;
    max-height: 46px;
    display: block;
}

.network-card.selected {
    border-color: #00f077;
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(0, 240, 119, 0.5);
}

.net-vodacom { background: #e60000; color: #ffffff; }
.net-airtel { background: #ffffff; color: #e40000; }
.net-yas { background: #ffffff; color: #14225d; }
.net-halotel { background: #ffffff; color: #f97316; }

/* WITHDRAW LOADING & RESULT RECEIPT MODALS */
.withdraw-loading-card {
    background: linear-gradient(145deg, rgba(15, 30, 55, 0.98), rgba(6, 16, 31, 0.99));
    border: 1px solid rgba(80, 132, 203, 0.35);
    border-radius: 28px;
    padding: 46px 24px 36px;
    text-align: center;
    align-items: center;
    gap: 12px;
}

.withdraw-spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00e89a;
    border-right-color: #00d9ff;
    animation: lpSpin 0.85s linear infinite;
    margin-bottom: 14px;
}

@keyframes lpSpin {
    to { transform: rotate(360deg); }
}

.withdraw-loading-title {
    font-size: 19px;
    font-weight: 900;
    color: #f4f8ff;
}

.withdraw-loading-sub {
    font-size: 14px;
    color: #91a2b8;
}

.withdrawal-result-card {
    background: linear-gradient(145deg, rgba(12, 34, 62, 0.98), rgba(6, 16, 34, 0.99));
    border: 1.5px solid #00a8e8;
    border-radius: 24px;
    max-width: 410px;
    padding: 24px 20px;
    text-align: center;
    gap: 12px;
}

.withdraw-failed-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, #480b32, #98042f);
    border: 2px solid #ff64aa;
    box-shadow: 0 0 18px rgba(255, 0, 89, 0.48);
    color: #ffd3ea;
    font-size: 32px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.withdraw-result-title {
    font-size: 23px;
    font-weight: 900;
    color: #ffffff;
}

.withdraw-result-title .fail-pink {
    color: #ff5c7c;
}

.withdraw-result-text {
    font-size: 13.5px;
    color: #cbd8ee;
    line-height: 1.45;
}

.withdraw-receipt {
    background: linear-gradient(160deg, rgba(8, 30, 66, 0.9), rgba(14, 18, 54, 0.94));
    border: 1.5px solid #0088ff;
    box-shadow: inset 0 0 14px rgba(0, 136, 255, 0.16), 0 0 12px rgba(99, 102, 241, 0.22);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.receipt-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.receipt-header i {
    color: #38bdf8;
}

.receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 2px 0;
}

.receipt-label {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.receipt-label i {
    color: #00b4ff;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.receipt-val {
    color: #ffffff;
    font-weight: 800;
}

.receipt-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(0, 102, 74, 0.65), rgba(0, 62, 72, 0.72));
    border: 1px solid rgba(0, 232, 119, 0.45);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 2px 0;
}

.receipt-total-label {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.receipt-total-label i {
    color: #38bdf8;
}

.receipt-total-val {
    font-size: 17px;
    font-weight: 900;
    color: #00f077;
}

.receipt-divider {
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    margin: 2px 0;
}

.withdraw-register-btn {
    justify-content: space-between;
    padding: 13px 20px;
    margin-top: 2px;
}

.cta-chevrons-white {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1em;
}

.btn-modal-green {
    width: 100%;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--green-btn);
    border: 1px solid #3cff79;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 210, 80, 0.3);
}

.btn-modal-close-pill {
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(145, 162, 188, 0.3);
    color: #dce7fa;
    font-size: 13px;
    font-weight: 700;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #dce7fa;
    background: rgba(3, 18, 38, 0.65);
    border: 1px solid rgba(38, 119, 152, 0.4);
    border-radius: 12px;
    padding: 9px 12px;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00d9ff;
    color: #04132b;
    font-weight: 900;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Duration Picker Modal */
.duration-profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.duration-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00f077;
}

.duration-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.duration-option-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.12s ease;
}

.duration-option-btn:hover {
    transform: translateY(-1px);
}

.dur-green { background: linear-gradient(90deg, #00c853, #009624); }
.dur-blue { background: linear-gradient(90deg, #0077ff, #004ecb); }
.dur-purple { background: linear-gradient(90deg, #9333ea, #6b21a8); }
.dur-teal { background: linear-gradient(90deg, #0d9488, #0f766e); }

/* =========================================================
   FULL-SCREEN CHAT OVERLAY
   ========================================================= */
.chat-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: linear-gradient(180deg, #061428 0%, #0a1630 55%, #141948 100%);
    display: none;
    flex-direction: column;
}

.chat-screen-overlay.active {
    display: flex;
}

.chat-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(6, 20, 40, 0.96);
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.chat-header-info h4 {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}

.chat-header-status {
    font-size: 12.5px;
    font-weight: 700;
    color: #00f090;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* COUNTDOWN RING & MAPATO SESSION BAR */
.chat-session-wrap {
    padding: 12px 16px 6px;
}

.chat-session-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(12, 46, 72, 0.72), rgba(22, 22, 68, 0.78));
    border: 1px solid rgba(0, 217, 255, 0.42);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.countdown-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#ffd000 var(--remaining, 100%), rgba(255, 255, 255, 0.14) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}

.countdown-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #08182e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-ring-inner strong {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.chat-session-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.session-earnings {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-earnings-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-coin-icon {
    color: #ffd000;
    font-size: 22px;
    flex-shrink: 0;
}

.chat-earnings-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.earnings-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #cbd5e1;
    text-transform: uppercase;
}

.earnings-value {
    font-size: 19px;
    font-weight: 900;
    color: #00f077;
    font-variant-numeric: tabular-nums;
}

.chat-progress-track {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.chat-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00e851, #00f090);
    transition: width 0.35s linear;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-msg-row.sent {
    justify-content: flex-end;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-msg-stack {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chat-msg-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    padding-left: 4px;
}

.chat-bubble {
    padding: 11px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
}

.chat-bubble.incoming {
    background: linear-gradient(135deg, #4f1d96, #3b1782);
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: #ffffff;
    border-bottom-left-radius: 6px;
}

.chat-bubble.outgoing {
    background: linear-gradient(135deg, #00966c, #007d5b);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.chat-typing-bubble {
    align-self: flex-start;
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 900;
}

.chat-bottom-wrapper {
    padding: 12px 16px;
    background: rgba(6, 20, 40, 0.96);
    border-top: 1px solid rgba(56, 189, 248, 0.16);
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-field {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00e868;
    color: #04132b;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */
@media (max-width: 560px) {
    .app-container {
        padding: 10px 10px 96px;
        gap: 12px;
    }

    .brand-logo-ring {
        width: 52px;
        height: 52px;
    }

    .btn-install-app {
        padding: 8px 13px;
        font-size: 12.5px;
    }

    .cards-grid {
        gap: 8px;
    }

    .kpi-card {
        padding: 12px 6px;
        border-radius: 14px;
        min-height: 112px;
    }

    .kpi-title {
        font-size: 9.5px;
        gap: 4px;
    }

    .mzungu-card {
        grid-template-columns: 1.2fr 1fr;
        padding: 14px 12px;
        gap: 10px;
    }

    .mzungu-avatar-wrap,
    .mzungu-avatar {
        width: 52px;
        height: 52px;
    }

    .mzungu-right {
        padding-left: 10px;
    }

    .floating-whatsapp-left,
    .floating-care-right {
        padding: 8px 11px;
        font-size: 11px;
        line-height: 1.15;
        bottom: 10px;
        max-width: calc(50% - 14px);
    }

    .floating-whatsapp-left {
        left: 10px;
    }

    .floating-care-right {
        right: 10px;
    }

    .review-text {
        padding-left: 0;
    }
}
