/* ==========================
   TOOLXONE HOME HERO
========================== */

.home-dashboard-hero{
    width:100%;
    max-width:none;
    margin:0 auto 70px;
    padding:55px 20px 20px;
}

.hero-center{
    width:100%;
    max-width:900px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.hero-badge{
    display:inline-block;
    background:rgba(16,185,129,.16);
    color:#10b981;
    border:1px solid rgba(16,185,129,.45);
    padding:12px 24px;
    border-radius:999px;
    font-weight:800;
    margin-bottom:18px;
}

.hero-logo-card{
    display:inline-block;
    padding:18px;
    border-radius:24px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 22px 55px rgba(0,0,0,.22);
    margin-bottom:28px;
}

.hero-logo-main{
    width:360px;
    max-width:100%;
    display:block;
    border-radius:14px;
}

.hero-center h1{
    max-width:760px;
    font-size:38px;
    line-height:1.2;
    margin:0 auto 18px;
    color:#1f2937;
}

.hero-center p{
    max-width:680px;
    font-size:18px;
    line-height:1.8;
    color:#64748b;
    margin:0 auto 30px;
}

.hero-actions{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:34px;
}

.hero-btn,
.hero-secondary-btn{
    padding:15px 28px;
    border-radius:999px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
    transition:.3s;
}

.hero-btn{
    background:#10b981;
    color:white;
    border:none;
    box-shadow:0 14px 30px rgba(16,185,129,.25);
}

.hero-secondary-btn{
    background:transparent;
    color:#10b981;
    border:2px solid #10b981;
}

.hero-btn:hover,
.hero-secondary-btn:hover{
    transform:translateY(-3px);
}

.hero-secondary-btn:hover{
    background:#10b981;
    color:white;
}

.hero-mini-stats{
    display:flex;
    justify-content:center;
    gap:55px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.hero-mini-stats div{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.hero-mini-stats strong{
    font-size:34px;
    color:#10b981;
}

.hero-mini-stats span{
    color:#64748b;
    font-weight:700;
}

/* ==========================
   HERO MARKET CARD
========================== */

.trend-up,
.trend-down{
    font-size:13px;
    padding:4px 8px;
    border-radius:999px;
    font-weight:800;
    white-space:nowrap;
}

.trend-up{
    background:rgba(16,185,129,.14);
    color:#059669;
}

.trend-down{
    background:rgba(239,68,68,.14);
    color:#dc2626;
}

.rate-error{
    color:#ef4444;
}

.hero-market-card{
    width:100%;
    max-width:720px;
    margin:0 auto;
}

.market-card{
    background:#ffffff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 22px 55px rgba(0,0,0,.14);
}

.market-row{
    display:grid;
    grid-template-columns:
        minmax(260px,1fr)
        120px
        90px
        130px;

    align-items:center;
    gap:22px;
}
.market-row:hover{

    background:#f8fffc;

    transform:translateX(4px);

}

.market-footer{
    margin-top:22px;
    text-align:center;
    color:#64748b;
    font-size:14px;
}

/* ==========================
   SECTION HEADERS
========================== */

.featured-header{
    text-align:center;
    margin:40px auto 45px;
}

.featured-badge-title{
    display:inline-block;
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
    color:white;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    padding:8px 18px;
    border-radius:999px;
    margin-bottom:18px;
    box-shadow:0 8px 20px rgba(245,158,11,.35);
}

.featured-header h2{
    font-size:40px;
    color:#10b981;
    margin-bottom:14px;
}

.featured-header p{
    max-width:700px;
    margin:auto;
    color:#64748b;
    font-size:18px;
    line-height:1.7;
}

/* ==========================
   DASHBOARD SECTIONS
========================== */

#dashboard{
    max-width:1200px;
    margin:40px auto 60px;
    padding:20px;
}

#whats-new,
#recommended-section,
#categories-section,
#category-tool-sections{
    max-width:1200px;
    margin:60px auto;
    padding:20px;
}

#toolCards,
#newTools,
#recommendedTools,
#categoryCards,
.category-tools-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

/* ==========================
   TOOL & CATEGORY CARDS
========================== */

.tool-card,
.category-card{
    background:#ffffff;
    border-radius:22px;
    padding:30px 22px;
    text-align:center;
    box-shadow:0 14px 30px rgba(0,0,0,.14);
    border:1px solid rgba(255,255,255,.08);
    transition:.3s ease;
    position:relative;
    overflow:hidden;
}

.tool-card{
    min-height:250px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.tool-card:hover,
.category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(16,185,129,.22);
    border-color:#27d89b;
}

.tool-icon,
.category-card .cat-icon{
    font-size:42px;
    margin-bottom:12px;
}

.tool-category{
    display:inline-block;
    margin:10px 0;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(16,185,129,.14);
    color:#10b981;
    font-size:13px;
    font-weight:bold;
}

.tool-card h3,
.category-card h3{
    color:#10b981;
    margin-bottom:10px;
}

.tool-card p,
.category-card p{
    color:#64748b;
    line-height:1.5;
}

.tool-card a{
    display:inline-block;
    margin-top:16px;
    padding:10px 18px;
    border-radius:999px;
    background:#10b981;
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.3s ease;
}

.tool-card a:hover{
    background:#059669;
    transform:scale(1.05);
}

/* ==========================
   CARD BADGES
========================== */

.card-badges{
    position:absolute;
    top:14px;
    right:14px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.badge{
    padding:5px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

.featured-badge{
    background:#fef3c7;
    color:#92400e;
}

.new-badge{
    background:#dcfce7;
    color:#166534;
}

/* ==========================
   HERO FEATURED CARD
========================== */

.hero-featured-card{
    background:linear-gradient(145deg,#1d2d44,#123d34);
    border:2px solid #f59e0b;
    box-shadow:
        0 0 35px rgba(245,158,11,.22),
        0 18px 45px rgba(0,0,0,.35);
}

.hero-featured-card::before{
    content:"👑 TOP PICK";
    position:absolute;
    top:18px;
    left:18px;
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
    color:#111827;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

.hero-featured-card h3{
    color:#fbbf24;
}

.hero-featured-card a{
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
    color:#111827;
}

/* ==========================
   CATEGORY SECTIONS
========================== */

.category-tool-section{
    margin:80px 0;
    scroll-margin-top:120px;
}

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

@media(max-width:900px){
    .home-dashboard-hero{
        margin:20px auto 50px;
        padding:18px;
    }

    .hero-logo-main{
        width:280px;
    }

    .hero-center h1{
        font-size:32px;
    }

    .hero-center p{
        font-size:17px;
    }

    .hero-mini-stats{
        gap:28px;
    }

    @media(max-width:900px){

    .market-header{
        flex-direction:column;
        text-align:center;
    }

    .market-row{
        grid-template-columns:1fr;
        text-align:center;
        gap:12px;
    }

}
}

@media(max-width:768px){
    .featured-header h2{
        font-size:30px;
    }

    .featured-header p{
        font-size:15px;
    }

    #toolCards,
    #newTools,
    #recommendedTools,
    #categoryCards,
    .category-tools-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:480px){
    .hero-logo-main{
        width:230px;
    }

    .hero-center h1{
        font-size:28px;
    }

    .hero-btn,
    .hero-secondary-btn{
        width:100%;
        text-align:center;
    }
}

/* ==========================
   DARK MODE
========================== */

body.dark-mode .home-dashboard-hero,
body.dark-mode #dashboard,
body.dark-mode #whats-new,
body.dark-mode #recommended-section,
body.dark-mode #categories-section,
body.dark-mode #category-tool-sections{
    background:transparent;
}

body.dark-mode .hero-center h1{
    color:#f8fafc;
}

body.dark-mode .hero-center p,
body.dark-mode .hero-mini-stats span,
body.dark-mode .market-footer,
body.dark-mode .featured-header p{
    color:#cbd5e1;
}

body.dark-mode .market-card{
    background:#24324b;
}

body.dark-mode .market-row{
    border-color:rgba(255,255,255,.10);
}

body.dark-mode .hero-secondary-btn{
    color:#34d399;
    border-color:#34d399;
}

body.dark-mode .hero-secondary-btn:hover{
    background:#34d399;
    color:#0f172a;
}

body.dark-mode .tool-card,
body.dark-mode .category-card{
    background:#1d2d44;
    color:white;
    border:1px solid #2f4058;
}

body.dark-mode .tool-card p,
body.dark-mode .category-card p{
    color:#cbd5e1;
}

body.dark-mode .featured-header h2,
body.dark-mode .category-card h3,
body.dark-mode .tool-card h3{
    color:#34d399;
}

body.dark-mode .featured-badge{
    background:#78350f;
    color:#fde68a;
}

body.dark-mode .new-badge{
    background:#064e3b;
    color:#a7f3d0;
}
.market-control{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:22px;
}

.market-control label{
    font-weight:700;
    color:#64748b;
}

.market-control select{
    padding:8px 12px;
    border-radius:10px;
    border:1px solid #d1d5db;
    outline:none;
    font-weight:700;
}

body.dark-mode .market-control label{
    color:#cbd5e1;
}
.market-top{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:25px;

flex-wrap:wrap;

}

.market-title{

display:flex;

align-items:center;

gap:15px;

}

.market-title h3{

margin:0;

font-size:28px;

}

.market-title p{

margin:3px 0 0;

font-size:15px;

color:#64748b;

}

.market-icon{

font-size:38px;

color:#10b981;

}

.live-badge{

background:#dcfce7;

color:#059669;

padding:5px 12px;

border-radius:999px;

font-size:13px;

font-weight:bold;

}

.market-update{

font-size:14px;

color:#64748b;

}

.green-dot{

display:inline-block;

width:10px;

height:10px;

background:#10b981;

border-radius:50%;

margin-left:8px;

}

.market-select-row select{

padding:10px 16px;

border-radius:12px;

border:1px solid #d1d5db;

font-size:16px;

}

.market-bottom{

margin-top:30px;

display:flex;

justify-content:space-between;

flex-wrap:wrap;

font-size:14px;

color:#64748b;

border-top:1px solid #e5e7eb;

padding-top:20px;

}
.currency-info{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.currency-info strong{
    display:block;
    font-size:18px;
    font-weight:700;
    color:#111827;
    line-height:1.2;
}

.currency-info small{
    display:block;
    font-size:12px;
    margin-top:3px;
    color:#64748b;
    font-weight:500;
    line-height:1.3;
}

.currency-rate{
    text-align:right;
    font-size:20px;
    font-weight:900;
    color:#10b981;
    font-variant-numeric:tabular-nums;
}
.currency-change{
    width:95px;
    text-align:center;
}

body.dark-mode .currency-info strong{
    color:#f8fafc;
}

body.dark-mode .currency-info small{
    color:#cbd5e1;
}
.sparkline{
    width:110px;
    height:34px;
    overflow:hidden;
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.sparkline svg{
    width:100%;
    height:100%;
    display:block;
}

.spark-up{
    color:#10b981;
}

.spark-down{
    color:#ef4444;
}