@font-face {
    font-family: IranSans;
    src: url(../fonts/IRANSans-web.woff);
}

* {
    font-family: IranSans;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d110d;
    color: #fff;
}

.header {
    background-color: #171f17;
    text-align: center;
    padding: 10px 0 20px 0;
    border-radius: 0 0 20px 20px;
    border-bottom: #10B981 2px solid;
    display: flex;
    flex-direction: column;
}

h1 {
    color: #10b964;
    text-shadow: 0 0 15px rgb(21, 214, 21);
}

h1::selection {
    background-color: none;
    color: #10B981;
}

.logo {
    width: 55px;
    margin-bottom: -20px;
}

.main {
    margin: 30px;
}

.label {
    margin: 30px 0;
    text-align: center;
    border-bottom: 2px solid #10B981;
    padding: 0 0 20px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(to top, #0f300a, #0d110d);
    border: 1px solid #10B98155;
    border-radius: 20px;
    padding: 20px;
    transition: .3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #10B981;
}

.flag img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #10B981;
}

.name {
    margin-top: 15px;
    color: #94A3B8;
}

.price {
    margin-top: 12px;
    font-size: 28px;
    color: #10B981;
    font-weight: bold;
}

.table-container {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #10B98155;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
    background: #1E293B;

}

thead {
    background: #10B981;
}

thead th {
    padding: 18px;
    color: white;
    font-size: 16px;
}

tbody tr {
    border-bottom: 1px solid #334155;
    transition: .25s;
}

tbody tr:hover {
    background: #243447;
}

td {
    padding: 18px;
    text-align: center;
    color: #E2E8F0;
}

.copy {
    background: #10B981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
}

.copy:hover {
    background: #059669;
}



.footer {
    background-color: #171f17;
    text-align: center;
    padding: 10px 0 20px 0;
    border-radius: 20px 20px 0 0;
    border-top: #10B981 2px solid;
    display: flex;
    flex-direction: column;
}

p {
    color: #10B981;
    text-shadow: 0 0 15px rgb(21, 214, 21);
}

p::selection {
    background-color: none;
    color: #10B981;
}

/* لپتاپ */
@media (max-width:1200px) {}

/* تبلت */
@media (max-width:992px) {}

/* موبایل */
@media (max-width:768px) {}

/* موبایل کوچک */
@media (max-width:480px) {}

@media(max-width:768px) {
    .header {
        padding: 15px;
    }

    .footer {
        padding: 15px;
    }

    .header img {
        width: 50px;
    }

    h1 {
        font-size: 30px;
    }

}

@media(max-width:768px) {

    .main {
        margin: 15px;
    }

}

@media(max-width:768px) {

    .cards {
        grid-template-columns: 1fr;
    }

}

.cards {
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
}

@media(max-width:768px) {

    .flag img {
        width: 55px;
        height: 55px;
    }

}

@media(max-width:768px) {

    .price {
        font-size: 22px;
    }

}

@media(max-width:768px) {

    .name {
        font-size: 15px;
    }

}

@media(max-width:768px) {

    .copy {

        width: 100%;

    }

}

@media(max-width:768px) {

    .copy {

        width: 100%;

    }

}

.label {

    margin: 20px 0;

}

@media(hover:hover) {

    .card:hover {

        transform: translateY(-8px);

    }

}

@media(hover:hover) {

    .card:hover {

        transform: translateY(-8px);

    }

}

html {

    scroll-behavior: smooth;

}

/* ========================= */
/* MENU BUTTON */
/* ========================= */

.menu-btn {
    position: fixed;
    top: 18px;
    right: 20px;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 15px;

    background: linear-gradient(135deg, #10B981, #059669);

    box-shadow:
        0 0 15px rgba(16, 185, 129, .45);

    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    z-index: 1001;

    transition: .35s;
}

.menu-btn:hover {

    transform: scale(1.08);

}

.menu-btn span {

    width: 24px;
    height: 3px;

    background: white;

    border-radius: 50px;

    transition: .35s;

}

/* X Animation */

.menu-btn.active span:nth-child(1) {

    transform: translateY(9px) rotate(45deg);

}

.menu-btn.active span:nth-child(2) {

    opacity: 0;

}

.menu-btn.active span:nth-child(3) {

    transform: translateY(-9px) rotate(-45deg);

}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar {

    position: fixed;

    top: 0;
    right: -320px;

    width: 300px;
    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    background: linear-gradient(180deg,
            #0d110d,
            #10251d,
            #171f17);

    backdrop-filter: blur(20px);

    border-left: 1px solid rgba(16, 185, 129, .4);

    box-shadow: -10px 0 40px rgba(0, 0, 0, .45);

    padding: 90px 25px 30px;

    display: flex;
    flex-direction: column;

    gap: 15px;

    transition: .45s ease;

    z-index: 1000;

}

.sidebar.open {

    right: 0;

}

.sidebar a {

    color: white;

    text-decoration: none;

    background: #18271e;

    border: 1px solid rgba(16, 185, 129, .25);

    padding: 16px;

    border-radius: 14px;

    transition: .25s;

}

.sidebar a:hover {

    background: #10B981;

    color: #fff;

    transform: translateX(-8px);

    box-shadow: 0 0 20px rgba(16, 185, 129, .5);

}

/* ========================= */
/* OVERLAY */
/* ========================= */

.menu-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    backdrop-filter: blur(3px);

    opacity: 0;

    visibility: hidden;

    transition: .3s;

    z-index: 999;

}

.menu-overlay.show {

    opacity: 1;

    visibility: visible;

}

/* ========================= */
/* MOBILE */
/* ========================= */

@media(max-width:768px) {

    .menu-btn {

        right: 15px;

        top: 15px;

    }

    .sidebar {

        width: 260px;

    }

}