* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", system-ui, sans-serif;
}

:root {
    --main-color-: #7E39E5;
    --main-color20-: #7E39E520;
}

body {
    background: linear-gradient(180deg, #5928a2, #31126f);
    color: #111;
    padding: 20px;
}

.logo {
    text-align: center;
    position: relative;
    background: #ffffff00;
    border-radius: 20px;
    font-weight: bold;
    font-size: 24px;
    padding: 10px 20px;
    margin-bottom: 40px;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
    /*  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); */
}

.logo::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 10px;
    height: 6px;
    background-color: #fff;
    width: 100%;
    border-radius: 20px;
}

.telegram-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.telegram-buttons button {
    background: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.telegram-buttons button i {
    color: var(--main-color-);
    margin-right: 8px;
}

.telegram-buttons button:hover {
    transform: translateY(-3px);
}


section {
    width: 50%;
    margin: auto;
}

.adresler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;

}

.adres-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.adres-card h3 {
    margin-bottom: 16px;
}

.adres-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f2f6ff;
    border-radius: 10px;
    padding: 16px 15px;
    margin: 15px 0;
    
}

.adres {
    font-weight: bold;
    color: var(--main-color-);
}

.durum.aktif {
    color: #1938c3;
    font-size: 14px;
}

.btn-primary {
    position: relative;
    background: linear-gradient(90deg, #19c363, #0c8f19);
    color: #fff;
    border: none;
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-top: 24px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(42, 109, 244, 0.5);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.2) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    left: 125%;
}

.btn-primary:hover {
    animation: glowPulse 1.2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 8px rgba(42, 109, 244, 0.3);
    }

    to {
        box-shadow: 0 0 18px rgba(42, 109, 244, 0.7);
    }
}

.adres-list {
    list-style: none;
    margin-top: 32px;
}

.adres-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.etiket {
    background: var(--main-color20-);
    color: var(--main-color-);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.talimatlar {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

.talimatlar .boxes {
    display: flex;
    gap: 1vh;
}

.tab-header {
    display: flex;
    justify-content: space-between;

    gap: 10px;
    margin-bottom: 20px;
}

.tab-header button {
    border: none;
    background: #f2f6ff;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
}

.tab-header button.active {
    background: var(--main-color-);
    color: #fff;
}

.talimat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.talimat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F4F4F4;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.talimat-item:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.talimat-icerik {
    display: none;
}

.talimat-icerik.active {
    display: grid;
}

.tab-btn.active {
    background: var(--main-color-);
    color: #fff;
}



.tab-btn {
    border: none;
    background: #f2f6ff;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--main-color-);
    color: #fff;
    transform: scale(1.05);
}

.talimat-icerik {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.talimat-icerik.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.talimat-item {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}









.num {
    background: var(--main-color-);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otomatik-guncelleme {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.guncelleme-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}

.guncelleme-card h4 {
    margin: 16px 0;
}

.guncelleme-card .icon-box {
    width: 60px;
    height: 60px;
    background-color: #481C9E20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.guncelleme-card a {
    position: relative;
    background-color: #19c363;
    padding: 10px 20px;
    display: block;
    width: max-content;
    margin-top: 16px;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
}

.guncelleme-card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
}

.guncelleme-card a:hover::before {
    animation: shine 1s forwards;
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}



.guncelleme-card i {
    font-size: 26px;
    color: var(--main-color-);
}

.bildirim {
    margin-bottom: 30px;
}

.bildirim-box {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.bildirim-box h3 {
    margin-bottom: 16px;
}

.istatistik {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
}

.istatistik h3 {
    margin-bottom: 16px;
}

.istatistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.istatistik-card {
    background: #f2f6ff;
    border-radius: 10px;
    text-align: left;
    padding: 10px;
}

.istatistik-card .sayi {
    font-size: 22px;
    font-weight: bold;
    color: var(--main-color-);
}

@media (max-width: 1100px) {
    section {
        width: 80%;
        margin: auto;
    }

    .tab-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .telegram-buttons {
        gap: 10px;
    }

    .adres-card,
    .talimatlar,
    .bildirim-box,
    .istatistik {
        padding: 15px;
    }



    .telegram-buttons button {
        padding: 8px 16px;
        font-size: 14px;
    }


    .guncelleme-card {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

     section {
        width: 90%;
        margin: auto;
    }

    .otomatik-guncelleme {
    grid-template-columns: repeat(1, 1fr);
}
}




.admin-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.admin-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-content input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.admin-content button {
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

#save-btn {
    background: #2a6df4;
    color: #fff;
}

#close-btn {
    background: #ccc;
    color: #111;
}