/* =========================================
   EARNING STREET DASHBOARD  (MOBILE FIRST)
   + matching Login styles
========================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #07194c;
    font-weight: 700;
}

button, a { font-family: inherit; }
button { cursor: pointer; }

.dashboard-page { width: 100%; min-height: 100vh; padding: 14px; }
.dashboard-app { width: 100%; max-width: 480px; margin: 0 auto; }


/* =========================================
   HEADER
========================================= */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 1px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 13px;
    overflow: hidden;
    background: #07194c;
    display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text h1 { font-size: 17px; line-height: 1.1; font-weight: 1000; color: #07194c; }
.brand-text span {
    display: block; margin-top: 3px;
    font-size: 8px; font-weight: 900; letter-spacing: .5px; color: #6c788b;
}
.notification-btn {
    width: 43px; height: 43px;
    border: 1px solid #dce4ed;
    border-radius: 13px;
    background: #ffffff;
    color: #07194c;
    font-size: 19px; font-weight: 1000;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; line-height: 1; padding: 0;
}


/* =========================================
   HERO
========================================= */
.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 21px;
    border-radius: 22px;
    background: linear-gradient(135deg, #07194c 0%, #123b83 100%);
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 9px 22px rgba(7, 25, 76, .12);
}
.hero-decoration {
    position: absolute;
    width: 130px; height: 130px;
    border: 24px solid rgba(245, 180, 0, .10);
    border-radius: 50%;
    right: -45px; top: -45px;
}
.hero-content { position: relative; z-index: 2; }
.hero-label { font-size: 8px; color: #f5c21a; font-weight: 1000; letter-spacing: 1px; }
.dashboard-hero h2 { margin: 7px 0; font-size: 25px; line-height: 1.05; font-weight: 1000; letter-spacing: -.5px; }
.dashboard-hero p {
    max-width: 310px; margin-bottom: 15px;
    font-size: 9px; line-height: 1.5; color: #dce6f5; font-weight: 700;
}
.hero-button {
    border: 0; border-radius: 11px; padding: 10px 14px;
    background: #f5b400; color: #07194c; font-size: 9px; font-weight: 1000;
}
.hero-button span { margin-left: 5px; font-size: 12px; }


/* =========================================
   SECTION
========================================= */
.dashboard-section { margin-bottom: 20px; }
.section-heading {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 2px 10px;
}
.section-heading h3 { font-size: 13px; font-weight: 1000; }
.section-heading span { font-size: 8px; font-weight: 1000; color: #16843a; }


/* =========================================
   PRODUCT CARDS
========================================= */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card {
    position: relative;
    min-height: 180px;
    padding: 12px;
    text-align: left;
    border: 1px solid #dce4ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(7, 25, 76, .04);
}
.product-card.card-purple { background: #f5f0ff; }
.product-card.card-green  { background: #eef8f0; }
.product-card.card-orange { background: #fff5ed; }
.product-image {
    width: 100%; height: 96px; margin-bottom: 5px;
    display: flex; align-items: center; justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-info strong { display: block; font-size: 10px; font-weight: 1000; }
.product-info span {
    display: block; margin-top: 4px; padding-right: 18px;
    font-size: 7px; line-height: 1.4; color: #69768c; font-weight: 700;
}
.product-arrow {
    position: absolute; right: 10px; bottom: 10px;
    width: 25px; height: 25px; border-radius: 50%;
    display: grid; place-items: center;
    background: #07194c; color: #ffffff; font-size: 13px; font-weight: 1000;
}


/* =========================================
   FEATURED
========================================= */
.featured-card {
    width: 100%; min-height: 76px;
    display: flex; align-items: center; gap: 12px;
    padding: 13px; text-align: left;
    border: 1px solid #dce4ed; border-radius: 18px;
    background: #ffffff; box-shadow: 0 4px 12px rgba(7, 25, 76, .04);
}
.featured-icon {
    width: 48px; height: 48px; flex: 0 0 48px;
    display: grid; place-items: center;
    border-radius: 13px; background: #eaf2ff; color: #0876d1;
    font-size: 20px; font-weight: 1000;
}
.featured-content { flex: 1; }
.featured-content strong { display: block; font-size: 10px; font-weight: 1000; }
.featured-content span { display: block; margin-top: 3px; font-size: 8px; color: #69768c; font-weight: 700; }
.featured-arrow { font-size: 20px; font-weight: 1000; }


/* =========================================
   DISCOVER
========================================= */
.discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.discover-card {
    min-height: 88px; padding: 11px 7px;
    border: 1px solid #dce4ed; border-radius: 15px;
    background: #ffffff; text-align: center;
}
.discover-icon { margin-bottom: 7px; color: #16843a; font-size: 20px; font-weight: 1000; }
.discover-card strong { display: block; font-size: 8px; font-weight: 1000; }
.discover-card span { font-size: 7px; color: #69768c; font-weight: 700; }


/* =========================================
   CTA
========================================= */
.dashboard-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 20px; padding: 17px;
    border-radius: 18px; background: #16843a; color: #ffffff;
}
.cta-content strong { display: block; font-size: 12px; font-weight: 1000; }
.cta-content span { display: block; margin-top: 3px; font-size: 8px; color: #e5f5e9; font-weight: 700; }
.dashboard-cta button {
    flex-shrink: 0; border: 0; border-radius: 10px; padding: 9px 11px;
    background: #f5b400; color: #07194c; font-size: 8px; font-weight: 1000;
}


/* =========================================
   BOTTOM NAVIGATION
========================================= */
.bottom-navigation {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: calc(100% - 24px);
    max-width: 456px;
    z-index: 80;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    padding: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    border: 1px solid #dce4ed; border-radius: 19px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 18px rgba(7,25,76,.08);
    backdrop-filter: blur(10px);
}
/* keep page content clear of the fixed nav */
.dashboard-page { padding-bottom: 84px; }
.nav-item {
    min-height: 49px; border: 0; border-radius: 12px;
    background: transparent; color: #748196; font-size: 7px; font-weight: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; text-decoration: none;
}
.nav-item b { display: block; margin-bottom: 2px; font-size: 18px; font-weight: 1000; }
.nav-item.active { background: #e8f3ea; color: #16843a; }


/* =========================================
   TOAST
========================================= */
.dashboard-toast {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    display: none; z-index: 100;
    padding: 10px 14px; border-radius: 10px;
    background: #07194c; color: #ffffff; font-size: 9px; font-weight: 1000; white-space: nowrap;
}
.dashboard-toast.show { display: block; }


/* =========================================
   AUTH (LOGIN / REGISTER) - matches dashboard
========================================= */
.auth-app { width: 100%; max-width: 420px; margin: 0 auto; padding-top: 8px; }

.auth-topbrand {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; margin-bottom: 16px;
}
.auth-topbrand .brand-logo {
    width: auto; height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 12px;
}
.auth-topbrand .brand-logo img {
    width: auto;
    height: auto;
    max-width: min(260px, 82%);
    object-fit: contain;
}
.auth-topbrand h1 { font-size: 18px; font-weight: 1000; }
.auth-topbrand span { margin-top: 3px; font-size: 8px; font-weight: 900; letter-spacing: .5px; color: #6c788b; }

.auth-hero {
    position: relative; overflow: hidden;
    padding: 20px; border-radius: 22px 22px 0 0;
    background: linear-gradient(135deg, #07194c 0%, #123b83 100%);
    color: #ffffff;
}
.auth-hero .hero-decoration {
    position: absolute; width: 120px; height: 120px;
    border: 22px solid rgba(245, 180, 0, .10); border-radius: 50%;
    right: -40px; top: -40px;
}
.auth-hero-label { position: relative; z-index: 2; font-size: 8px; color: #f5c21a; font-weight: 1000; letter-spacing: 1px; }
.auth-hero h2 { position: relative; z-index: 2; margin-top: 6px; font-size: 22px; line-height: 1.1; font-weight: 1000; letter-spacing: -.5px; }
.auth-hero p { position: relative; z-index: 2; margin-top: 6px; font-size: 9px; line-height: 1.5; color: #dce6f5; font-weight: 700; }

.auth-card {
    padding: 20px 18px 22px;
    border: 1px solid #dce4ed; border-top: 0;
    border-radius: 0 0 22px 22px;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(7, 25, 76, .08);
}

.auth-field { margin-bottom: 13px; }
.auth-field label { display: block; font-size: 9px; font-weight: 1000; letter-spacing: .3px; margin-bottom: 6px; }
.auth-field .auth-input,
.auth-field input,
.auth-field select {
    width: 100%; height: 46px;
    border: 1px solid #dce4ed; border-radius: 13px;
    background: #f7faff; color: #07194c;
    font-family: inherit; font-size: 13px; font-weight: 700;
    padding: 12px 13px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field input::placeholder { color: #9aa7b8; font-weight: 700; }
.auth-field input:focus,
.auth-field select:focus {
    border-color: #16843a; background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 132, 58, .10);
}

.auth-input-wrap { position: relative; }
.auth-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #6c788b;
    font-size: 9px; font-weight: 1000; cursor: pointer; padding: 4px 6px;
}
.auth-toggle:hover { color: #16843a; }

.auth-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin: 2px 0 16px;
}
.auth-check { display: flex; align-items: center; gap: 7px; color: #52607a; font-size: 10px; font-weight: 700; }
.auth-check input { width: 15px; height: 15px; accent-color: #16843a; }
.auth-link { color: #16843a; font-size: 10px; font-weight: 1000; }

.auth-submit {
    width: 100%; min-height: 48px; border: 0; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #07194c; color: #ffffff; font-size: 12px; font-weight: 1000;
    box-shadow: 0 8px 18px rgba(7, 25, 76, .18);
}
.auth-submit span {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: #f5b400; color: #07194c; font-size: 12px;
}

.auth-divider {
    display: flex; align-items: center; gap: 10px;
    color: #9aa7b8; font-size: 8px; font-weight: 1000; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e9f2; }

.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 44px; border: 1px solid #dce4ed; border-radius: 12px;
    background: #ffffff; color: #26344e; font-size: 11px; font-weight: 1000;
}

.auth-switch { text-align: center; margin-top: 16px; color: #6c788b; font-size: 11px; font-weight: 700; }
.auth-switch a { color: #16843a; font-weight: 1000; }

.auth-msg { margin-bottom: 12px; padding: 10px 12px; border-radius: 11px; font-size: 10px; font-weight: 800; }
.auth-msg-error   { background: #fdecec; color: #b42318; border: 1px solid #f6c9c4; }
.auth-msg-success { background: #e7f6ec; color: #0f6a2e; border: 1px solid #bfe6cd; }


/* =========================================
   TABLET / DESKTOP
========================================= */
@media (min-width: 700px) {
    .dashboard-app { max-width: 720px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}


/* =========================================================
   REGISTER FORM EXTRAS (validators, radios, breadcrumb)
========================================================= */
.auth-field .help-blocks,
.auth-field .error_msg {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 10px;
    font-weight: 800;
}

.auth-radios { padding: 4px 2px; }
.auth-radios table { border-collapse: collapse; }
.auth-radios td { padding-right: 6px; }
.auth-radios label { margin-right: 16px; font-size: 13px; font-weight: 700; color: #07194c; }
.auth-radios input[type="radio"] { margin-right: 6px; accent-color: #16843a; vertical-align: middle; }

.auth-field span[id$="divintro"],
.auth-field span[id$="uesrname"] { display: block; margin-top: 5px; font-size: 10px; font-weight: 800; }

.auth-breadcrumb {
    display: flex; align-items: center; gap: 7px;
    margin: 10px 0 0; padding: 0; list-style: none;
    font-size: 10px; font-weight: 800; color: #aebbd8;
}
.auth-breadcrumb a { color: #dbe3f5; }
.auth-breadcrumb li { display: inline; }


/* =========================================================
   DASHBOARD HEADER ACTIONS (notification + logout)
========================================================= */
.header-actions { display: flex; align-items: center; gap: 8px; }
.logout-btn {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; color: #b42318; border-color: #f3d2ce;
}
.logout-btn:hover { background: #fdecec; }


/* =========================================================
   REFER & EARN CARD
========================================================= */
.referral-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #06326e, #0a4fae);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(7, 25, 76, .14);
}
.referral-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.referral-icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: grid; place-items: center;
    border-radius: 11px; background: rgba(255,255,255,.14);
    font-size: 20px;
}
.referral-head strong { display: block; font-size: 13px; font-weight: 1000; letter-spacing: .3px; }
.referral-head span { display: block; margin-top: 2px; font-size: 9px; color: #d7e3f7; font-weight: 700; }

.referral-link-row { display: flex; gap: 8px; }
.referral-link-row input {
    flex: 1; min-width: 0; height: 42px;
    border: 0; border-radius: 11px;
    background: #ffffff; color: #07194c;
    font-family: inherit; font-size: 12px; font-weight: 700;
    padding: 0 12px; outline: none;
}
.ref-copy {
    flex-shrink: 0; border: 0; border-radius: 11px; padding: 0 16px;
    background: #f5b400; color: #07194c; font-size: 11px; font-weight: 1000;
}

.referral-actions { display: flex; gap: 8px; margin-top: 10px; }
.ref-share {
    flex: 1; height: 40px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    border-radius: 11px; text-decoration: none;
    font-size: 11px; font-weight: 1000;
}
.ref-wa   { background: #25d366; color: #073b1e; }
.ref-more { background: rgba(255,255,255,.16); color: #ffffff; }

.referral-note { margin: 11px 0 0; font-size: 9px; color: #cdddf3; font-weight: 700; }
.referral-note b { color: #f5c21a; }

/* refer-id sponsor name hint (register page) */
.refname-hint { display: block; margin-top: 5px; font-size: 11px; font-weight: 800; }


/* =========================================================
   PHONEBOOK
========================================================= */
.pb-search { display: flex; gap: 8px; margin-bottom: 12px; }
.pb-search-input {
    flex: 1; min-width: 0; height: 42px;
    border: 1px solid #dce4ed; border-radius: 11px; background: #fff;
    padding: 0 12px; font-family: inherit; font-size: 12px; font-weight: 700; color: #07194c; outline: none;
}
.pb-search-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 16px; border-radius: 11px;
    background: #07194c; color: #fff; font-size: 11px; font-weight: 1000; text-decoration: none;
}

.pb-form {
    background: #fff; border: 1px solid #e2e9f3; border-radius: 16px;
    padding: 15px; margin-bottom: 14px;
}
.pb-form-title { font-size: 14px; font-weight: 1000; color: #07194c; margin: 0 0 12px; }
.pb-field { margin-bottom: 11px; }
.pb-field label { display: block; font-size: 10px; font-weight: 1000; color: #07194c; margin-bottom: 5px; }
.pb-field-row { display: flex; gap: 10px; }
.pb-field-row .pb-field { flex: 1; }
.pb-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.pb-form-actions .auth-submit { flex: 1; }
.pb-cancel { color: #66738a; font-size: 12px; font-weight: 800; text-decoration: none; }

.pb-card {
    background: #fff; border: 1px solid #e2e9f3; border-radius: 14px;
    padding: 12px; margin-bottom: 10px;
}
.pb-card-top { display: flex; align-items: center; gap: 11px; }
.pb-avatar {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
    background: #07194c; color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 1000; font-size: 15px;
}
.pb-info { flex: 1; min-width: 0; }
.pb-name { font-size: 13px; font-weight: 1000; color: #07194c; }
.pb-phone { font-size: 11px; font-weight: 700; color: #66738a; margin-top: 1px; }
.pb-sub { font-size: 10px; font-weight: 700; color: #8b98ab; margin-top: 1px; }
.pb-act {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; text-decoration: none;
}
.pb-call { background: #e8f3ea; color: #16843a; }
.pb-wa   { background: #e7f6ec; color: #25a244; }

.pb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.pb-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 800; padding: 5px 9px; border-radius: 20px;
}
.pb-chip-bday  { background: #fff4f6; color: #c81e5b; }
.pb-chip-anniv { background: #eef4ff; color: #0876d1; }

.pb-card-actions { display: flex; gap: 16px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eef2f8; }
.pb-edit { color: #0876d1; font-size: 11px; font-weight: 1000; text-decoration: none; }
.pb-del  { color: #b42318; font-size: 11px; font-weight: 1000; text-decoration: none; }

.pb-empty {
    text-align: center; color: #66738a; font-size: 12px; font-weight: 700;
    padding: 30px 16px; background: #fff; border: 1px dashed #d6dfeb; border-radius: 14px;
}


/* =========================================================
   HAMBURGER + SIDE MENU (DRAWER)  — mobile friendly
========================================================= */
.menu-btn {
    width: 40px; height: 40px; flex: 0 0 40px;
    border: 1px solid #dce4ed; border-radius: 11px; background: #fff;
    color: #07194c; font-size: 18px; font-weight: 1000;
    display: flex; align-items: center; justify-content: center;
}

.nav-5 { grid-template-columns: repeat(5, 1fr) !important; }
.nav-item { text-decoration: none; }

/* overlay */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(7, 25, 76, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

/* drawer panel */
.side-drawer {
    position: fixed; top: 0; left: 0; z-index: 95;
    width: 82%; max-width: 300px; height: 100%;
    background: #ffffff;
    box-shadow: 6px 0 26px rgba(7, 25, 76, .18);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
}
.side-drawer.open { transform: translateX(0); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-logo {
    width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
    background: #07194c; display: flex; align-items: center; justify-content: center;
}
.drawer-logo img { width: 100%; height: 100%; object-fit: contain; }
.drawer-brand strong { display: block; font-size: 13px; font-weight: 1000; color: #07194c; }
.drawer-brand small { font-size: 9px; font-weight: 800; color: #6c788b; }
.drawer-close {
    width: 34px; height: 34px; border: 0; border-radius: 9px;
    background: #f1f4f9; color: #07194c; font-size: 14px; font-weight: 1000;
}

.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 12px; border-radius: 12px;
    color: #26344e; font-size: 13px; font-weight: 800; text-decoration: none;
}
.drawer-link b { width: 22px; text-align: center; font-size: 16px; font-weight: 1000; color: #16843a; }
.drawer-link:hover { background: #f4f7fb; }
.drawer-sep { height: 1px; background: #eef2f8; margin: 8px 4px; }

.drawer-logout {
    margin-top: auto;
    display: flex; align-items: center; gap: 12px;
    padding: 13px 12px; border-radius: 12px;
    background: #fdecec; color: #b42318;
    font-size: 13px; font-weight: 1000; text-decoration: none;
}
.drawer-logout b { width: 22px; text-align: center; font-size: 16px; }


/* =========================================================
   INPUT STYLING (works outside .auth-field too, e.g. phonebook)
========================================================= */
.auth-input,
.pb-field input,
.pb-field select,
.pb-field textarea {
    width: 100%;
    height: 46px;
    border: 1px solid #dce4ed;
    border-radius: 13px;
    background: #f7faff;
    color: #07194c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.auth-input,
.pb-field textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}
.auth-input::placeholder,
.pb-field input::placeholder,
.pb-field textarea::placeholder {
    color: #9aa7b8;
    font-weight: 700;
}
.auth-input:focus,
.pb-field input:focus,
.pb-field select:focus,
.pb-field textarea:focus {
    border-color: #16843a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 132, 58, .10);
}


/* =========================================================
   FIX: keep radios/checkboxes small (they sit inside .auth-field)
========================================================= */
.auth-field input[type="radio"],
.auth-field input[type="checkbox"],
.auth-radios input[type="radio"],
.auth-check input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 6px 0 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    accent-color: #16843a;
    vertical-align: middle;
    -webkit-appearance: auto;
    appearance: auto;
}
.auth-radios label { font-size: 13px; font-weight: 700; color: #07194c; margin-right: 18px; }


/* =========================================================
   DAILY EXPENSES
========================================================= */
.exp-summary {
    background: linear-gradient(135deg, #06326e, #0a4fae);
    color: #fff; border-radius: 16px; padding: 15px; margin-bottom: 12px;
}
.exp-summary-label { font-size: 9px; color: #cfe0f7; font-weight: 800; letter-spacing: .5px; }
.exp-summary-amount { font-size: 28px; font-weight: 1000; margin-top: 3px; }
.exp-summary-row { display: flex; gap: 22px; margin-top: 12px; }
.exp-sr-label { font-size: 8px; color: #cfe0f7; font-weight: 800; }
.exp-sr-val { font-size: 15px; font-weight: 1000; margin-top: 2px; }

.exp-filter { margin-bottom: 12px; }

.exp-card {
    display: flex; align-items: center; gap: 11px;
    background: #fff; border: 1px solid #e2e9f3; border-radius: 14px;
    padding: 11px 12px; margin-bottom: 9px;
}
.exp-icon {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.exp-info { flex: 1; min-width: 0; }
.exp-note { font-size: 12px; font-weight: 1000; color: #07194c; }
.exp-meta { font-size: 9px; font-weight: 700; color: #8b98ab; margin-top: 2px; }
.exp-right { text-align: right; }
.exp-amt { font-size: 14px; font-weight: 1000; color: #07194c; }
.exp-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.exp-actions .pb-edit, .exp-actions .pb-del { font-size: 10px; }


/* =========================================================
   LEAD TRACKER (pipeline)
========================================================= */
.lead-banner {
    background: linear-gradient(135deg, #06326e, #0a4fae);
    color: #fff; border-radius: 16px; padding: 14px 15px; margin-bottom: 12px;
}
.lead-banner-label { font-size: 9px; color: #cfe0f7; font-weight: 800; letter-spacing: .5px; }
.lead-banner-amount { font-size: 26px; font-weight: 1000; margin-top: 2px; }
.lead-banner-row { display: flex; gap: 18px; margin-top: 10px; }
.lead-banner-row .lb-k { display: block; font-size: 8px; color: #cfe0f7; font-weight: 800; }
.lead-banner-row .lb-v { font-size: 13px; font-weight: 1000; }

.lead-card {
    display: flex; background: #fff; border: 1px solid #e2e9f3;
    border-radius: 14px; overflow: hidden; margin-bottom: 10px;
}
.lead-stripe { width: 5px; flex: 0 0 5px; }
.lead-body { flex: 1; min-width: 0; padding: 12px; }
.lead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lead-name { font-size: 13px; font-weight: 1000; color: #07194c; }
.lead-sub { font-size: 9px; color: #8b98ab; font-weight: 700; margin-top: 1px; }
.lead-val { text-align: right; flex: 0 0 auto; }
.lead-amt { font-size: 13px; font-weight: 1000; color: #16843a; }
.lead-status { font-size: 8px; font-weight: 800; margin-top: 1px; }

.lead-bar { display: flex; gap: 4px; margin-top: 10px; }
.lead-bar span { flex: 1; height: 5px; border-radius: 3px; display: block; }

.lead-note {
    margin-top: 10px; font-size: 10px; color: #52607a; font-weight: 700;
    background: #f7faff; border-radius: 8px; padding: 7px 9px;
}

.lead-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lead-foot-k { font-size: 9px; font-weight: 800; color: #8b98ab; }
.lead-chip { font-size: 9px; font-weight: 800; padding: 5px 9px; border-radius: 20px; white-space: nowrap; }
.lead-chip-red { background: #fdecec; color: #b42318; }
.lead-chip-amber { background: #fff6e5; color: #c8860a; }

.lead-acts { display: flex; gap: 7px; }
.lead-act {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none; border: 0;
}
.lead-call { background: #e8f3ea; color: #16843a; }
.lead-wa   { background: #e7f6ec; color: #25a244; }
.lead-edit { background: #eef4ff; color: #0876d1; }
.lead-del  { background: #fdecec; color: #b42318; }


/* =========================================================
   MARKETING POSTS (gallery + personalizer)
========================================================= */
.post-brandbar {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #06326e, #0a4fae); color: #fff;
    border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
}
.post-avatar {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
    background: #f5b400; color: #07194c; display: flex; align-items: center; justify-content: center;
    font-weight: 1000; font-size: 14px;
}
.post-brandinfo strong { display: block; font-size: 11px; font-weight: 1000; }
.post-brandinfo span { font-size: 9px; color: #cfe0f7; font-weight: 700; }

.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-card { border: 1px solid #e2e9f3; border-radius: 14px; overflow: hidden; background: #fff; }
.post-thumb-link { display: block; text-decoration: none; }
.post-thumb { position: relative; aspect-ratio: 3/4; background: #eef1f6; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-brandstrip {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(7,25,76,.85); color: #fff;
    display: flex; align-items: center; gap: 6px; padding: 6px 7px;
}
.post-strip-av {
    width: 18px; height: 18px; border-radius: 50%;
    background: #f5b400; color: #07194c; display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 1000;
}
.post-strip-txt b { display: block; font-size: 7px; font-weight: 1000; }
.post-strip-txt i { font-size: 6px; color: #cfe0f7; font-style: normal; }
.post-meta { display: flex; align-items: center; justify-content: space-between; padding: 8px; }
.post-cat { font-size: 9px; font-weight: 800; color: #66738a; }
.post-use { font-size: 8px; font-weight: 1000; color: #fff; background: #16843a; padding: 4px 10px; border-radius: 12px; text-decoration: none; }

/* personalizer */
.pm-stage { position: relative; margin-bottom: 14px; }
.pm-stage canvas { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 20px rgba(7,25,76,.18); display: block; background: #eef1f6; }
.pm-loading { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-size: 11px; font-weight: 800; color: #66738a; }
.pm-toggles { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; padding: 0 2px; }
.pm-tg { font-size: 12px; font-weight: 800; color: #07194c; display: flex; align-items: center; gap: 6px; }
.pm-tg input { accent-color: #16843a; width: auto; height: auto; }
.pm-actions { display: flex; gap: 10px; }
.pm-btn { flex: 1; height: 48px; border: 0; border-radius: 13px; font-size: 12px; font-weight: 1000; }
.pm-download { background: #07194c; color: #fff; }
.pm-share { background: #25d366; color: #073b1e; }
.pm-hint { margin: 10px 2px 0; font-size: 10px; font-weight: 700; color: #16843a; }


/* Phonebook groups */
.pb-groupfilter { margin-bottom: 12px; }
.pb-groupfilter .auth-input { height: 42px; }
.pb-chip-group { background: #eaf1ff; color: #0a4fae; }


/* =========================================================
   EDIT PROFILE
========================================================= */
.prof-idcard {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #06326e, #0a4fae); color: #fff;
    border-radius: 14px; padding: 14px; margin-bottom: 16px;
}
.prof-avatar {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
    background: #f5b400; color: #07194c; display: flex; align-items: center; justify-content: center;
    font-weight: 1000; font-size: 17px;
}
.prof-idinfo strong { display: block; font-size: 15px; font-weight: 1000; }
.prof-idinfo span { font-size: 10px; color: #cfe0f7; font-weight: 700; }

.prof-sec { background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.prof-h { font-size: 12px; font-weight: 1000; color: #07194c; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.prof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prof-actions { margin: 4px 0 8px; }
.prof-actions .auth-submit { width: 100%; }


/* =========================================================
   KYC
========================================================= */
.kyc-status-card {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #06326e, #0a4fae); color: #fff;
    border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.kyc-photo { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.kyc-photo img { width: 100%; height: 100%; object-fit: cover; }
.kyc-photo-ph { font-size: 22px; font-weight: 1000; color: #f5b400; }
.kyc-status-info strong { display: block; font-size: 16px; font-weight: 1000; }
.kyc-status-info span { font-size: 10px; color: #cfe0f7; font-weight: 700; }
.kyc-badge { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 1000;
    padding: 4px 12px; border-radius: 20px; letter-spacing: .3px; }
.kyc-badge-approved  { background: #16843a; color: #fff; }
.kyc-badge-pending   { background: #f5b400; color: #07194c; }
.kyc-badge-cancelled { background: #d13b3b; color: #fff; }

.kyc-note { background: #fff7e6; border: 1px solid #f5d98a; color: #7a5b00;
    font-size: 11px; font-weight: 700; padding: 10px 12px; border-radius: 11px; margin-bottom: 14px; }

.kyc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
    border-bottom: 1px solid #f0f3f8; }
.kyc-row:last-child { border-bottom: 0; }
.kyc-k { font-size: 12px; color: #66738a; font-weight: 700; flex: 0 0 42%; }
.kyc-v { font-size: 12px; color: #1c2740; font-weight: 700; text-align: right; }


/* =========================================================
   BANK DETAILS
========================================================= */
.bank-company { display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #06326e, #0a4fae); color: #fff;
    border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.bank-logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; padding: 4px; object-fit: contain; }
.bank-company-txt strong { display: block; font-size: 14px; font-weight: 1000; line-height: 1.2; }
.bank-company-txt span { font-size: 10px; color: #cfe0f7; font-weight: 700; }

.bank-qr-card { background: #fff; border: 1px solid #e6ebf3; border-radius: 14px;
    padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bank-qr { width: 160px; height: 160px; border-radius: 10px; box-shadow: 0 4px 14px rgba(7,25,76,.15); }
.bank-qr-label { font-size: 11px; font-weight: 800; color: #66738a; }

.bank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f3f8; }
.bank-row:last-child { border-bottom: 0; }
.bank-kv { flex: 1; }
.bank-k { display: block; font-size: 10px; color: #66738a; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.bank-v { display: block; font-size: 13px; color: #1c2740; font-weight: 800; margin-top: 2px; word-break: break-word; }
.bank-copy { flex: 0 0 auto; align-self: flex-start; background: #eaf1ff; color: #0a4fae;
    border: 0; font-size: 11px; font-weight: 800; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.bank-copy:hover { background: #dbe8ff; }


/* =========================================================
   SUBSCRIPTION
========================================================= */
.sub-wallet { display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #06326e, #0a4fae); color: #fff;
    border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.sub-wallet-k { font-size: 11px; color: #cfe0f7; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.sub-wallet-v { font-size: 22px; font-weight: 1000; }

.sub-amount { display: flex; align-items: center; justify-content: space-between;
    background: #eafaf1; border: 1px solid #bfe6cd; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.sub-amount span { font-size: 12px; color: #0f6a2e; font-weight: 800; }
.sub-amount strong { font-size: 20px; color: #16843a; font-weight: 1000; }

.sub-idname { display: block; font-size: 12px; font-weight: 800; margin-top: 6px; min-height: 16px; }

.sub-agree { display: flex; align-items: center; gap: 10px; margin: 4px 2px 6px; font-size: 13px; font-weight: 700; color: #1c2740; }
.sub-agree input { width: auto; height: auto; accent-color: #16843a; }


/* =========================================================
   DIRECT REFERRALS
========================================================= */
.ref-card { display: block; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.ref-top { display: flex; align-items: center; gap: 10px; }
.ref-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
    background: #07194c; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 1000; font-size: 14px; }
.ref-id { flex: 1; }
.ref-id strong { display: block; font-size: 14px; font-weight: 1000; color: #1c2740; }
.ref-id span { font-size: 11px; color: #66738a; font-weight: 700; }
.ref-value { font-size: 18px; font-weight: 1000; color: #16843a; margin: 10px 0 8px; }
.ref-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #66738a; font-weight: 700; margin-top: 4px; }
.ref-meta b { color: #1c2740; }
.ref-paid { font-size: 10px; font-weight: 900; padding: 3px 10px; border-radius: 20px; }
.ref-paid-yes { background: #e7f6ec; color: #0f6a2e; }
.ref-paid-no  { background: #fdecec; color: #b42318; }


/* =========================================================
   PAYOUT REPORT
========================================================= */
.pay-card { background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.pay-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pay-top strong { font-size: 14px; font-weight: 1000; color: #1c2740; display: block; }
.pay-top span { font-size: 10px; color: #66738a; font-weight: 700; }
.pay-total { font-size: 16px; font-weight: 1000; color: #16843a; white-space: nowrap; }
.pay-breakdown { margin-top: 10px; border-top: 1px dashed #e6ebf3; padding-top: 8px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pay-k { font-size: 11px; color: #66738a; font-weight: 700; }
.pay-v { font-size: 11px; color: #1c2740; font-weight: 800; white-space: nowrap; }
@media (max-width: 380px) { .pay-breakdown { grid-template-columns: 1fr; } }


/* Drawer section labels */
.drawer-label {
    font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase;
    color: #97a3bd; padding: 14px 20px 6px; margin-top: 2px;
}
.drawer-label:first-of-type { margin-top: 0; }


/* KYC document view link */
.kyc-doclink { display:inline-block; margin-top:6px; font-size:11px; font-weight:800; color:#0a4fae; text-decoration:none; }


/* =========================================================
   KYC DOCUMENT UPLOAD (polished)
========================================================= */
.kyc-doc { display: flex; align-items: center; gap: 12px; }
.kyc-doc-preview {
    width: 66px; height: 66px; flex: 0 0 66px;
    border: 1px solid #e2e9f3; border-radius: 12px; background: #f4f7fb;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kyc-doc-preview a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.kyc-doc-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kyc-pdf-badge {
    font-size: 11px; font-weight: 1000; color: #b42318; background: #fdecec;
    padding: 6px 10px; border-radius: 8px; border: 1px solid #f6c9c4;
}
.kyc-doc-empty { font-size: 9px; color: #97a3bd; font-weight: 800; text-align: center; padding: 0 4px; line-height: 1.3; }

/* styled file input */
.kyc-file {
    flex: 1; min-width: 0; font-size: 12px; color: #66738a;
    border: 1px dashed #cdd8ea; border-radius: 11px; padding: 10px; background: #fbfcfe; cursor: pointer;
}
.kyc-file::file-selector-button {
    font-family: inherit; font-weight: 800; font-size: 12px; color: #fff; background: #0a4fae;
    border: 0; padding: 9px 14px; border-radius: 9px; margin-right: 12px; cursor: pointer;
}
.kyc-file::file-selector-button:hover { background: #083d86; }
.kyc-file::-webkit-file-upload-button {
    font-family: inherit; font-weight: 800; font-size: 12px; color: #fff; background: #0a4fae;
    border: 0; padding: 9px 14px; border-radius: 9px; margin-right: 12px; cursor: pointer;
}


/* =========================================================
   SUPPORT / TICKETS
========================================================= */
.tkt-card { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit;
    background:#fff; border:1px solid #e6ebf3; border-radius:12px; padding:12px; margin-bottom:10px; }
.tkt-card-main { flex:1; }
.tkt-card-main strong { display:block; font-size:13px; color:#1c2740; font-weight:1000; }
.tkt-card-main span { font-size:10px; color:#66738a; font-weight:700; }
.tkt-status { font-size:10px; font-weight:900; padding:3px 10px; border-radius:20px; white-space:nowrap; }
.tkt-open { background:#fff7e6; color:#7a5b00; }
.tkt-answered { background:#eaf1ff; color:#0a4fae; }
.tkt-closed { background:#f1f3f7; color:#66738a; }
.tkt-thread { display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.tkt-msg { border-radius:12px; padding:10px 12px; max-width:85%; }
.tkt-msg-member { background:#eaf1ff; align-self:flex-end; }
.tkt-msg-admin { background:#f4f7fb; align-self:flex-start; border:1px solid #e6ebf3; }
.tkt-msg-who { font-size:10px; font-weight:800; color:#66738a; margin-bottom:4px; }
.tkt-msg-body { font-size:13px; color:#1c2740; line-height:1.5; }
