:root {
    transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0f3724;
    color: #fff;
    padding-bottom: 65px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Top Slider Styles */
.top-slider-container {
    width: 100%;
    overflow: hidden;
    background-color: #0a2318;
    padding: 10px 0;
    position: relative;
}

.top-slider {
    display: flex;
    animation: slide 20s linear infinite;
    width: max-content;
}

.top-slider-item {
    display: flex;
    text-decoration: none !important;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    border-radius: 10px;
    padding: 5px;
    width: 180px;
    text-align: center;
}

.top-slider-item img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 5px 0;
}

.top-slider-amount {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.top-slider-button {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.top-slider-button:hover {
    background: linear-gradient(to bottom, #27ae60, #2ecc71);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

main {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.filters {
    display: flex;
    justify-content: space-between;
    background-color: #0f3724;
    padding: 8px 5px;
    margin: 8px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 100%;
}

.filter {
    background-color: #27ae60;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    flex: 1;
    margin: 0 3px;
    justify-content: center;
    white-space: nowrap;
}

.filter:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

.filter.active {
    background-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.bonus {
    background-color: #27ae60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.bonus:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.bonus a {
    height: 40px;
}

.logo {
    width: 95px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #0f3724;
    padding: 3px;
}

.logo.bg-light {
    background-color: #fff;
}

.logo.bg-padding {
    padding: 0 5px;
}

.logo.lazy {
    opacity: 0;
    transition: opacity .3s;
}

.logo.lazy.loaded {
    opacity: 1;
}

.info {
    flex-grow: 1;
    margin: 2px 6px 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0 5px;
}

.amount {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.text {
    font-size: 13px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.btn {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.btn:hover {
    background: linear-gradient(to bottom, #27ae60, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 10px;
    border-top: 1px solid #2ecc71;
    background: linear-gradient(to top, #0a2318, #0f3724);
    z-index: 100;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.nav div {
    text-align: center;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 5px;
    border-radius: 8px;
}

.nav div:hover {
    color: #2ecc71;
    transform: translateY(-3px);
}

.nav div.active {
    color: #2ecc71;
}

.nav div.active:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    border-radius: 3px;
}

.nav span {
    font-size: 18px;
    display: block;
    margin-bottom: 3px;
}

.icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
    filter: brightness(0) invert(1);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 450px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: scaleIn 0.5s ease-in-out;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.popup-header {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    position: relative;
}

.popup-content {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-item {
    background-color: rgba(15, 15, 20, 0.8);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    border: 1px solid #2ecc71;
}

.popup-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.popup-item img {
    width: 220px;
    height: 73px;
    display: block;
    margin: 0 auto;
}

.popup-btn {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 60%;
    margin: 5px auto;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.popup-btn:hover {
    background: linear-gradient(to bottom, #27ae60, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: white;
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}

/* Kayan Bildirim Stili */
#kayanBildirim {
    position: fixed;
    bottom: 80px;
    right: -300px;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px 0 0 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.5s ease;
    z-index: 999;
    border-left: 3px solid #6eff00;
    color: white;
}

#kayanLogo {
    width: 60px;
    margin-right: 10px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#kayanIsim {
    font-size: 10px;
    font-weight: bold;
    color: #6eff00;
}

#kayanTutar {
    font-size: 12px;
    font-weight: 600;
}

#kayanBtn button {
    margin-left: 15px;
    background: #6eff00;
    color: rgb(0, 0, 0);
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#kayanBtn button:hover {
    background: #5be000;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media screen and (min-width: 768px) {
    .bonuses, .filters {
        width: 100%;
        margin: auto;
    }
    .nav {
        left: 50%;
        transform: translateX(-50%);
    }
} 