/* ==========================================================
   TRACKREWARD DASHBOARD V7
   Premium Enterprise UI
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --primary-light:#60a5fa;

    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;

    --dark:#0f172a;
    --text:#1e293b;
    --muted:#64748b;

    --bg:#f5f7fb;
    --card:#ffffff;

    --radius:22px;

    --shadow:
        0 12px 30px rgba(15,23,42,.08);

    --shadow-hover:
        0 20px 45px rgba(15,23,42,.15);

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:Inter,Arial,sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

}

img{

    display:block;

    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    cursor:pointer;

    font-family:inherit;

}

/* ==========================================================
HEADER
========================================================== */

.top-header{

    position:fixed;

    top:0;

    left:0;

    right:0;

    height:75px;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 30px;

    z-index:1000;

    box-shadow:
    0 5px 18px rgba(0,0,0,.05);

}

.header-space{

    height:90px;

}

.menu-btn{

    width:46px;

    height:46px;

    border:none;

    border-radius:14px;

    background:#eef4ff;

    color:var(--primary);

    font-size:22px;

    transition:.3s;

}

.menu-btn:hover{

    background:var(--primary);

    color:#fff;

}

.header-logo{

    flex:1;

    display:flex;

    justify-content:center;

}

.header-logo img{

    height:52px;

}

.profile-avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light));

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-weight:700;

    font-size:18px;

    box-shadow:
    0 10px 25px rgba(37,99,235,.30);

}

/* ==========================================================
PREMIUM SIDEBAR
========================================================== */

.sidebar{

    position:fixed;

    top:0;

    left:-320px;

    width:300px;

    height:100vh;

    background:#0f172a;

    color:#fff;

    display:flex;

    flex-direction:column;

    padding:30px 22px;

    transition:.35s;

    z-index:1200;

    overflow-y:auto;

}

.sidebar.open{

    left:0;

}

.sidebar-header{

    display:flex;

    flex-direction:column;

    align-items:center;

    margin-bottom:40px;

}

.sidebar-header img{

    width:82px;

    margin-bottom:15px;

}

.sidebar-header h3{

    font-size:24px;

    font-weight:700;

    letter-spacing:.5px;

}

/* Navigation */

.sidebar a{

    display:flex;

    align-items:center;

    gap:16px;

    padding:16px 18px;

    border-radius:16px;

    margin-bottom:10px;

    font-size:16px;

    font-weight:600;

    color:#cbd5e1;

    transition:.25s;

}

.sidebar a i{

    width:24px;

    text-align:center;

    font-size:18px;

}

.sidebar a:hover{

    background:rgba(37,99,235,.18);

    color:#fff;

    transform:translateX(5px);

}

/* Active page */

.sidebar a:first-of-type{

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light));

    color:#fff;

    box-shadow:
    0 10px 25px rgba(37,99,235,.35);

}

/* Logout */

#logoutBtn{

    margin-top:auto;

    background:#ef4444;

    color:#fff;

    justify-content:center;

}

#logoutBtn:hover{

    background:#dc2626;

    transform:none;

}

/* Overlay */

.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(3px);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1100;

}

.overlay.show{

    opacity:1;

    visibility:visible;

}

/* ==========================================================
MAIN LAYOUT
========================================================== */

.dashboard{
    width:min(1500px,95%);
    margin:auto;
    padding-bottom:40px;
}

/* ==========================================================
   HERO
========================================================== */

.hero-card{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:40px;
    padding:50px;
    margin-bottom:35px;
    border-radius:30px;
    color:#fff;
    background:linear-gradient(135deg,#0f4fd6,#2563eb,#4f8cff);
    box-shadow:0 25px 60px rgba(37,99,235,.28);
}

.hero-card::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    top:-180px;
    right:-120px;
}

.hero-card::after{
    content:"";
    position:absolute;
    width:240px;
    height:240px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
    bottom:-100px;
    left:-80px;
}

.hero-left{
    position:relative;
    z-index:2;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 20px;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(12px);
    font-size:13px;
    font-weight:700;
    margin-bottom:24px;
}

.hero-badge i{
    color:#fde047;
}

.hero-left h1{
    font-size:42px;
    line-height:1.2;
    font-weight:800;
    margin-bottom:18px;
}

.hero-left h1 span{
    display:block;
    color:#ffffff;
}

.hero-message{
    max-width:650px;
    line-height:1.8;
    font-size:17px;
    opacity:.95;
    margin-bottom:30px;
}

.hero-info{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:28px;
}

.hero-item{
    min-width:220px;
    padding:18px 22px;
    border-radius:18px;
    background:rgba(255,255,255,.14);
    backdrop-filter:blur(15px);
}

.hero-item span{
    display:block;
    font-size:13px;
    opacity:.85;
    margin-bottom:8px;
}

.hero-item strong{
    font-size:18px;
    font-weight:700;
}

.progress-area{
    margin-bottom:28px;
}

.progress-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    font-size:15px;
    font-weight:600;
}

.progress-bar{
    height:14px;
    background:rgba(255,255,255,.25);
    border-radius:999px;
    overflow:hidden;
}

.progress-fill{
    width:0%;
    height:100%;
    background:#fff;
    border-radius:999px;
    transition:width .6s ease;
}

.delivery-box{
    display:inline-flex;
    align-items:center;
    gap:18px;
    padding:18px 22px;
    border-radius:18px;
    background:rgba(255,255,255,.14);
    backdrop-filter:blur(15px);
}

.delivery-box i{
    font-size:28px;
}

.delivery-box span{
    display:block;
    font-size:13px;
    opacity:.8;
}

.delivery-box strong{
    font-size:18px;
}

.hero-right{
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    z-index:2;
}

.hero-image{
    width:100%;
    max-width:360px;
    filter:drop-shadow(0 20px 40px rgba(0,0,0,.25));
    animation:heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat{
    0%{transform:translateY(0);}
    50%{transform:translateY(-12px);}
    100%{transform:translateY(0);}
}

/*==================================================
SIDEBAR
==================================================*/

.sidebar{
    position:fixed;
    top:0;
    left:-320px;
    width:300px;
    height:100vh;
    background:#0f172a;
    color:#fff;
    display:flex;
    flex-direction:column;
    transition:.35s ease;
    z-index:1200;
    overflow-y:auto;
    box-shadow:20px 0 40px rgba(0,0,0,.25);
}

.sidebar.open{
    left:0;
}

.sidebar-header{
    padding:35px 30px;
    display:flex;
    flex-direction:column;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-header img{
    width:120px;
    margin-bottom:15px;
}

.sidebar-header h3{
    font-size:22px;
    font-weight:700;
    color:#fff;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px 28px;
    color:#cbd5e1;
    font-size:16px;
    transition:.25s;
}

.sidebar a i{
    width:22px;
    text-align:center;
    font-size:18px;
}

.sidebar a:hover{
    background:#2563eb;
    color:#fff;
}

.sidebar a.active{
    background:#2563eb;
    color:#fff;
    border-left:4px solid #60a5fa;
}

#logoutBtn{
    margin-top:auto;
    margin:30px;
    border-radius:15px;
    background:#dc2626;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:700;
    transition:.3s;
}

#logoutBtn:hover{
    background:#ef4444;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:1100;
    backdrop-filter:blur(3px);
}

.overlay.show{
    opacity:1;
    visibility:visible;
}

/* ==========================================
   PREMIUM SUMMARY CARDS
==========================================*/

.summary-section{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin:40px 0;
}

.summary-card{
    background:#fff;
    border-radius:22px;
    padding:24px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 15px 40px rgba(15,23,42,.08);
    transition:.35s;
    border:1px solid #edf2f7;
}

.summary-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 55px rgba(37,99,235,.12);
}

.summary-icon{
    width:70px;
    height:70px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:26px;
    flex-shrink:0;
}

.summary-icon.prize{
    background:linear-gradient(135deg,#f59e0b,#facc15);
}

.summary-icon.shipment{
    background:linear-gradient(135deg,#2563eb,#60a5fa);
}

.summary-icon.location{
    background:linear-gradient(135deg,#10b981,#34d399);
}

.summary-icon.calendar{
    background:linear-gradient(135deg,#8b5cf6,#c084fc);
}

.summary-content{
    display:flex;
    flex-direction:column;
}

.summary-content span{
    font-size:13px;
    color:#64748b;
    margin-bottom:8px;
}

.summary-content h2{
    font-size:28px;
    color:#0f172a;
    font-weight:800;
    line-height:1.2;
    word-break:break-word;
}

.summary-content h2.small{
    font-size:22px;
}

/* Tablet */

@media(max-width:1100px){

.summary-section{

grid-template-columns:repeat(2,1fr);

}

}

/* Mobile */

@media(max-width:768px){

.summary-section{

grid-template-columns:1fr;

gap:18px;

margin:30px 0;

}

.summary-card{

padding:22px;

}

.summary-icon{

width:60px;

height:60px;

font-size:22px;

}

.summary-content h2{

font-size:24px;

}

}

/*=========================================
REWARD CENTER
=========================================*/

.reward-center{
    margin:60px 0;
}

.reward-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:28px;
}

.reward-box{
    background:#ffffff;
    border-radius:24px;
    padding:32px;
    position:relative;
    overflow:hidden;
    border:1px solid #edf2f7;
    box-shadow:
        0 15px 35px rgba(15,23,42,.06),
        0 6px 18px rgba(15,23,42,.05);
    transition:.35s ease;
}

.reward-box:hover{
    transform:translateY(-8px);
    box-shadow:
        0 25px 50px rgba(37,99,235,.12),
        0 10px 24px rgba(15,23,42,.08);
}

.reward-box::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,#2563eb,#60a5fa);
}

.reward-box span{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#64748b;
    margin-bottom:14px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.reward-box h2{
    font-size:32px;
    font-weight:800;
    color:#2563eb;
    line-height:1.3;
    word-break:break-word;
}

.reward-box.status{
    background:linear-gradient(135deg,#2563eb,#3b82f6,#60a5fa);
    color:#ffffff;
}

.reward-box.status::before{
    display:none;
}

.reward-box.status span{
    color:rgba(255,255,255,.85);
}

.reward-box.status h2{
    color:#ffffff;
}

.reward-box.status::after{
    content:"✔";
    position:absolute;
    right:25px;
    bottom:18px;
    font-size:70px;
    opacity:.12;
    font-weight:bold;
}

/*=========================================
SECTION HEADERS
=========================================*/

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:32px;
}

.section-header h2{
    font-size:34px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:8px;
}

.section-header p{
    color:#64748b;
    font-size:15px;
}

.section-header i{
    font-size:34px;
    color:#2563eb;
}

/*=========================================
SHIPMENT CENTER
=========================================*/

.shipment-center{
    margin:60px 0;
}

.shipment-wrapper{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:30px;
    align-items:stretch;
}

.shipment-progress-card{
    background:#fff;
    border-radius:26px;
    padding:35px;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 15px 35px rgba(15,23,42,.08);
}

.progress-circle{
    position:relative;
    width:230px;
    height:230px;
}

.progress-circle svg{
    width:230px;
    height:230px;
    transform:rotate(-90deg);
}

.circle-bg{
    fill:none;
    stroke:#e5e7eb;
    stroke-width:12;
}

.circle-progress{
    fill:none;
    stroke:#2563eb;
    stroke-width:12;
    stroke-linecap:round;
    stroke-dasharray:565;
    stroke-dashoffset:565;
    transition:.8s;
}

.progress-value{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.progress-value h2{
    font-size:42px;
    color:#2563eb;
    font-weight:800;
}

.progress-value span{
    color:#64748b;
    margin-top:6px;
}

.shipment-details{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.shipment-item{
    background:#fff;
    border-radius:22px;
    padding:24px;
    display:flex;
    align-items:center;
    gap:18px;
    border:1px solid #edf2f7;
    box-shadow:0 12px 30px rgba(15,23,42,.08);
    transition:.35s;
}

.shipment-item:hover{
    transform:translateY(-6px);
    box-shadow:0 22px 40px rgba(15,23,42,.12);
}

.shipment-item i{
    width:64px;
    height:64px;
    border-radius:18px;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
}

.shipment-item span{
    display:block;
    color:#64748b;
    font-size:13px;
    margin-bottom:8px;
}

.shipment-item h3{
    font-size:22px;
    color:#0f172a;
    font-weight:700;
    line-height:1.3;
}

@media(max-width:1100px){

.shipment-wrapper{
grid-template-columns:1fr;
}

.shipment-details{
grid-template-columns:1fr;
}

}

/*=========================================
SHIPMENT HOLD NOTICE
=========================================*/

.hold-card{
    display:none;
    margin-top:35px;
    padding:30px;
    border-radius:24px;
    background:linear-gradient(135deg,#fff8ec,#fff2d7);
    border:1px solid #facc15;
    box-shadow:0 15px 35px rgba(245,158,11,.15);
    overflow:hidden;
    position:relative;
}

.hold-card.show{
    display:block;
}

.hold-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:6px;
    height:100%;
    background:#f59e0b;
}

.hold-header{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:20px;
}

.hold-header i{
    width:60px;
    height:60px;
    border-radius:18px;
    background:#f59e0b;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
}

.hold-header h2{
    font-size:28px;
    color:#92400e;
    font-weight:800;
}

.hold-card p{
    color:#78350f;
    line-height:1.8;
    font-size:16px;
    margin-bottom:25px;
}

.hold-image{
    width:100%;
    max-height:340px;
    object-fit:cover;
    border-radius:18px;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.hold-image.show{
    display:block;
}

/*=========================================
PREMIUM SHIPMENT TIMELINE
=========================================*/

.timeline-section{
    margin:60px 0 40px;
}

.live-badge{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:700;
    color:#16a34a;
}

.status-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
    animation:pulseLive 1.4s infinite;
}

@keyframes pulseLive{

0%{
transform:scale(1);
opacity:1;
}

50%{
transform:scale(1.5);
opacity:.4;
}

100%{
transform:scale(1);
opacity:1;
}

}

.timeline{
    position:relative;
    margin-top:25px;
    padding-left:70px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:28px;
    top:0;
    bottom:0;
    width:4px;
    background:#dbeafe;
    border-radius:50px;
}

.timeline-item{
    position:relative;
    margin-bottom:30px;
}

.timeline-dot{
    position:absolute;
    left:-55px;
    top:20px;

    width:26px;
    height:26px;

    border-radius:50%;

    background:linear-gradient(
    135deg,
    #2563eb,
    #60a5fa);

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;

    box-shadow:
    0 8px 18px rgba(37,99,235,.30);
}

.timeline-card{

    background:#fff;

    border-radius:22px;

    padding:24px;

    border:1px solid #edf2f7;

    box-shadow:
    0 15px 35px rgba(15,23,42,.08);

    transition:.35s;

}

.timeline-card:hover{

    transform:translateY(-5px);

    box-shadow:
    0 25px 45px rgba(15,23,42,.12);

}

.timeline-card h3{

    font-size:21px;

    color:#0f172a;

    margin-bottom:10px;

    font-weight:700;

}

.timeline-card p{

    color:#64748b;

    line-height:1.8;

    margin-bottom:14px;

}

.timeline-card span{

    display:inline-flex;

    align-items:center;

    gap:8px;

    font-size:13px;

    color:#94a3b8;

}

.timeline-card span i{

    color:#2563eb;

}

.timeline-empty{

    background:#fff;

    border-radius:22px;

    padding:35px;

    text-align:center;

    border:2px dashed #dbeafe;

    color:#64748b;

}

.timeline-empty i{

    font-size:48px;

    color:#2563eb;

    margin-bottom:20px;

}

.timeline-empty h3{

    color:#0f172a;

    margin-bottom:10px;

}

@media(max-width:768px){

.timeline{

padding-left:50px;

}

.timeline::before{

left:18px;

}

.timeline-dot{

left:-40px;

}

}

/*=========================================
PROFILE + NOTIFICATIONS
=========================================*/

.bottom-grid{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:30px;
    margin:50px 0 40px;
}

.profile-card,
.notification-center{
    background:#fff;
    border-radius:26px;
    padding:30px;
    border:1px solid #edf2f7;
    box-shadow:0 15px 35px rgba(15,23,42,.08);
}

.profile-top{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:28px;
}

.large-avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:34px;
    font-weight:700;
    box-shadow:0 12px 30px rgba(37,99,235,.30);
}

.profile-top h2{
    font-size:28px;
    color:#0f172a;
    margin-bottom:8px;
}

.profile-top p{
    color:#64748b;
}

.profile-info{
    display:grid;
    gap:18px;
    margin-top:25px;
}

.profile-info div{
    padding:18px;
    border-radius:18px;
    background:#f8fafc;
}

.profile-info span{
    display:block;
    color:#64748b;
    margin-bottom:6px;
    font-size:14px;
}

.profile-info strong{
    font-size:18px;
    color:#0f172a;
}

.notification-item{
    display:flex;
    gap:18px;
    padding:22px 0;
    border-bottom:1px solid #eef2f7;
}

.notification-item:last-child{
    border-bottom:none;
}

.notification-item i{
    width:55px;
    height:55px;
    border-radius:16px;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
}

.notification-item h4{
    color:#0f172a;
    margin-bottom:8px;
    font-size:18px;
}

.notification-item p{
    color:#64748b;
    line-height:1.7;
}

@media(max-width:1100px){

.bottom-grid{
grid-template-columns:1fr;
}

}

/*=========================================
PREMIUM MOBILE NAVIGATION
=========================================*/

.mobile-nav{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:18px;

    width:calc(100% - 30px);
    max-width:480px;

    height:72px;

    background:rgba(255,255,255,.95);
    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.7);

    border-radius:24px;

    display:none;

    justify-content:space-around;
    align-items:center;

    box-shadow:
        0 20px 45px rgba(15,23,42,.18);

    z-index:999;
}

.mobile-nav a{

    flex:1;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:6px;

    color:#64748b;

    font-size:11px;

    font-weight:600;

    transition:.3s;
}

.mobile-nav a i{

    font-size:20px;

    transition:.3s;
}

.mobile-nav a:hover{

    color:#2563eb;

}

.mobile-nav a.active{

    color:#2563eb;

}

.mobile-nav a.active i{

    transform:translateY(-3px) scale(1.15);

}

/* Only show on phones */

@media(min-width:769px){

.mobile-nav{

display:none !important;

}

}

@media(max-width:768px){

.mobile-nav{

display:flex;

}

.dashboard{

padding-bottom:90px;

}

}