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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d0a3d 0%, #1a0525 100%);
    color: #fff;
    min-height: 100vh;
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-box {
    background: #4a1a5c;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 30px #ff00aa;
}

.age-box button {
    margin: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
}

.age-box button:first-of-type {
    background: #ff00aa;
    color: white;
}

.age-box .no {
    background: #666;
}

/* Header */
header {
    background: rgba(74, 26, 92, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ff00aa;
}

.logo h1 {
    font-size: 2.5em;
    color: #ff66cc;
}

.logo span {
    color: #fff;
}

.logo p {
    font-size: 0.9em;
    opacity: 0.8;
}

.auth input {
    padding: 8px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
}

.auth button {
    padding: 8px 15px;
    background: #ff00aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
}

.auth button:hover {
    background: #cc0088;
}

/* Categories */
.categories {
    background: #3a1550;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-btn {
    background: #5a2a70;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn.active, .cat-btn:hover {
    background: #ff00aa;
}

/* Main */
main {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    width: 250px;
    background: rgba(58, 21, 80, 0.7);
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.sidebar select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background: #2d0a3d;
    color: white;
    border: 1px solid #ff00aa;
}

.stats {
    margin-top: 20px;
    padding: 15px;
    background: #4a1a5c;
    border-radius: 8px;
}

.listings {
    flex: 1;
}

.listings h2 {
    margin-bottom: 20px;
    color: #ff66cc;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.ad-card {
    background: #3a1550;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 170, 0.4);
    border-color: #ff00aa;
}

.ad-photo {
    height: 180px;
    background: linear-gradient(45deg, #5a2a70, #2d0a3d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #ff66cc;
}

.ad-info {
    padding: 12px;
}

.ad-info h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-info .city {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: #3a1550;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 2px solid #ff00aa;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #ff66cc;
}

.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    background: #2d0a3d;
    color: white;
}

.modal-content textarea {
    height: 120px;
    resize: vertical;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #ff00aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
}

.modal-content button:hover {
    background: #cc0088;
}

footer {
    text-align: center;
    padding: 30px;
    background: #1a0525;
    margin-top: 40px;
    font-size: 0.85em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}