/* ---------- دکمه‌ها ---------- */
.btn-primary, .btn-outline, .btn-danger {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold-gradient);
    background-size: 200% auto;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover { background: var(--primary-color); color: var(--gold-solid); }

.btn-danger { background: #FEE2E2; color: #991B1B; }
.btn-danger:hover { background: #DC2626; color: #fff; }

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 1.1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* ---------- پیام‌های فلش ---------- */
.flash-stack { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.flash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
}
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error   { background: var(--error-bg);   color: var(--error-text); }
.flash-info    { background: var(--info-bg);    color: var(--info-text); }
.flash-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: inherit; line-height: 1; }

/* ---------- نشان‌ها ---------- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    background: #E2E8F0;
    color: var(--primary-light);
    vertical-align: middle;
}
.badge-agent { background: var(--primary-color); color: var(--gold-solid); }

.status { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.status-active  { background: var(--success-bg); color: var(--success-text); }
.status-pending { background: #FEF3C7; color: #92400E; }

/* ---------- حالت خالی / خطا ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--gold-solid);
}
.empty-state .btn-primary { margin-top: 15px; }
.error-page h1 { font-size: 4rem; color: var(--gold-solid); }
.error-page h2 { margin-bottom: 10px; color: var(--primary-color); }
.error-page p { margin-bottom: 20px; }

/* ---------- اسلایدر عکس ---------- */
.carousel { position: relative; overflow: hidden; height: 250px; background: #E2E8F0; }
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    direction: ltr;
}
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}
.carousel-empty small { font-size: 0.8rem; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #F8FAFC;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 32px;
    height: 55px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    opacity: 0.8;
}
.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--gold-solid);
    border-color: var(--gold-solid);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    opacity: 1;
}
.carousel-btn.right-btn { right: 5px; }
.carousel-btn.left-btn { left: 5px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active { width: 12px; height: 12px; background: var(--gold-solid); }

/* فرم درخواست املاکی */
.agent-map-wrap .map-box { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.agent-status { margin-bottom: 12px; }
.agent-status.pending { border-color: #FDE68A; background: #FFFBEB; }
.agent-status.rejected { border-color: #FECACA; background: #FEF2F2; }
.agent-summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.agent-summary dt { color: var(--text-muted); font-size: 0.85rem; }
.agent-summary dd { margin: 0; font-weight: 600; }
.field-error { color: #B91C1C; font-size: 0.85rem; margin: 4px 0 0; }
#agent-form textarea, #agent-form input { font-size: 16px; }
