.advertise-btn-container { text-align: center; margin: 20px 0; }
.advertise-btn { 
    display: inline-flex; 
    align-items: center; 
    padding: 12px 25px; 
    background-color: #ff6f61; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 25px; 
    font-size: 1.1em; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); 
}
.advertise-btn::before { content: "📢"; margin-right: 8px; font-size: 1.2em; }
.advertise-btn:hover { 
    background-color: #e65b50; 
    transform: scale(1.05); 
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3); 
}
.carousel-text { 
    position: absolute; 
    top: 5px; 
    left: 5px; 
    color: #fff; 
    font-weight: bold; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); 
    padding: 3px 8px; 
    border-radius: 3px; 
    z-index: 10; 
    font-size: 0.7em; 
    background: rgba(107, 72, 255, 0.7); 
}
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.75); 
    justify-content: center; 
    align-items: flex-start; 
    z-index: 1000; 
    overflow-y: auto; 
    padding: 20px 0; 
}
.modal-content { 
    background: #fff; 
    padding: 20px; 
    border-radius: 10px; 
    width: 90%; 
    max-width: 500px; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    transform: translateY(-100%); 
    animation: slideDown 0.4s ease-out forwards; 
}
@keyframes slideDown { 
    from { transform: translateY(-100%); } 
    to { transform: translateY(0); } 
}
.modal-header { display: flex; flex-direction: column; gap: 15px; }
.modal-content h2 { color: #6b48ff; font-size: 1.4em; margin: 0; text-align: center; }
.modal-table-container { width: 100%; max-height: 200px; overflow-y: auto; }
.modal-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.modal-table tr { border-bottom: 1px solid #e5e5e5; }
.modal-table th, .modal-table td { padding: 8px 10px; text-align: left; vertical-align: top; }
.modal-table th { background-color: #f8f8ff; color: #6b48ff; width: 35%; font-weight: 600; }
.modal-table td { color: #2c2c2c; word-wrap: break-word; }
.modal-table tr.description th, .modal-table tr.description td { font-size: 1em; padding: 12px 10px; }
.modal-carousel { width: 100%; margin-bottom: 20px; }
.modal-carousel-inner { display: flex; flex-wrap: nowrap; gap: 5px; justify-content: space-between; }
.modal-carousel-inner .image-wrapper { position: relative; width: 32%; padding-top: 24%; }
.modal-carousel-inner img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 5px; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #6b48ff; }
.whatsapp-btn { 
    display: inline-flex; 
    align-items: center; 
    padding: 10px 20px; 
    background-color: #25D366; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 20px; 
    font-size: 1em; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); 
    width: 100%; 
    justify-content: center; 
}
.whatsapp-btn::before { content: "📱"; margin-right: 6px; font-size: 1.1em; }
.whatsapp-btn:hover { background-color: #20b354; transform: scale(1.03); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3); }
.return-btn { 
    display: inline-flex; 
    align-items: center; 
    padding: 8px 16px; 
    background-color: #6b48ff; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 20px; 
    font-size: 0.9em; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); 
    width: 100%; 
    justify-content: center; 
}
.return-btn:hover { background-color: #5436cc; transform: scale(1.03); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3); }
footer { text-align: center; padding: 20px; background: #2c2c2c; color: #fff; width: 100%; position: relative; z-index: 1; }
footer p { margin: 5px 0; font-size: 0.85em; }
.emoji-menu { display: flex; justify-content: space-around; background: #2c2c2c; padding: 15px; position: fixed; bottom: 0; width: 100%; z-index: 3000; box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2); }
.emoji-item { font-size: 2em; padding: 12px; cursor: pointer; color: #fff; background: #6b48ff; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s ease; }
.emoji-item:hover { transform: scale(1.2); background-color: #5436cc; }
.sidebar { height: 100%; width: 0; position: fixed; top: 0; right: 0; background-color: #fff; overflow-x: hidden; transition: width 0.5s; padding-top: 60px; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); z-index: 2000; }
.sidebar-content { padding: 20px; }
.sidebar-content p { margin-bottom: 15px; line-height: 1.8; font-size: 1em; color: #2c2c2c; }
.sidebar .close-sidebar { position: absolute; top: 15px; right: 25px; font-size: 30px; cursor: pointer; color: #6b48ff; }

@media (max-width: 480px) {
    h1 { font-size: 1.3em; }
    .ad-row { gap: 5px; padding: 0 5px; }
    .ad-card { flex: 0 0 48%; max-width: 48%; }
    .ad-card .image-wrapper { padding-top: 75%; }
    .carousel-text { font-size: 0.65em; padding: 2px 6px; top: 3px; left: 3px; }
    .ad-info { font-size: 0.8em; padding: 5px; }
    .modal-content { width: 95%; max-width: 350px; padding: 15px; }
    .modal-content h2 { font-size: 1.2em; }
    .modal-table-container { max-height: 150px; }
    .modal-table th, .modal-table td { font-size: 0.85em; padding: 6px 8px; }
    .modal-table tr.description th, .modal-table tr.description td { font-size: 0.9em; padding: 8px; }
    .modal-carousel-inner .image-wrapper { padding-top: 24%; }
    .whatsapp-btn { padding: 8px 15px; font-size: 0.9em; }
    .return-btn { padding: 6px 12px; font-size: 0.8em; }
    .close-btn { top: 8px; right: 12px; font-size: 20px; }
    .emoji-item { font-size: 1.6em; width: 40px; height: 40px; }
    .advertise-btn { padding: 10px 20px; font-size: 1em; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .ad-card { flex: 0 0 48%; max-width: 48%; }
    .ad-card .image-wrapper { padding-top: 75%; }
    .modal-carousel-inner .image-wrapper { padding-top: 24%; }
    .emoji-item { font-size: 1.8em; width: 45px; height: 45px; }
}
@media (min-width: 769px) {
    .ad-card { flex: 0 0 24%; max-width: 24%; }
    .ad-card .image-wrapper { padding-top: 75%; }
    .modal-carousel-inner .image-wrapper { padding-top: 24%; }
}