/* ==========================================================================
   Casa Specialistilor - Reusable Components (Premium)
   ========================================================================== */

/* ---------- Buttons (Premium) ---------- */
.csp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-in-out-smooth);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.csp-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Ripple effect container */
.csp-btn .csp-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: csp-ripple 0.6s linear;
    pointer-events: none;
    z-index: 0;
}

.csp-btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(53, 99, 233, 0.2);
}

.csp-btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    color: var(--white);
}

.csp-btn--accent {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(53, 99, 233, 0.2);
}

.csp-btn--accent:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    color: var(--white);
}

/* Orange CTA button (Listivo6 "Post Your Ad" style) */
.csp-btn--cta-orange {
    background: var(--accent);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(243, 112, 33, 0.25);
    font-weight: 700;
}

.csp-btn--cta-orange:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
    color: var(--white);
}

/* CTA shimmer effect */
.csp-btn--cta {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(53, 99, 233, 0.2);
}

.csp-btn--cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: none;
    animation: csp-shimmer 3s ease-in-out infinite;
    z-index: -1;
}

.csp-btn--cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    color: var(--white);
}

.csp-btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--gray-200);
}

.csp-btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.02) translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.csp-btn--ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: transparent;
}

.csp-btn--ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.csp-btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.csp-btn--white:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.csp-btn--sm {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
}

.csp-btn--lg {
    padding: 16px 32px;
    font-size: var(--font-size-base);
}

.csp-btn--block {
    width: 100%;
}

.csp-btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.csp-btn--loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: csp-spin 0.6s linear infinite;
}

.csp-btn--success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.csp-btn--success:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: var(--shadow-success);
}

.csp-btn--danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.csp-btn--danger:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* ---------- Form Elements (Premium) ---------- */
.csp-form-group {
    margin-bottom: var(--space-5);
    position: relative;
}

.csp-form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    transition: color var(--transition-smooth);
}

.csp-form-group .required {
    color: var(--error);
}

.csp-input,
.csp-select,
.csp-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color 0.3s var(--ease-in-out-smooth),
                box-shadow 0.3s var(--ease-in-out-smooth),
                background 0.3s var(--ease-in-out-smooth);
    appearance: none;
}

.csp-input:hover,
.csp-select:hover,
.csp-textarea:hover {
    border-color: var(--gray-300);
}

.csp-input:focus,
.csp-select:focus,
.csp-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(53, 99, 233, 0.12);
    background: var(--white);
}

.csp-input::placeholder,
.csp-textarea::placeholder {
    color: var(--gray-400);
}

.csp-input.error,
.csp-select.error,
.csp-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
    animation: csp-shake 0.4s ease;
}

@keyframes csp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.csp-input.success,
.csp-select.success,
.csp-textarea.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.csp-textarea {
    resize: vertical;
    min-height: 100px;
}

.csp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    padding-right: 40px;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.csp-checkbox-group,
.csp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.csp-checkbox-label,
.csp-radio-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    cursor: pointer;
    padding: var(--space-2) var(--space-3);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease-in-out-smooth);
}

.csp-checkbox-label:hover,
.csp-radio-label:hover {
    border-color: var(--primary);
    background: rgba(53, 99, 233, 0.04);
}

.csp-checkbox-label input:checked + span,
.csp-radio-label input:checked + span {
    font-weight: 600;
}

.csp-form-error {
    color: var(--error);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
}

.csp-form-help {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
}

/* ---------- Cards (Premium) ---------- */
.csp-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform 0.35s var(--ease-out-expo),
                box-shadow 0.35s var(--ease-out-expo),
                border-color 0.35s var(--ease-out-expo);
}

.csp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-100);
}

.csp-card--flat {
    border: none;
    box-shadow: var(--shadow);
}

.csp-card--flat:hover {
    box-shadow: var(--shadow-xl);
}

/* Glass card variant */
.csp-card--glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur-light);
    backdrop-filter: var(--glass-blur-light);
    border: 1px solid var(--glass-border);
}

/* ---------- Specialist Card (Premium) ---------- */
.csp-specialist-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.csp-specialist-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.csp-specialist-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.csp-specialist-card:hover .csp-specialist-card__image img {
    transform: scale(1.08);
}

/* Image overlay gradient on hover */
.csp-specialist-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-in-out-smooth);
    pointer-events: none;
}

.csp-specialist-card:hover .csp-specialist-card__image::after {
    opacity: 1;
}

.csp-specialist-card__badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    gap: var(--space-2);
    z-index: 1;
}

.csp-specialist-card__body {
    padding: var(--space-4) var(--space-5);
    flex: 1;
}

.csp-specialist-card__name {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-1);
}

.csp-specialist-card__name a {
    color: var(--gray-900);
    transition: color 0.25s var(--ease-in-out-smooth);
}

.csp-specialist-card__name a:hover {
    color: var(--primary);
}

.csp-specialist-card__specs {
    font-size: var(--font-size-sm);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

/* Favorite button (card) */
.csp-fav-btn {
    transition: all 0.2s ease;
}

.csp-fav-btn--active {
    color: var(--error) !important;
}

.csp-fav-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Favorite button (profile page) */
.csp-fav-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 10px 16px;
    margin-bottom: var(--space-4);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.csp-fav-profile-btn:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.04);
}

.csp-fav-profile-btn.csp-fav-btn--active {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.04);
}

.csp-specialist-card__entity {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary);
    background: rgba(53, 99, 233, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: var(--space-2);
}

.csp-specialist-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.csp-specialist-card__rating {
    margin-bottom: var(--space-2);
}

.csp-specialist-card__desc {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
}

.csp-specialist-card__footer {
    padding: 0 var(--space-5) var(--space-5);
}

/* ---------- Experience Ribbon ---------- */
.csp-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 110px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.csp-ribbon span {
    display: block;
    position: absolute;
    top: 22px;
    right: -28px;
    width: 150px;
    padding: 5px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Junior - Verde */
.csp-ribbon--junior span {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Mid - Albastru */
.csp-ribbon--mid span {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Senior - Mov/Violet */
.csp-ribbon--senior span {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Expert - Auriu */
.csp-ribbon--expert span {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ---------- Experience Badge (Profile Detail) ---------- */
.csp-experience-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    margin-top: var(--space-2);
}

.csp-experience-badge--junior {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.csp-experience-badge--mid {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.csp-experience-badge--senior {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.csp-experience-badge--expert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ---------- Badges (Premium) ---------- */
.csp-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 3px 12px;
    background: linear-gradient(135deg, #DBEAFE, #E8EEFB);
    color: var(--primary-dark);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 4px rgba(53, 99, 233, 0.2);
}

.csp-badge-available {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #D1FAE5, #ECFDF5);
    color: #065F46;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.csp-badge-unavailable {
    display: inline-block;
    padding: 3px 12px;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.csp-badge-inactive {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.csp-badge-busy {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.csp-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 3px 12px;
    background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
    color: #92400E;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15);
}

/* ---------- Stars (Premium Gold Gradient) ---------- */
.csp-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.csp-stars .star {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s var(--ease-out-back);
}

.csp-stars:hover .star {
    transform: scale(1.15);
}

.csp-stars .star-full {
    color: transparent;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

.csp-stars .star-half {
    color: transparent;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.6;
}

.csp-stars .star-empty {
    color: var(--gray-300);
}

.csp-stars .star-count {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-left: var(--space-1);
}

/* ---------- Alerts ---------- */
.csp-alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
    animation: csp-fadeInDown 0.3s var(--ease-out-expo);
}

.csp-alert--success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.csp-alert--error {
    background: var(--error-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.csp-alert--warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.csp-alert--info {
    background: var(--info-light);
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

/* ---------- Grid ---------- */
.csp-grid {
    display: grid;
    gap: var(--space-6);
}

.csp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.csp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.csp-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Pagination ---------- */
.csp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.csp-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
    transition: all 0.25s var(--ease-in-out-smooth);
}

.csp-pagination__btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.csp-pagination__btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.csp-pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Modal (Premium) ---------- */
.csp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.csp-modal-overlay.active {
    display: flex;
    animation: csp-fadeIn 0.2s ease;
}

.csp-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-8);
    box-shadow: var(--shadow-2xl);
    animation: csp-scaleIn 0.3s var(--ease-out-back);
}

.csp-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.csp-modal__header h3 {
    margin: 0;
}

.csp-modal__close {
    background: var(--gray-50);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-400);
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: all var(--transition-smooth);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-modal__close:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

/* ---------- Toast Notifications (Premium) ---------- */
.csp-toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.csp-toast {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 420px;
    animation: csp-bounceIn 0.5s var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.csp-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    animation: csp-toast-progress 4s linear forwards;
}

@keyframes csp-toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.csp-toast--success { background: var(--success); color: var(--white); }
.csp-toast--error { background: var(--error); color: var(--white); }
.csp-toast--info { background: var(--primary); color: var(--white); }

/* ---------- Tabs (Premium Sliding Pill) ---------- */
.csp-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: var(--space-6);
    overflow-x: auto;
    position: relative;
    border-bottom: none;
}

.csp-tab {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-500);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-in-out-smooth);
    position: relative;
    z-index: 1;
}

.csp-tab:hover {
    color: var(--gray-700);
}

.csp-tab.active {
    color: var(--primary);
    background: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ---------- No Results ---------- */
.csp-no-results {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    color: var(--gray-500);
}

.csp-no-results p {
    font-size: var(--font-size-lg);
}

/* ---------- Loading / Spinner (Premium) ---------- */
.csp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
}

.csp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: csp-spin 0.8s linear infinite;
}

/* Premium spinner variant */
.csp-spinner--premium {
    width: 44px;
    height: 44px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--primary-light);
    border-radius: 50%;
    animation: csp-spin 0.8s linear infinite;
    position: relative;
}

.csp-spinner--premium::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid transparent;
    border-left-color: var(--accent);
    border-right-color: var(--accent-light);
    border-radius: 50%;
    animation: csp-spin 1.2s linear reverse infinite;
}

/* ---------- Skeleton Shimmer Loader ---------- */
.csp-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 936px 100%;
    animation: csp-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

.csp-skeleton--text {
    height: 14px;
    margin-bottom: var(--space-2);
    width: 80%;
}

.csp-skeleton--text:last-child {
    width: 60%;
}

.csp-skeleton--title {
    height: 24px;
    width: 50%;
    margin-bottom: var(--space-3);
}

.csp-skeleton--avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.csp-skeleton--image {
    height: 200px;
    width: 100%;
}

/* ---------- Stat Card ---------- */
.csp-stat {
    text-align: center;
    padding: var(--space-6);
}

.csp-stat__value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.csp-stat__label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: var(--space-2);
}

/* ==========================================================================
   Homepage Components (Premium)
   ========================================================================== */

/* ---------- Hero Section (2-Column with Illustration) ---------- */
.csp-hero {
    background: var(--gradient-hero-mesh);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Hero with background image */
.csp-hero--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.csp-hero--has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.88) 0%, rgba(30, 42, 58, 0.82) 50%, rgba(33, 72, 196, 0.7) 100%);
    z-index: 1;
}

.csp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
    z-index: 2;
}

.csp-hero__content {
    text-align: left;
}

.csp-hero h1 {
    color: var(--white);
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--space-5);
    line-height: 1.1;
    letter-spacing: -2px;
}

.csp-hero h1 .csp-hero__h1-accent {
    color: var(--accent);
}

.csp-hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    line-height: 1.8;
    max-width: 520px;
    font-weight: 400;
}

/* Hero visual / illustration */
.csp-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-hero__illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: csp-float 6s ease-in-out infinite;
}

/* Hero search bar */
.csp-hero__search {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: var(--white);
    margin: 0 auto var(--space-6);
    max-width: 680px;
}

.csp-hero__search-fields {
    display: flex;
    flex: 1;
    align-items: center;
}

.csp-hero__search-field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    padding: 0 var(--space-4);
}

.csp-hero__search-field svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.csp-hero__search-field .csp-select {
    border: none;
    flex: 1;
    padding: 14px 8px;
    background-color: transparent;
    font-weight: 500;
    color: var(--gray-800);
    font-size: var(--font-size-sm);
}

.csp-hero__search-field .csp-select:focus {
    box-shadow: none;
    outline: none;
}

.csp-hero__search-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.csp-hero__search .csp-btn {
    flex-shrink: 0;
    border-radius: var(--radius);
    padding: 14px 28px;
}

/* Popular categories tags */
.csp-hero__popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-10);
}

.csp-hero__popular-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-right: var(--space-1);
}

.csp-hero__popular-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.csp-hero__popular-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero stats */
.csp-hero__stats {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
}

.csp-hero__stat {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.csp-hero__stat strong {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--white);
}

.csp-hero__stat-plus {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--white);
}

.csp-hero__stat span {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.csp-hero__stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Steps (Premium Modern) ---------- */
.csp-steps {
    position: relative;
    counter-reset: step-counter;
}

.csp-step-card {
    position: relative;
    counter-increment: step-counter;
    padding: var(--space-8) var(--space-6) var(--space-6);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: all 0.4s var(--ease-out-expo);
}

.csp-step-card:hover {
    border-color: rgba(53, 99, 233, 0.15);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.csp-step-number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(53, 99, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    transition: all 0.3s ease;
}

.csp-step-card:hover .csp-step-number {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(53, 99, 233, 0.3);
}

.csp-step-number span {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    transition: color 0.3s ease;
}

.csp-step-card:hover .csp-step-number span {
    color: var(--white);
}

.csp-step-card__illustration {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--space-3);
    display: block;
}

.csp-step-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.csp-step-card p {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin: 0;
}

/* Step connectors */
.csp-step-connectors {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    pointer-events: none;
}

@media (min-width: 769px) {
    .csp-step-connectors {
        display: flex;
        justify-content: space-evenly;
        padding: 0 calc(100% / 6);
    }

    .csp-step-connector {
        flex: 1;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-light), var(--gray-200), var(--primary-light));
        margin: 0 var(--space-8);
        border-radius: 1px;
    }
}

/* ---------- "De ce" / Why Cards (Modern 2x2) ---------- */
.csp-why-grid {
    gap: var(--space-6);
    grid-template-columns: repeat(2, 1fr) !important;
}

.csp-why-card {
    text-align: left;
    padding: var(--space-8);
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: all 0.4s var(--ease-out-expo);
}

.csp-why-card:hover {
    border-color: rgba(53, 99, 233, 0.12);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.csp-why-card__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-lg);
    background: rgba(53, 99, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.csp-why-card:hover .csp-why-card__icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(53, 99, 233, 0.25);
}

.csp-why-card__text h4 {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-base);
    font-weight: 700;
}

.csp-why-card__text p,
.csp-why-card p {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.7;
}

/* ---------- Specialization Cards (Legacy) ---------- */
.csp-spec-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.csp-spec-card h4 {
    transition: color 0.25s var(--ease-in-out-smooth);
}

.csp-spec-card:hover h4 {
    color: var(--primary);
}

.csp-spec-card__count {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin: 0;
}

.csp-spec-card__arrow {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-5);
    font-size: var(--font-size-lg);
    color: var(--gray-300);
    transition: all 0.3s var(--ease-out-expo);
}

.csp-spec-card:hover .csp-spec-card__arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ---------- Category Cards (Listivo6 Style) ---------- */
.csp-category-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.csp-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-100);
}

.csp-category-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: rgba(53, 99, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto var(--space-4);
    transition: all 0.3s ease;
}

.csp-category-card:hover .csp-category-card__icon {
    background: var(--primary);
    color: var(--white);
}

.csp-category-card h4 {
    margin-bottom: var(--space-2);
    color: var(--gray-900);
    transition: color 0.25s ease;
}

.csp-category-card:hover h4 {
    color: var(--primary);
}

.csp-category-card__count {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-4);
    font-weight: 400;
}

.csp-category-card__link {
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: color 0.25s ease;
}

.csp-category-card:hover .csp-category-card__link {
    color: var(--primary-dark);
}

/* ---------- Newsletter Section (Listivo6 Style) ---------- */
.csp-newsletter-section {
    background: var(--section-bg);
    border-top: 1px solid var(--gray-200);
}

.csp-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.csp-newsletter__content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.csp-newsletter__content p {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin: 0;
}

.csp-newsletter__form {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.csp-newsletter__form .csp-input {
    min-width: 280px;
    padding: 12px 16px;
}

.csp-newsletter__form .csp-btn {
    white-space: nowrap;
}

/* ---------- CTA Section (Premium Modern) ---------- */
.csp-cta-section {
    background: var(--gradient-cta-mesh);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* CTA with background image */
.csp-cta-section--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.csp-cta-section--has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.9) 0%, rgba(30, 42, 58, 0.85) 50%, rgba(15, 25, 35, 0.9) 100%);
    z-index: 0;
}

.csp-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.csp-cta__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.csp-cta__title {
    color: var(--white);
    margin-bottom: var(--space-4);
    font-weight: 800;
    font-size: var(--font-size-3xl);
    letter-spacing: -0.02em;
}

.csp-cta__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-lg);
    max-width: 560px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.csp-cta__actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.csp-cta__shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.csp-cta__shape {
    position: absolute;
    border-radius: 50%;
}

.csp-cta__shape--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(53, 99, 233, 0.1) 0%, transparent 70%);
    animation: csp-orb-drift-1 12s ease-in-out infinite;
}

.csp-cta__shape--2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -30px;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.06) 0%, transparent 70%);
    animation: csp-orb-drift-2 15s ease-in-out infinite;
}

/* ---------- Specialist Card Gradient Border Hover ---------- */
.csp-specialist-card {
    position: relative;
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease-out-expo);
}

.csp-specialist-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-in-out-smooth);
    pointer-events: none;
    z-index: 1;
}

.csp-specialist-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.csp-specialist-card:hover::before {
    opacity: 1;
    background: var(--gradient-border-glow);
}
