@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root{
    --bg: #f3f7fb;
    --bg2: #eef4fa;
    --white: #ffffff;
    --text: #162033;
    --muted: #6f7b90;
    --line: #e4ebf3;

    --primary: #124e78;
    --primary-2: #1d6fa5;
    --accent: #18b87d;
    --accent-2: #28d39a;

    --blue: #3483fa;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #d97706;
    --sky: #3b82f6;
    --green: #10b981;

    --shadow-sm: 0 10px 25px rgba(15, 23, 42, .05);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, .08);
    --shadow-lg: 0 25px 60px rgba(15, 23, 42, .12);

    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

*{
    box-sizing:border-box;
}

html, body{
    margin:0;
    padding:0;
}

body{
    font-family:'Cairo', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(24,184,125,.08), transparent 28%),
        radial-gradient(circle at top left, rgba(52,131,250,.08), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    color:var(--text);
    min-height:100vh;
}

a{
    text-decoration:none;
}

button, a, input{
    transition:.25s ease;
}

.page-shell{
    overflow:hidden;
}

/* Hero */
.hero-modern{
    position:relative;
    background:
        linear-gradient(135deg, rgba(6,19,49,.97), rgba(13,49,97,.94));
    color:#fff;
    padding:70px 0 60px;
    overflow:hidden;
    border-bottom-left-radius:40px;
    border-bottom-right-radius:40px;
    box-shadow:var(--shadow-lg);
}

.hero-bg-grid{
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size:30px 30px;
    opacity:.35;
}

.hero-bg-shape{
    position:absolute;
    border-radius:50%;
    filter:blur(10px);
    opacity:.22;
}

.shape-1{
    width:340px;
    height:340px;
    background:linear-gradient(135deg, #1de9b6, #00b0ff);
    top:-100px;
    right:-80px;
}

.shape-2{
    width:280px;
    height:280px;
    background:linear-gradient(135deg, #7c4dff, #18b87d);
    bottom:-110px;
    left:-80px;
}

.hero-wrap{
    position:relative;
    z-index:2;
    text-align:center;
    max-width:1100px;
    margin:auto;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.16);
    backdrop-filter:blur(10px);
    font-weight:800;
    margin-bottom:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.hero-title{
    margin:0;
    font-size:clamp(2rem, 4vw, 4.25rem);
    line-height:1.15;
    font-weight:900;
    letter-spacing:-1px;
}

.hero-subtitle{
    margin:14px auto 0;
    max-width:820px;
    font-size:clamp(1rem, 1.8vw, 1.4rem);
    color:rgba(255,255,255,.88);
    line-height:1.9;
}

.hero-quick-stats{
    margin-top:32px;
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:16px;
}

.hero-quick-card{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    padding:18px;
    backdrop-filter:blur(12px);
    box-shadow:0 12px 35px rgba(0,0,0,.14);
}

.hero-quick-card span{
    display:block;
    font-size:.95rem;
    color:rgba(255,255,255,.78);
    margin-bottom:8px;
}

.hero-quick-card strong{
    display:block;
    font-size:1.4rem;
    font-weight:900;
}

/* Main spacing */
.main-content-area{
    margin-top:32px;
    margin-bottom:40px;
}

/* Progress section */
.progress-card-main{
    background:rgba(255,255,255,.82);
    border:1px solid rgba(255,255,255,.70);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-md);
    padding:28px;
    backdrop-filter:blur(18px);
}

.progress-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.section-kicker{
    color:var(--accent);
    font-weight:800;
    font-size:.95rem;
    margin-bottom:6px;
}

.progress-top h2{
    margin:0;
    font-size:clamp(1.2rem, 2vw, 2rem);
    font-weight:900;
    color:var(--text);
}

.progress-number{
    font-size:clamp(2rem, 4vw, 4rem);
    font-weight:900;
    color:var(--accent);
    line-height:1;
    text-shadow:0 12px 30px rgba(16,185,129,.15);
}

.progress-track-wrap{
    margin-bottom:22px;
}

.progress-track-custom{
    position:relative;
    width:100%;
    height:26px;
    background:#e9eff5;
    border-radius:999px;
    overflow:hidden;
    box-shadow:inset 0 2px 6px rgba(0,0,0,.04);
}

.progress-bar-custom{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, var(--accent), var(--accent-2), #61e7be);
    box-shadow:0 8px 22px rgba(16,185,129,.35);
}

.progress-meta{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:16px;
}

.progress-meta-item{
    background:#f8fbfe;
    border:1px solid var(--line);
    border-radius:20px;
    padding:16px 18px;
}

.progress-meta-item span{
    display:block;
    color:var(--muted);
    font-size:.95rem;
    margin-bottom:6px;
}

.progress-meta-item strong{
    font-size:1.2rem;
    font-weight:900;
    color:var(--text);
}

/* Stats */
.stats-section{
    margin-top:26px;
}

.stats-grid-modern{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:16px;
}

.stat-card-modern{
    position:relative;
    background:rgba(255,255,255,.88);
    border-radius:24px;
    padding:22px 18px;
    box-shadow:var(--shadow-sm);
    border:1px solid rgba(255,255,255,.8);
    overflow:hidden;
    min-height:185px;
}

.stat-card-modern::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:6px;
    border-radius:20px;
}

.stat-icon{
    width:50px;
    height:50px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.35rem;
    margin-bottom:16px;
    background:#f5f8fc;
}

.stat-label{
    color:var(--muted);
    font-size:1rem;
    font-weight:700;
    margin-bottom:12px;
}

.stat-value{
    font-size:clamp(1.7rem, 2vw, 2.5rem);
    font-weight:900;
    line-height:1.2;
    color:var(--text);
    word-break:break-word;
}

.stat-note{
    margin-top:8px;
    color:#7d8798;
    font-weight:700;
}

.stat-green::before{ background:var(--green); }
.stat-green .stat-icon{ color:var(--green); }
.stat-green .stat-value{ color:#099268; }

.stat-blue::before{ background:var(--blue); }
.stat-blue .stat-icon{ color:var(--blue); }
.stat-blue .stat-value{ color:#2167d8; }

.stat-purple::before{ background:var(--purple); }
.stat-purple .stat-icon{ color:var(--purple); }
.stat-purple .stat-value{ color:#7c3aed; }

.stat-orange::before{ background:var(--orange); }
.stat-orange .stat-icon{ color:var(--orange); }
.stat-orange .stat-value{ color:#c56a05; }

.stat-pink::before{ background:var(--pink); }
.stat-pink .stat-icon{ color:var(--pink); }
.stat-pink .stat-value{ color:#db2777; }

.stat-sky::before{ background:var(--sky); }
.stat-sky .stat-icon{ color:var(--sky); }
.stat-sky .stat-value{ color:#2563eb; }

/* Content section */
.content-section{
    margin-top:28px;
}

.side-stack{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-card,
.list-panel{
    background:rgba(255,255,255,.90);
    border:1px solid rgba(255,255,255,.75);
    border-radius:26px;
    box-shadow:var(--shadow-md);
    overflow:hidden;
}

.contact-card{
    padding:22px;
}

.block-head,
.panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}

.block-title,
.panel-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1.15rem;
    font-weight:900;
    color:var(--text);
}

.block-title i,
.panel-title i{
    color:var(--primary-2);
    font-size:1.2rem;
}

.block-badge{
    padding:8px 14px;
    border-radius:999px;
    background:#e9fff6;
    color:#0f9f6e;
    font-weight:800;
    font-size:.9rem;
}

.block-badge.alt{
    background:#edf4ff;
    color:#286ed4;
}

.contact-body{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-number,
.card-number-modern{
    font-size:clamp(1.5rem, 2vw, 2.3rem);
    font-weight:900;
    color:var(--text);
    background:#f8fbfe;
    border:1px dashed #d7e3ef;
    border-radius:20px;
    padding:18px;
    text-align:center;
    letter-spacing:1px;
    word-break:break-word;
}

.contact-number{
    color:#0c8f62;
}

.contact-desc{
    color:var(--muted);
    line-height:1.9;
    font-size:.98rem;
}

.action-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.action-btn{
    border:none;
    border-radius:16px;
    padding:14px 16px;
    font-weight:800;
    font-size:1rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.action-btn-primary{
    background:linear-gradient(135deg, #17b978, #10d08e);
    color:#fff;
    box-shadow:0 12px 24px rgba(16,185,129,.22);
}

.action-btn-primary:hover{
    transform:translateY(-2px);
    color:#fff;
}

.action-btn-light{
    background:#f5f8fc;
    color:var(--text);
    border:1px solid var(--line);
}

.action-btn-light:hover{
    background:#eef4fb;
}

/* Lists */
.lists-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    height:100%;
}

.modern-list-panel{
    padding:22px;
    height:100%;
}

.panel-subtitle{
    color:var(--muted);
    font-size:.92rem;
    font-weight:700;
}

.panel-body{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.donor-row-modern{
    display:flex;
    align-items:center;
    gap:14px;
    background:#f8fbfe;
    border:1px solid #e8eef5;
    border-radius:20px;
    padding:14px;
    box-shadow:0 8px 18px rgba(15,23,42,.03);
}

.donor-rank{
    width:44px;
    height:44px;
    min-width:44px;
    border-radius:50%;
    background:#edf3f9;
    color:#4d5d74;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.donor-details{
    flex:1;
    min-width:0;
}

.donor-main-name{
    font-weight:800;
    color:var(--text);
    font-size:1rem;
    line-height:1.7;
    word-break:break-word;
}

.donor-meta-line{
    color:var(--muted);
    font-size:.88rem;
}

.donor-shares{
    background:#ebfff7;
    color:#0d9c6b;
    border-radius:16px;
    padding:10px 14px;
    font-weight:900;
    font-size:1rem;
    min-width:95px;
    text-align:center;
    white-space:nowrap;
}

.donor-shares span{
    font-size:.85rem;
    font-weight:700;
}

.top-panel .panel-title i{
    color:#d97706;
}

.top-rank{
    background:#fff2df;
    color:#b86200;
}

.special-name{
    color:#7c3aed;
}

.top-shares{
    background:#fff7ea;
    color:#cb7000;
}

.empty-state-modern{
    background:#f8fbfe;
    border:1px dashed #d8e2ef;
    border-radius:18px;
    padding:24px;
    text-align:center;
    color:var(--muted);
    font-weight:700;
}

/* Buttons focus */
.btn:focus,
button:focus,
a:focus,
input:focus{
    box-shadow:none !important;
    outline:none !important;
}

/* Responsive */
@media (max-width: 1399px){
    .stats-grid-modern{
        grid-template-columns:repeat(3, 1fr);
    }

    .lists-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 991.98px){
    .hero-modern{
        padding:55px 0 45px;
        border-bottom-left-radius:28px;
        border-bottom-right-radius:28px;
    }

    .hero-quick-stats{
        grid-template-columns:1fr;
    }

    .progress-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .progress-meta{
        grid-template-columns:1fr;
    }

    .stats-grid-modern{
        grid-template-columns:repeat(2, 1fr);
    }

    .main-content-area{
        margin-top:22px;
    }
}

@media (max-width: 767.98px){
    .hero-title{
        line-height:1.3;
    }

    .progress-card-main,
    .contact-card,
    .modern-list-panel{
        padding:18px;
        border-radius:22px;
    }

    .stats-grid-modern{
        grid-template-columns:1fr;
    }

    .action-grid{
        grid-template-columns:1fr;
    }

    .block-head,
    .panel-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .donor-row-modern{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .donor-shares{
        min-width:auto;
    }

    .contact-number,
    .card-number-modern{
        font-size:1.35rem;
        padding:15px;
    }

    .progress-number{
        font-size:2.2rem;
    }
}

@media (max-width: 480px){
    .hero-modern{
        padding:48px 0 38px;
    }

    .hero-badge{
        font-size:.85rem;
        padding:9px 14px;
    }

    .hero-subtitle{
        font-size:.95rem;
    }

    .stat-card-modern{
        min-height:auto;
    }

    .stat-value{
        font-size:1.7rem;
    }
}