* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fb;
}

/*================ HEADER ================*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0f172a;
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.logo {

    font-size: 25px;
    font-weight: bold;

}

.logo i {

    color: #38bdf8;
    margin-left: 8px;

}

.top-menu {

    display: flex;
    gap: 10px;

}

.top-menu a {

    text-decoration: none;
    color: white;

    background: #1e293b;

    padding: 10px 18px;

    border-radius: 8px;

    transition: .3s;

}

.top-menu a:hover {

    background: #2563eb;

}
.top-menu .btn-support:hover {

    background: #28a745;

}

/*================ MAIN ================*/

.container {

    display: flex;
    height: calc(100vh - 70px);

}

/*================ SIDEBAR ================*/

.sidebar {

    width: 280px;
    background: #fff;

    border-left: 1px solid #ddd;

    overflow: auto;

}

.category {

    padding: 15px;

    font-weight: bold;

    background: #eef4ff;

    border-bottom: 1px solid #ddd;

    color: #2563eb;

}

.sidebar ul {

    list-style: none;

}

.sidebar li {

    border-bottom: 1px solid #eee;

}

.sidebar a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    text-decoration: none;

    color: #333;

    transition: .3s;

}

.sidebar a i {

    width: 25px;
    text-align: center;
    color: #2563eb;

}

.sidebar a:hover {

    background: #2563eb;
    color: white;

}

.sidebar a:hover i {

    color: white;

}

/*================ CONTENT ================*/

.content {

    flex: 1;

    padding: 40px;

    overflow: auto;

}

.service {

    background: white;

    border-radius: 12px;

    padding: 30px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

}

.service h2 {

    margin-bottom: 20px;

    color: #2563eb;

}

.service p {

    line-height: 2;

    color: #444;

}

.button {

    display: inline-block;

    margin-top: 30px;

    padding: 12px 25px;

    background: #2563eb;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    transition: .3s;

}

.button:hover {

    background: #1d4ed8;

}


.menu-btn {

    display: none;

    border: none;
    background: none;

    color: white;

    font-size: 24px;

    cursor: pointer;

}

/*================ MOBILE ================*/

@media(max-width:900px) {

    .container {

        flex-direction: column;

        height: auto;

    }

    .sidebar {

        width: 100%;
        border-left: none;
        border-bottom: 1px solid #ddd;

    }

    .content {

        padding: 20px;

    }

    header {

        flex-direction: column;

        gap: 15px;

    }

    /*.top-menu {

        width: 100%;
        justify-content: center;
        flex-wrap: wrap;

    }*/

    .menu-btn {
        display: block;
    }

    .top-menu {
        display: none;
        /* یا هر چیزی که خودت می‌خواهی */
    }

    .sidebar {

        position: fixed;

        top: 0;
        right: -300px;

        width: 280px;
        height: 100%;

        background: white;

        z-index: 999;

        transition: .3s;

        box-shadow: -5px 0 20px rgba(0, 0, 0, .2);

    }

    .sidebar.open {

        right: 0;

    }

    .content {

        width: 100%;
        padding: 20px;

    }
    

}
 .select-tool{
  

    min-height:350px;

    background:#fff;
    border-radius:16px;
    border:1px solid #e5e7eb;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    text-align:center;
    padding:40px 20px;
}

.select-tool i{
    font-size:64px;
    color:#2563eb;
    margin-bottom:20px;
}

.select-tool h2{
    margin:0;
    color:#1f2937;
    font-size:28px;
}

.select-tool p{
    margin-top:12px;
    color:#6b7280;
    font-size:16px;
    line-height:1.8;
}

  

.tool-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin:20px 0 30px;
    padding:15px 18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    flex-wrap:wrap;
}

.tool-stats{
    display:flex;
    gap:20px;
}

.stat{
    display:flex;
    align-items:center;
    gap:8px;
    color:#64748b;
    font-size:15px;
    font-weight:600;
}

.stat i{
    color:#2563eb;
}

.tool-actions{
    display:flex;
    gap:10px;
}

.btn-tool{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    border:none;
    border-radius:10px;
    background:#f1f5f9;
    color:#334155;
    cursor:pointer;
    transition:.25s;
    font-size:14px;
    font-family:inherit;
}

.btn-tool:hover{
    background:#2563eb;
    color:#fff;
}

.btn-tool.active{
    background:#2563eb;
    color:#fff;
}

@media(max-width:768px){

    .tool-meta{
        flex-direction:column;
        align-items:stretch;
    }

    .tool-stats{
        justify-content:center;
    }

    .tool-actions{
        width:100%;
    }

    .btn-tool{
        flex:1;
        justify-content:center;
    }

}
/* ===========================
   Share Modal
=========================== */

#shareModal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:99999;
    backdrop-filter:blur(3px);
}

#shareModal.show{
    display:flex;
}

#shareModal .modal-content{
    width:100%;
    max-width:430px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    animation:shareModalShow .25s ease;
}

@keyframes shareModalShow{

    from{
        opacity:0;
        transform:translateY(15px) scale(.96);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }

}

#shareModal .modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    border-bottom:1px solid #e2e8f0;
}

#shareModal .modal-header h3{
    margin:0;
    font-size:18px;
    color:#0f172a;
}

#shareModal .close-btn{
    font-size:26px;
    cursor:pointer;
    color:#64748b;
    transition:.2s;
}

#shareModal .close-btn:hover{
    color:#ef4444;
}

.share-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    padding:20px;
}

.share-item{
    border:none;
    outline:none;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:14px;
    height:110px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:10px;

    text-decoration:none;
    color:#334155;
    cursor:pointer;
    transition:.2s;
    font-family:inherit;
}

.share-item:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-3px);
}

.share-item i{
    font-size:32px;
}

.share-item span{
    font-size:14px;
    font-weight:600;
}

@media(max-width:600px){

    #shareModal .modal-content{
        max-width:100%;
    }

    .share-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


.top-menu .btn-blog:hover{
    background:#f0b71b;
    color:#fff;
}

.top-menu .btn-support:hover{

    background: #28a745;
    color:#fff;
}