.featured-agents-section {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.view-all-link {
    color: #ff6b35 !important;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #e55a2b !important;
}

/* 3D Flip Card Effect */
.agent-flip-card {
    background-color: transparent;
    perspective: 1200px;
    height: 265px;
    width: 100%;
    transition: transform 0.3s ease;
}

.agent-flip-card:hover {
    transform: translateY(-4px);
}

.agent-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.agent-flip-card:hover .agent-flip-card-inner {
    transform: rotateY(180deg);
}

.agent-flip-card-front,
.agent-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.85rem !important;
    transition: all 0.3s ease;
}

.agent-flip-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #fcfdfe 100%);
    z-index: 2;
    border-top: 4px solid #ff6b35 !important;
}

.agent-flip-card-back {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: rotateY(180deg);
    z-index: 1;
}

.agent-flip-card:hover .agent-flip-card-front {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.agent-flip-card:hover .agent-flip-card-back {
    border-color: rgba(203, 213, 225, 0.8) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.agent-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    overflow: hidden;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rera-badge-custom {
    background-color: #ecfdf5 !important;
    color: #10b981 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    border-radius: 6px !important;
    padding: 0.25rem 0.5rem !important;
}

.agent-card-footer {
    margin-top: auto;
    border-top: none;
    padding-top: 0.25rem;
}

.agent-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.agent-card-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.agent-card-meta__item i {
    font-size: 0.75rem;
    color: #ff6b35;
}

/* Category specific badges */
.badge-category-commercial {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    color: #1e40af !important;
}

.badge-category-commercial i {
    color: #2563eb !important;
}

.badge-category-plotland,
.badge-category-plot-land {
    background: #ecfdf5 !important;
    border-color: #d1fae5 !important;
    color: #065f46 !important;
}

.badge-category-plotland i,
.badge-category-plot-land i {
    color: #059669 !important;
}

.badge-category-residential {
    background: #fff7ed !important;
    border-color: #ffedd5 !important;
    color: #9a3412 !important;
}

.badge-category-residential i {
    color: #ea580c !important;
}

.agent-view-profile-btn {
    min-height: 40px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f28d35 100%);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(242, 141, 53, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.agent-view-profile-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(242, 141, 53, 0.3);
    filter: brightness(1.02);
}

/* Back button styling */
.agent-view-profile-btn-back {
    background: #fff !important;
    color: #ff6b35 !important;
    border: 2px solid #ff6b35 !important;
    box-shadow: none !important;
}

.agent-view-profile-btn-back:hover {
    background: #ff6b35 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15) !important;
}

.agent-view-profile-btn-back i {
    transition: transform 0.4s ease;
}

.agent-view-profile-btn-back:hover i {
    transform: rotate(360deg);
}

.agent-view-profile-btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    filter: grayscale(0.1);
}

.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.agent-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.55rem 0.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.agent-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #ff6b35;
    font-size: 0.72rem;
}

.agent-stat-card__value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.agent-stat-card__label {
    font-size: 0.64rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agent-deals-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    align-self: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
}

.agent-deals-pill i {
    font-size: 0.75rem;
}

.agent-back-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569 !important;
}

/* Cities tag layout */
.city-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.city-tag:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}