body.popup-open {
    overflow: hidden;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(70, 70, 70, 0.85);
    /* Bu sabit kalabilir */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.popup-content {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--card-border);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease-out, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    transition-delay: 0.05s;
}

.popup-overlay.active .popup-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding-bottom: 20px;
    padding-top: 0px;
    border-bottom: 2px solid rgba(168, 168, 168, 0.08);
    margin-bottom: 25px;
    gap: 28px;
}

.popup_header_h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--pop-text-color);
}

.popup-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
    color: var(--pop-text-color);
}

.popup-close-btn:hover {
    color: var(--hover-color);
}

.p_bs-container {
    overflow-y: auto;
    max-height: calc(85vh - 150px);
    padding-right: 5px;
    background-color: var(--bg);
    /* Tema arka planı */
    color: var(--text);
    /* Tema metin rengi */
    line-height: 1.7;
    border-radius: 12px;
}

/* Scrollbar stilleri (Karanlık moda uyumlu) */
.p_bs-container::-webkit-scrollbar {
    width: 6px;
}

.p_bs-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    /* Hafif şeffaf */
    border-radius: 3px;
}

.p_bs-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

[data-theme="dark"] .p_bs-container::-webkit-scrollbar-thumb {
    background: #555;
}

.p_bs-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

[data-theme="dark"] .p_bs-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* --- Menu --- */
.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding-left: 5px;
    padding-right: 0px;
    padding-bottom: 5px;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.menu-icon {
    width: 18px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu_icon_span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--muted);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-icon:hover .menu_icon_span {
    background-color: var(--hover-color);
}

/* --- Popup Buttons --- */
.p_d_b {
    width: auto;
    display: flex;
    margin-bottom: 10px;
}

.p_b {
    margin: auto;
    display: block;
    width: 100%;
    padding: 12px 18px;
    background-color: transparent;
    border-radius: 5px;
    font-size: 0.95em;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.15s ease;
    box-sizing: border-box;
    color: var(--pop-text-color);
}


.p_b:hover {
    color: var(--hover-color-2);
    text-decoration: none;
}

.p_b_ac {
    color: var(--hover-color);
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .p_b_ac {
    background-color: rgba(255, 255, 255, 0.05);
}

.p_b:active {
    color: var(--hover-color);
}

.p_b:last-child {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .my_header {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .my_header h1 {
        font-size: 26px;
    }

    .popup-content {
        padding: 20px;
        max-width: 75%;
        transform: scale(0.95) translateY(-15px);
    }

    .popup-overlay.active .popup-content {
        transform: scale(1) translateY(0);
    }

    .popup_header_h2 {
        font-size: 14px;
    }

    .p_b {
        font-size: 0.9em;
    }

    .p_bs-container {
        max-height: calc(85vh - 120px);
    }

}

.top-header-0 {
    color: var(--text);
    background-color: var(--bg);
    background: var(--bg);
    box-shadow: 0 2px 5px rgba(99, 99, 99, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: none;

}

.top-header-1 {
    width: auto;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
}

.top-header-2 {
    margin: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-header-3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.top-header-3:hover {
    color: var(--hover-color);
    text-decoration: none;
}

@media (max-width: 980px) {
    .top-header-0 {
        display: block;
    }
}