/* =========================================================
   ALBUKHR — INVESTOR DASHBOARD V4
   File: css/investor-dashboard.css

   Scope:
   - Investor Dashboard only
   - Premium green/white UI
   - Emoji-free icon containers
   - Responsive mobile-first layout
   - ALBUKHR DOCK NAV is intentionally NOT styled here
========================================================= */

/* =========================================================
   BASE
========================================================= */

body{
    margin:0;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    background:#f4f7f6;
    color:#111;
    padding-bottom:120px;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}

button{
    font:inherit;
    -webkit-tap-highlight-color:transparent;
}

.page{
    width:100%;
    max-width:500px;
    margin:0 auto;
    padding:0 0 20px;
}

.page,
.summary-card,
.invest-card,
.dashboard-hero{
    transition:all .25s ease;
}

/* =========================================================
   HEADER
   Note: This does NOT modify .dock-nav.
========================================================= */

.header{
    width:100%;
    height:60px;
    padding:0 16px;
    background:#0f7a3d;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-sizing:border-box;
}

.header-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.header-right{
    display:flex;
    align-items:center;
    gap:8px;
}

.brand{
    color:#fff;
    font-size:18px;
    font-weight:700;
    letter-spacing:1px;
}

.header-btn{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    cursor:pointer;
    color:#fff;
}

.notification-btn{
    position:relative;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.12);
}

.notification-btn:hover{
    background:rgba(255,255,255,.18);
}

.notification-btn svg,
.notification-btn .icon{
    width:19px;
    height:19px;
    display:block;
}

.notification-badge{
    position:absolute;
    top:5px;
    right:5px;
    min-width:7px;
    height:7px;
    padding:0;
    border-radius:50%;
    background:#ff4d4f;
    box-shadow:0 0 0 2px #0f7a3d;
    display:none;
}

.main-logo{
    height:58px;
    width:auto;
    display:block;
    object-fit:contain;
    filter:
        drop-shadow(0 0 .8px #000)
        drop-shadow(0 0 1px #000);
}

/* =========================================================
   PREMIUM HERO
========================================================= */

.dashboard-hero{
    position:relative;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin:18px;
    padding:20px;

    min-height:180px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            #06692f 0%,
            #0d8c43 45%,
            #13a74d 100%
        );

    color:#fff;

    box-shadow:
        0 18px 45px rgba(15,122,61,.28);
}

.hero-bg{
    position:absolute;
    width:420px;
    height:420px;
    right:-160px;
    top:-150px;

    border-radius:50%;
    background:rgba(255,255,255,.06);
    pointer-events:none;
}

.hero-wave{
    position:absolute;
    right:-100px;
    bottom:-80px;

    width:520px;
    height:320px;

    border-radius:50%;
    border:1px solid rgba(255,255,255,.10);

    box-shadow:
        0 0 0 40px rgba(255,255,255,.03),
        0 0 0 80px rgba(255,255,255,.02),
        0 0 0 120px rgba(255,255,255,.02);

    pointer-events:none;
}

.hero-left{
    position:relative;
    z-index:2;
    flex:1;
    min-width:0;
}

.hero-greeting{
    display:flex;
    align-items:center;
    gap:6px;

    font-size:13px;
    font-weight:500;
    opacity:.95;
}

.wave{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
}

/* Emoji-free replacement: simple animated hand/brand mark
   can be supplied by the HTML as an SVG/icon. */
.wave svg,
.wave .icon{
    width:17px;
    height:17px;
}

#heroUserName{
    margin:4px 0 0;
    font-size:15px;
    font-weight:800;
    line-height:1.15;
    word-break:break-word;
}

.hero-label{
    margin:10px 0 0;
    font-size:12px;
    opacity:.85;
}

.hero-balance-row{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:8px;
}

.hero-balance{
    margin:0;
    font-size:30px;
    font-weight:900;
    letter-spacing:.5px;
    line-height:1.1;
}

.eye-btn{
    width:38px;
    height:38px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;
    border:0;
    border-radius:12px;

    cursor:pointer;

    background:rgba(255,255,255,.16);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    color:#fff;

    transition:.25s ease;
}

.eye-btn:hover{
    transform:scale(1.08);
    background:rgba(255,255,255,.24);
}

.eye-btn:active{
    transform:scale(.96);
}

.eye-btn svg,
.eye-btn .icon{
    width:18px;
    height:18px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}

.profit-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;

    margin-top:12px;
    padding:8px 12px;

    border-radius:999px;

    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    font-size:12px;
    font-weight:700;
}

.profit-badge small{
    opacity:.8;
    font-weight:500;
}

.profit-badge svg,
.profit-badge .icon{
    width:14px;
    height:14px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}

/* =========================================================
   HERO RIGHT
========================================================= */

.hero-right{
    position:relative;
    z-index:2;

    width:120px;
    flex:0 0 120px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.coin-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;

    animation:coinFloat 4s ease-in-out infinite;
}

.hero-coin{
    width:85px;
    height:auto;
    display:block;

    filter:
        drop-shadow(0 20px 25px rgba(0,0,0,.25));
}

@keyframes coinFloat{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-10px);
    }
}

.treasury-badge{
    margin-top:-8px;

    display:flex;
    align-items:center;
    gap:8px;

    padding:8px 12px;

    border-radius:14px;

    background:#ffd84c;
    color:#222;

    box-shadow:
        0 10px 25px rgba(0,0,0,.18);
}

.treasury-badge svg,
.treasury-badge .icon{
    width:15px;
    height:15px;
    flex:0 0 15px;

    fill:none;
    stroke:#866300;
    stroke-width:2;
}

.treasury-badge strong{
    display:block;
    font-size:11px;
    line-height:1.2;
}

.treasury-badge span{
    display:block;
    margin-top:2px;
    font-size:14px;
    font-weight:800;
    line-height:1.15;
}

/* =========================================================
   SUMMARY GRID
========================================================= */

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

.summary-card{
    min-height:118px;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;

    padding:14px;

    background:#fff;
    border-radius:22px;

    box-shadow:
        0 8px 22px rgba(0,0,0,.05);
}

.summary-card:hover{
    transform:translateY(-2px);
    box-shadow:
        0 12px 28px rgba(0,0,0,.08);
}

.summary-card:active{
    transform:scale(.98);
}

/* =========================================================
   SUMMARY ICON SYSTEM — EMOJI FREE
========================================================= */

.summary-icon{
    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:10px;

    border-radius:14px;

    color:#fff;
}

.summary-icon svg,
.summary-icon .icon{
    width:22px;
    height:22px;

    display:block;

    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.summary-card:nth-child(1) .summary-icon{
    background:linear-gradient(135deg,#16a34a,#0f7a3d);
}

.summary-card:nth-child(2) .summary-icon{
    background:linear-gradient(135deg,#3b82f6,#2563eb);
}

.summary-card:nth-child(3) .summary-icon{
    background:linear-gradient(135deg,#9333ea,#7c3aed);
}

.summary-card:nth-child(4) .summary-icon{
    background:linear-gradient(135deg,#f59e0b,#ea580c);
}

.summary-title{
    margin-bottom:8px;
    font-size:13px;
    color:#666;
    font-weight:500;
}

.summary-value{
    margin-bottom:5px;
    font-size:17px;
    font-weight:800;
    color:#111;
    line-height:1.1;
}

.summary-subtitle{
    font-size:12px;
    color:#159447;
    font-weight:600;
}

/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:24px 16px;
}

.action-item{
    min-width:0;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    transition:.25s ease;
}

.action-item:hover{
    transform:translateY(-2px);
}

.action-item:active{
    transform:scale(.95);
}

/* Emoji-free icon box */
.action-icon{
    width:58px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:8px;

    border-radius:18px;

    background:#fff;

    color:#0f7a3d;

    box-shadow:
        0 8px 20px rgba(0,0,0,.08);
}

.action-icon svg,
.action-icon .icon{
    width:26px;
    height:26px;

    display:block;

    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.action-label{
    font-size:13px;
    font-weight:600;
    text-align:center;
    color:#333;
    line-height:1.3;
}

/* =========================================================
   INVESTMENT CARDS — CONSOLIDATED V4
========================================================= */

.invest-card{
    margin:16px;
    padding:18px;

    background:#fff;
    border-radius:24px;

    box-shadow:
        0 10px 26px rgba(0,0,0,.06);
}

.invest-card:active{
    transform:scale(.98);
}

.investment-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:18px;
}

.investment-project{
    min-width:0;
    flex:1;

    display:flex;
    align-items:flex-start;
    gap:14px;
}

/* Project image/icon */
.investment-icon{
    width:56px;
    height:56px;

    flex:0 0 56px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #0f7a3d,
            #18a558
        );

    color:#fff;
}

.investment-icon img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.investment-icon svg,
.investment-icon .icon{
    width:27px;
    height:27px;

    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.investment-name{
    margin:0;
    font-size:18px;
    font-weight:800;
    color:#111;
    line-height:1.2;
}

.investment-status{
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:4px;

    color:#35a853;
    font-size:13px;
    font-weight:600;
}

.status-dot{
    color:#18a34a;
    font-size:12px;
    font-weight:700;
}

.project-badge{
    display:inline-flex;
    align-items:center;

    padding:4px 10px;

    border-radius:999px;

    background:#eef8ee;
    color:#218c4d;

    font-size:11px;
    font-weight:700;
}

.investment-profit{
    min-width:72px;
    text-align:right;
}

.investment-profit b{
    display:block;
    margin-bottom:2px;

    font-size:18px;
    color:#138847;
    font-weight:800;
}

.investment-profit span{
    display:block;

    font-size:11px;
    color:#777;
    line-height:1.2;
}

/* =========================================================
   INVESTMENT DATA GRID
========================================================= */

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

    margin-bottom:18px;
}

.investment-grid > div{
    min-width:0;
    padding:0;
    border-right:0;
}

.investment-grid span{
    display:block;
    margin-bottom:4px;

    font-size:12px;
    color:#888;
}

.investment-grid b{
    font-size:16px;
    color:#222;
    font-weight:800;
}

/* =========================================================
   PROGRESS
========================================================= */

.progress-header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin:0 0 6px;

    font-size:12px;
    color:#666;
}

.investment-progress{
    height:8px;

    margin-bottom:18px;

    overflow:hidden;

    border-radius:999px;
    background:#ececec;
}

.investment-progress-bar{
    width:100%;
    height:100%;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            #0f7a3d,
            #34d87b
        );

    background-size:200% 100%;

    animation:progressMove 2.5s linear infinite;
}

@keyframes progressMove{
    0%{
        background-position:0%;
    }
    100%{
        background-position:200%;
    }
}

/* =========================================================
   INVESTMENT BUTTON
========================================================= */

.investment-btn{
    width:100%;

    margin-top:0;
    padding:15px;

    border:0;
    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #0f7a3d,
            #18a558
        );

    color:#fff;

    font-size:15px;
    font-weight:700;

    cursor:pointer;

    transition:.25s ease;
}

.investment-btn:hover{
    transform:translateY(-2px);

    box-shadow:
        0 10px 20px rgba(15,122,61,.25);
}

.investment-btn:active{
    transform:scale(.98);
}

/* =========================================================
   GENERAL RESPONSIVE
========================================================= */

@media(max-width:768px){

    .page{
        max-width:500px;
    }

    .summary-grid{
        gap:8px;
        margin:14px;
    }

    .summary-card{
        min-height:108px;
        padding:12px;
    }

    .summary-icon{
        width:40px;
        height:40px;
        margin-bottom:8px;
    }

    .summary-icon svg,
    .summary-icon .icon{
        width:20px;
        height:20px;
    }

    .summary-title{
        font-size:12px;
    }

    .summary-value{
        font-size:15px;
    }

    .summary-subtitle{
        font-size:11px;
    }

    .quick-actions{
        gap:10px;
        margin:22px 14px;
    }

    .action-icon{
        width:52px;
        height:52px;
        border-radius:16px;
    }

    .action-icon svg,
    .action-icon .icon{
        width:24px;
        height:24px;
    }

    .action-label{
        font-size:12px;
    }

    .invest-card{
        margin:14px;
        padding:14px;
    }

    .investment-top{
        gap:8px;
    }

    .investment-icon{
        width:56px;
        height:56px;
        flex-basis:56px;
    }

    .investment-name{
        font-size:16px;
    }

    .investment-status{
        font-size:12px;
    }

    .project-badge{
        font-size:10px;
        padding:3px 8px;
    }

    .investment-profit{
        min-width:72px;
    }

    .investment-profit b{
        font-size:15px;
    }

    .investment-profit span{
        font-size:10px;
    }

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

    .investment-grid span{
        font-size:10px;
    }

    .investment-grid b{
        font-size:13px;
    }

    .investment-btn{
        padding:12px;
        font-size:13px;
    }

    .dashboard-hero{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;

        margin:16px;
        padding:18px;

        min-height:180px;
    }

    .hero-left{
        flex:1;
        min-width:0;
    }

    .hero-right{
        width:110px;
        flex-basis:110px;
        margin-top:0;
    }

    .hero-greeting{
        font-size:13px;
    }

    #heroUserName{
        font-size:15px;
    }

    .hero-label{
        font-size:12px;
        margin-top:8px;
    }

    .hero-balance{
        font-size:30px;
    }

    .eye-btn{
        width:36px;
        height:36px;
    }

    .profit-badge{
        padding:7px 12px;
        font-size:11px;
    }

    .hero-coin{
        width:82px;
    }

    .treasury-badge{
        margin-top:8px;
        padding:7px 10px;
    }

    .treasury-badge strong{
        font-size:10px;
    }

    .treasury-badge span{
        font-size:12px;
    }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media(max-width:380px){

    .dashboard-hero{
        margin:12px;
        padding:15px;
        border-radius:20px;
    }

    .hero-right{
        width:92px;
        flex-basis:92px;
    }

    .hero-coin{
        width:70px;
    }

    .hero-balance{
        font-size:26px;
    }

    .treasury-badge{
        gap:5px;
        padding:6px 8px;
    }

    .treasury-badge span{
        font-size:10px;
    }

    .quick-actions{
        gap:6px;
        margin-left:12px;
        margin-right:12px;
    }

    .action-icon{
        width:48px;
        height:48px;
        border-radius:14px;
    }

    .action-label{
        font-size:11px;
    }

    .summary-grid{
        margin-left:12px;
        margin-right:12px;
    }

    .invest-card{
        margin-left:12px;
        margin-right:12px;
    }
}

/* =========================================================
   ACCESSIBILITY / MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
    }
       }
