body { 
    margin: 0; 
    background: #f4dede; 
}
    
    .post-ad-container {
    max-width: 850px;
    margin: 10px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ad-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

/* --- AD TYPE & PRICE MESSAGE --- */
.type-selector select {
    padding: 12px;
    border: 2px solid #2f3542;
    border-radius: 8px;
    font-weight: 600;
    background-color: #f8f9fa;
}

.price-hint {
    margin-top: 8px;
    font-weight: bold;
    color: #d63384;
    font-size: 0.9rem;
    padding: 5px;
    background: #fff0f5;
    border-radius: 5px;
}

/* --- ERROR HIGHLIGHTING --- */
/* For standard inputs and textareas */
.input-error {
    border-color: #ff4757 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.2);
}

/* Specific fix for Select2 (since the original select is hidden) */
.input-error + .select2-container .select2-selection {
    border-color: #ff4757 !important;
    background-color: #fffafb !important;
}

/* For the custom file button if image is missing */
.btn-prof-file.error-border {
    border: 2px solid #ff4757 !important;
}

/* Select2 Overrides */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    text-align: center !important;
}

/* Form Styles */
.input-row { display: flex; gap: 15px; margin-bottom: 15px; }
.input-group { flex: 1; display: flex; flex-direction: column; margin-bottom: 15px; }
.input-group label { font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.input-group input, textarea { padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }

/* --- ATTRACTIVE AD TYPE SELECTOR --- */


.type-card {
    cursor: pointer;
    position: relative;
}

.type-card input {
    position: absolute;
    opacity: 0;
}

.card-content {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.type-name { font-weight: 800; font-size: 0.9rem; color: #555; }
.type-price { font-size: 0.8rem; color: #888; }

/* Selection States */
.type-card input:checked + .card-content {
    background: #2f3542;
    border-color: #2f3542;
}
.type-card input:checked + .card-content .type-name,
.type-card input:checked + .card-content .type-price {
    color: #fff;
}

/* Color Accents */
.type-card.super input:checked + .card-content { background: #ffa502; border-color: #ffa502; }
.type-card.vip input:checked + .card-content { background: #ff4757; border-color: #ff4757; }

/* Price Message Box */
.info-box {
    margin-top: 15px;
    padding: 12px 15px;
    background: #eef2ff;
    border-left: 4px solid #007bff;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
}

/* --- LOGIN PROMPT CARD STYLING --- */
.login-prompt-card {
    background: #fff;
    max-width: 500px;
    margin: 40px auto;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(214, 51, 132, 0.1);
    border: 1px solid #fdeff4;
}

.prompt-icon {
    width: 70px;
    height: 70px;
    background: #fff0f5;
    color: var(--accent-pink);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
}

.login-prompt-card h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.login-prompt-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-prompt-login {
    display: block;
    background: var(--accent-pink);
    color: white !important;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.2);
}

.btn-prompt-login:hover {
    background: #b8286e;
    transform: translateY(-2px);
}

.prompt-divider {
    position: relative;
    text-align: center;
    margin: 10px 0;
}

.prompt-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.prompt-divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.btn-prompt-signup {
    display: block;
    background: white;
    color: var(--accent-pink) !important;
    border: 2px solid var(--accent-pink);
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-prompt-signup:hover {
    background: #fff0f5;
}

.prompt-benefits {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #f5f5f5;
    padding-top: 25px;
}

.benefit {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.benefit i {
    color: var(--accent-green);
}

/* Error Toaster Styling */
.toaster.error { background: #ff4757 !important; color: white; }

@media (max-width: 500px) {
    .ad-type-container { grid-template-columns: 1fr; }
    .login-prompt-card {
        padding: 30px 20px;
        margin: 20px 10px;
    }
}
/* File Buttons */
.file-input-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.btn-prof-file { background: #007bff; color: white; border: none; padding: 10px; border-radius: 6px; font-weight: 600; width: 100%; cursor: pointer; }
.btn-prof-file.gray { background: #6c757d; }
.file-input-wrapper input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; font-size: 100px; }

.preview-img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; margin-top: 10px; border: 2px solid #eee; display:none; }
.preview-img[src] { display: block; }

.verification-section { background: #fff9e6; padding: 20px; border-radius: 10px; border: 1px dashed #ffa502; margin: 25px 0; }
.btn-cam { background: #747d8c; color: #fff; border: none; padding: 10px; border-radius: 5px; cursor: pointer; }
#webcam { width: 100%; border-radius: 8px; margin-top: 10px; }

.post-submit-btn {
    width: 100%; background: #2f3542; color: #fff; border: none; padding: 18px; border-radius: 10px;
    font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s;
}

/* Modal */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); display:none; align-items:center; justify-content:center; z-index: 10001; }
.modal-box { background: #fff; padding: 30px; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; }
.modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.modal-btn-yes { flex:1; background: #28a745; color:#fff; border:none; padding:12px; border-radius:8px; cursor:pointer; font-weight:bold; }
.modal-btn-no { flex:1; background: #eee; border:none; padding:12px; border-radius:8px; cursor:pointer; }

/* Toaster */
.toaster { position: fixed; top: 90px; right: 20px; padding: 12px 20px; border-radius: 12px; display: flex; gap: 12px; z-index: 9999; animation: slideInRight 0.5s ease-out; }
.toaster.success { background: #2ed573; color: white; }
.toaster.error { background: #ff4757; color: white; }

@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (max-width: 600px) {
    .input-row { flex-direction: column; gap: 0; }
    .post-ad-container { margin: 70px auto; }
}