/* =========================================
   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;
}


/* =========================================
   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: sticky; bottom: 7px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    margin-top: 5px; padding: 6px;
    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);
}
.nav-item {
    min-height: 49px; border: 0; border-radius: 12px;
    background: transparent; color: #748196; font-size: 7px; font-weight: 1000;
}
.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; }
