/* =====================================================
   TT-COMPONENTS.CSS - Styles Centralisés Réutilisables
   TechTinkr V2
   ===================================================== */

/* =====================================================
   1. PAGE SECTIONS & HEADERS
   ===================================================== */

/* Page Moderation */
.tt-page-moderation {
    max-width: 1200px;
}

.tt-page-header {
    margin-bottom: 2rem;
}

.tt-page-title {
    font-family: var(--tt-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tt-text-primary, #fff);
    margin: 0 0 0.25rem 0;
}

.tt-page-subtitle {
    font-size: 0.95rem;
    color: var(--tt-text-secondary, rgba(255,255,255,0.6));
    margin: 0;
}

/* =====================================================
   2. ADMIN/MODERATION STYLES
   ===================================================== */

.mf-section-admin-reviews {
    padding: 2rem 0;
    min-height: 100vh;
}

.mf-admin-header {
    margin-bottom: 2rem;
}

.mf-admin-header h1 {
    color: var(--mf-text, #fff);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.mf-admin-subtitle {
    color: var(--mf-text-muted, rgba(255,255,255,0.6));
}

.mf-admin-section {
    margin-bottom: 2rem;
}

/* =====================================================
   3. STATS CARDS
   ===================================================== */

.mf-stats-grid,
.tt-moderation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mf-stat-card,
.tt-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--mf-card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--mf-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 1.25rem;
}

.mf-stat-icon,
.tt-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mf-stat-pending,
.tt-stat-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mf-stat-published,
.tt-stat-published { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.mf-stat-rating,
.tt-stat-rating { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.mf-stat-content,
.tt-stat-content {
    display: flex;
    flex-direction: column;
}

.mf-stat-value,
.tt-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mf-text, #fff);
}

.mf-stat-label,
.tt-stat-label {
    font-size: 0.85rem;
    color: var(--mf-text-muted, rgba(255,255,255,0.6));
}

/* =====================================================
   4. ALERTS
   ===================================================== */

.mf-alert,
.tt-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.mf-alert-success,
.tt-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.mf-alert-error,
.tt-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* =====================================================
   5. SECTION TITLES
   ===================================================== */

.mf-section-title,
.tt-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--mf-text, #fff);
    margin-bottom: 1rem;
}

.mf-section-icon {
    font-size: 1.25rem;
}

/* =====================================================
   6. REVIEW CARDS (Admin/Moderation)
   ===================================================== */

.mf-reviews-admin-list,
.tt-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mf-review-admin-card,
.tt-review-card {
    background: var(--mf-card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--mf-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 1.5rem;
}

.mf-review-pending,
.tt-review-pending {
    border-left: 4px solid #f59e0b;
}

.mf-review-published,
.tt-review-published {
    border-left: 4px solid #10b981;
}

.mf-review-header,
.tt-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mf-review-avatar,
.tt-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.mf-review-meta,
.tt-review-meta {
    flex: 1;
}

.mf-review-author,
.tt-review-author {
    display: block;
    font-weight: 600;
    color: var(--mf-text, #fff);
}

.mf-review-date,
.tt-review-date {
    display: block;
    font-size: 0.8rem;
    color: var(--mf-text-muted, rgba(255,255,255,0.5));
}

.mf-review-rating,
.tt-review-rating {
    display: flex;
    gap: 2px;
}

.mf-star,
.tt-star { color: #64748b; }
.mf-star-filled,
.tt-star-filled { color: #fbbf24; }

.mf-review-title,
.tt-review-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mf-text, #fff);
    margin: 0 0 0.5rem 0;
}

.mf-review-content,
.tt-review-content {
    color: var(--mf-text-secondary, rgba(255,255,255,0.8));
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.mf-review-actions,
.tt-review-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =====================================================
   7. BUTTONS (mf-btn / tt-btn variants)
   ===================================================== */

.mf-btn,
.tt-btn-mod {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.mf-btn:hover,
.tt-btn-mod:hover {
    transform: translateY(-1px);
}

.mf-btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.mf-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.mf-btn-secondary {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.tt-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tt-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.tt-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* =====================================================
   8. EMPTY STATES
   ===================================================== */

.mf-empty-state-small {
    padding: 2rem;
    text-align: center;
    color: var(--mf-text-muted, rgba(255,255,255,0.5));
    background: var(--mf-card-bg, #1a1a2e);
    border-radius: 12px;
}

.tt-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
    color: var(--tt-text-secondary, rgba(255,255,255,0.5));
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

/* =====================================================
   9. APP AVIS (User Review Form)
   ===================================================== */

.mf-section-app-avis {
    padding: 3rem 0;
    min-height: 100vh;
}

.mf-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mf-page-header h1 {
    color: var(--mf-text, #fff);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mf-page-subtitle {
    color: var(--mf-text-muted, rgba(255,255,255,0.6));
}

.mf-review-form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--mf-card-bg, #1a1a2e);
    border: 1px solid var(--mf-border, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 2rem;
}

.mf-existing-review-box {
    background: var(--mf-bg-secondary, rgba(255,255,255,0.05));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mf-existing-review-box h3 {
    color: var(--mf-text, #fff);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.mf-existing-review-stars {
    margin-bottom: 0.75rem;
}

.mf-existing-review-title {
    font-weight: 600;
    color: var(--mf-text, #fff);
    margin-bottom: 0.5rem;
}

.mf-existing-review-content {
    color: var(--mf-text-secondary, rgba(255,255,255,0.8));
    margin-bottom: 0.75rem;
}

.mf-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mf-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.mf-status-approved {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mf-status-published {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.mf-modify-title {
    color: var(--mf-text, #fff);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* =====================================================
   10. FORMS
   ===================================================== */

.mf-form-group {
    margin-bottom: 1.5rem;
}

.mf-form-label {
    display: block;
    color: var(--mf-text, #fff);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mf-star-rating {
    display: flex;
    gap: 0.5rem;
}

.mf-star-label {
    cursor: pointer;
}

.mf-star-label input {
    display: none;
}

.mf-star-input {
    font-size: 2rem;
    color: #64748b;
    transition: color 0.15s, transform 0.15s;
}

.mf-star-label:hover .mf-star-input,
.mf-star-label input:checked ~ .mf-star-input {
    color: #fbbf24;
    transform: scale(1.1);
}

.mf-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--mf-input-bg, rgba(255,255,255,0.05));
    border: 1px solid var(--mf-border, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--mf-text, #fff);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.mf-input:focus {
    outline: none;
    border-color: var(--mf-accent, #6366f1);
}

.mf-input::placeholder {
    color: var(--mf-text-muted, rgba(255,255,255,0.4));
}

.mf-textarea {
    resize: vertical;
    min-height: 120px;
}

.mf-form-hint {
    display: block;
    color: var(--mf-text-muted, rgba(255,255,255,0.5));
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.mf-validation-error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.mf-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.mf-form-footer-text {
    text-align: center;
    color: var(--mf-text-muted, rgba(255,255,255,0.5));
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* =====================================================
   11. DASHBOARD WELCOME & STATS
   ===================================================== */

.tt-dashboard-welcome {
    margin-bottom: 2rem;
}

.tt-welcome-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--tt-radius-xl);
}

.tt-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tt-accent-primary), var(--tt-accent-purple));
    border-radius: var(--tt-radius-lg);
    color: white;
    flex-shrink: 0;
}

.tt-welcome-title {
    font-family: var(--mf-font-titles);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tt-text-primary);
    margin: 0 0 0.5rem 0;
}

.tt-welcome-text {
    color: var(--tt-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.tt-dashboard-stats {
    margin-bottom: 2rem;
}

.tt-stat-card-dashboard {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.tt-stat-icon--primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--tt-accent-primary);
}

.tt-stat-icon--success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--tt-success);
}

.tt-stat-icon--warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--tt-warning);
}

.tt-stat-icon--info {
    background: rgba(6, 182, 212, 0.15);
    color: var(--tt-info);
}

.tt-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tt-dashboard-section {
    margin-bottom: 2rem;
}

/* Action Cards */
.tt-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.tt-action-card:hover {
    transform: translateY(-4px);
}

.tt-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--tt-radius-lg);
    color: var(--tt-accent-light);
    transition: all var(--tt-transition);
}

.tt-action-card:hover .tt-action-icon {
    background: linear-gradient(135deg, var(--tt-accent-primary), var(--tt-accent-purple));
    color: white;
}

.tt-action-label {
    font-weight: 600;
    color: var(--tt-text-primary);
}

/* =====================================================
   12. NOTIFICATIONS
   ===================================================== */

.tt-notifications-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.tt-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tt-notifications-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tt-notifications-filters {
    display: flex;
    gap: 0.5rem;
}

.tt-filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--tt-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tt-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--tt-text-primary);
}

.tt-filter-btn--active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--tt-accent-primary);
}

.tt-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background 0.2s;
    position: relative;
}

.tt-notification-item--clickable {
    cursor: pointer;
}

.tt-notification-item--clickable:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tt-notification-item--unread {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.tt-notification-item--priority {
    border-left: 3px solid var(--tt-error);
}

.tt-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--tt-text-secondary);
}

.tt-notification-icon--message { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.tt-notification-icon--workshop { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.tt-notification-icon--community { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.tt-notification-icon--network { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.tt-notification-icon--subscription { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.tt-notification-icon--coaching { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.tt-notification-icon--moderation { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.tt-notification-icon--review { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tt-notification-icon--admin { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.tt-notification-icon--system { background: rgba(234, 179, 8, 0.15); color: #eab308; }

.tt-notification-content {
    flex: 1;
    min-width: 0;
}

.tt-notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tt-text-primary);
    margin: 0 0 0.25rem 0;
}

.tt-notification-message {
    font-size: 0.875rem;
    color: var(--tt-text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.tt-notification-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tt-notification-time {
    font-size: 0.75rem;
    color: var(--tt-text-muted);
}

.tt-notification-action {
    font-size: 0.75rem;
    color: var(--tt-accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.tt-notification-action:hover {
    text-decoration: underline;
}

.tt-notification-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--tt-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 4px;
}

.tt-notification-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tt-text-primary);
}

.tt-notification-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tt-notification-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--tt-error);
    border-radius: 50%;
    flex-shrink: 0;
}

.tt-notifications-empty-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3rem 2rem;
}

.tt-notifications-empty-card .tt-empty-state {
    text-align: center;
}

.tt-notifications-empty-card .tt-empty-state svg {
    color: var(--tt-text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.tt-notifications-empty-card .tt-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tt-text-primary);
    margin: 0 0 0.5rem 0;
}

.tt-notifications-empty-card .tt-empty-state p {
    font-size: 0.9rem;
    color: var(--tt-text-muted);
    margin: 0;
}

/* =====================================================
   13. AUTH PAGES
   ===================================================== */

.auth-success-icon {
    color: #22c55e;
    margin-bottom: 1.5rem;
    animation: auth-scaleIn 0.5s ease-out;
}

.auth-error-icon {
    color: #ef4444;
    margin-bottom: 1.5rem;
}

@keyframes auth-scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.auth-link-secondary {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 1rem;
}

.auth-link-secondary:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-verify-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.auth-verify-icon {
    color: #6366f1;
    margin-bottom: 1.5rem;
    animation: auth-pulse 2s ease-in-out infinite;
}

@keyframes auth-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.auth-email-highlight {
    color: #6366f1;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.auth-verify-content {
    margin: 2rem 0;
}

.auth-verify-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-verify-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-verify-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.85rem;
}

.auth-btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Auth callback spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =====================================================
   14. CONTACT PAGE
   ===================================================== */

.tt-contact-info-card {
    padding: 1.5rem;
    border-radius: var(--tt-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--tt-transition);
}

.tt-contact-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--tt-accent-primary);
    box-shadow: var(--tt-shadow-md);
}

.tt-contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tt-accent-primary), var(--tt-accent-purple));
    border-radius: 12px;
    color: white;
}

.tt-contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.tt-contact-value {
    font-weight: 600;
    color: var(--tt-text-primary);
    text-decoration: none;
}

a.tt-contact-value:hover {
    color: var(--mf-accent-warm);
}

.tt-form-label {
    display: block;
    font-weight: 500;
    color: var(--tt-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tt-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--tt-radius-md);
    font-size: 1rem;
    transition: all var(--tt-transition);
    background: rgba(255, 255, 255, 0.05);
    color: var(--tt-text-primary);
}

.tt-form-input:focus {
    outline: none;
    border-color: var(--tt-accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.tt-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.tt-form-input {
    resize: vertical;
    min-height: 120px;
}

.tt-link {
    color: var(--mf-accent-warm);
    text-decoration: none;
    font-weight: 500;
}

.tt-link:hover {
    text-decoration: underline;
}

.tt-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    color: white;
}

/* =====================================================
   15. PROGRAMME PAGE
   ===================================================== */

.tt-stat-card.tt-stat-accent {
    background: linear-gradient(135deg, var(--mf-accent-warm), #ea580c);
    border: none;
}

.tt-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--tt-radius-xl);
    overflow: hidden;
    box-shadow: var(--tt-shadow-lg);
}

.tt-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tt-bloc-programme {
    background: var(--tt-section-dark-base);
    border-radius: var(--tt-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--tt-shadow-md);
}

.tt-bloc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tt-bloc-titre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.tt-bloc-range {
    font-size: 0.9rem;
    color: var(--mf-text-body);
    margin: 0;
}

.tt-bloc-objectif {
    color: var(--mf-text-body);
    margin-bottom: 1.5rem;
}

.tt-workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.tt-workshop-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--tt-section-dark-texture);
    border-radius: var(--tt-radius-md);
    transition: all var(--tt-transition);
}

.tt-workshop-card:hover {
    transform: translateX(5px);
    box-shadow: var(--tt-shadow-sm);
}

.tt-workshop-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--tt-accent-primary);
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.tt-workshop-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.25rem;
}

.tt-workshop-card p {
    font-size: 0.85rem;
    color: var(--mf-text-body);
    margin: 0;
}

.tt-sensibilisation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #FEF3C7;
    border-radius: var(--tt-radius-md);
    color: #92400E;
    font-size: 0.9rem;
}

.tt-sensibilisation svg {
    flex-shrink: 0;
    color: #F59E0B;
}

.tt-livrable-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tt-livrable-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--tt-section-dark-texture);
    border-radius: var(--tt-radius-md);
    font-weight: 500;
    color: var(--text-white);
}

.tt-livrable-item svg {
    flex-shrink: 0;
}

.tt-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tt-accent-primary), var(--tt-accent-purple));
    border-radius: 14px;
    color: white;
}

.tt-title-sm {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =====================================================
   16. REVIEWS (PUBLIC PAGE - Avis.cshtml)
   ===================================================== */

/* Hero Section */
.tt-reviews-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.tt-reviews-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tt-reviews-hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.tt-reviews-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tt-reviews-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tt-reviews-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
}

/* Stats Card */
.tt-reviews-stats-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    min-width: 300px;
}

.tt-reviews-stats-main {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.tt-reviews-big-rating {
    margin-bottom: 0.75rem;
}

.tt-reviews-rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.tt-reviews-rating-max {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.tt-reviews-stars-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.tt-reviews-star-wrapper {
    width: 24px;
    height: 24px;
}

.tt-reviews-star {
    width: 100%;
    height: 100%;
}

.tt-reviews-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.tt-reviews-count strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Breakdown bars */
.tt-reviews-breakdown-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tt-reviews-breakdown-row:last-child {
    margin-bottom: 0;
}

.tt-reviews-breakdown-label {
    width: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.tt-reviews-breakdown-star {
    flex-shrink: 0;
}

.tt-reviews-breakdown-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.tt-reviews-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.tt-reviews-breakdown-count {
    width: 24px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

/* Reviews Section */
.tt-reviews-section {
    padding: 4rem 0 5rem;
}

.tt-reviews-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Review Item */
.tt-review-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tt-review-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.tt-review-item-featured {
    grid-row: span 2;
}

.tt-review-quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #6366f1;
}

.tt-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1rem;
}

.tt-review-star {
    fill: #374151;
    transition: fill 0.2s;
}

.tt-review-star-filled {
    fill: #fbbf24;
}

.tt-review-public-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tt-review-public-content {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    flex-grow: 1;
}

.tt-review-see-more {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.tt-review-see-more:hover {
    color: #818cf8;
    text-decoration: underline;
}

.tt-review-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.tt-review-public-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.tt-review-author-info {
    flex: 1;
    min-width: 0;
}

.tt-review-public-author {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-review-public-date {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: capitalize;
}

.tt-review-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.35rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Load More */
.tt-load-more-container {
    text-align: center;
    margin-top: 3rem;
}

#loadMoreBtn {
    min-width: 200px;
}

.tt-load-more-spinner {
    display: inline-flex;
    align-items: center;
}

.tt-spinner {
    animation: tt-spin 1s linear infinite;
}

@keyframes tt-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.tt-reviews-empty {
    text-align: center;
    padding: 5rem 2rem;
}

.tt-reviews-empty-icon {
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.tt-reviews-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.tt-reviews-empty-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.tt-reviews-cta {
    padding: 0 0 5rem;
}

.tt-reviews-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2.5rem 3rem;
}

.tt-reviews-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tt-reviews-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.tt-reviews-cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Reviews Modal */
.tt-review-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tt-review-modal.active {
    opacity: 1;
    visibility: visible;
}

.tt-review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.tt-review-modal-content {
    position: relative;
    background: var(--tt-card-bg, #1a1a2e);
    border: 1px solid var(--tt-border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tt-review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--tt-text, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tt-review-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tt-review-modal-close svg {
    width: 20px;
    height: 20px;
}

.tt-review-modal-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tt-review-modal-stars svg {
    width: 24px;
    height: 24px;
    fill: #fbbf24;
}

.tt-review-modal-title {
    color: var(--tt-text, #fff);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tt-review-modal-text {
    color: var(--tt-text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
}

.tt-review-modal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tt-border, rgba(255, 255, 255, 0.1));
}

.tt-review-modal-footer .tt-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.tt-review-modal-footer .tt-review-author {
    display: block;
    color: var(--tt-text, #fff);
    font-weight: 600;
}

.tt-review-modal-footer .tt-review-date {
    display: block;
    color: var(--tt-text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.85rem;
}

/* Reviews Responsive */
@media (max-width: 992px) {
    .tt-reviews-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tt-reviews-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .tt-reviews-stats-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .tt-reviews-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .tt-reviews-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .tt-reviews-cta-actions .tt-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tt-reviews-hero {
        padding: 3rem 0 2.5rem;
    }
    
    .tt-reviews-masonry {
        grid-template-columns: 1fr;
    }
    
    .tt-review-item-featured {
        grid-row: auto;
    }
    
    .tt-reviews-section {
        padding: 2.5rem 0 3rem;
    }
    
    .tt-reviews-cta {
        padding: 0 0 3rem;
    }
}

/* =====================================================
   17. SIGNALR PAGE
   ===================================================== */

.signalr-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--tt-radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--tt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tt-text-primary);
    line-height: 1;
}

.stat-card-value.accent {
    color: var(--tt-accent-primary);
}

.stat-card-value.success {
    color: var(--tt-success);
}

.stat-card-sub {
    font-size: 0.75rem;
    color: var(--tt-text-secondary);
}

/* Sections */
.section-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--tt-radius-lg);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tt-text-primary);
    margin: 0;
}

.section-title svg {
    color: var(--tt-accent-primary);
}

.section-body {
    padding: 1.5rem;
}

/* Connections Table */
.connections-table {
    width: 100%;
    border-collapse: collapse;
}

.connections-table th,
.connections-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.connections-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
}

.connections-table td {
    font-size: 0.875rem;
    color: var(--tt-text-secondary);
}

.connections-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.connection-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--tt-text-muted);
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tt-success);
    animation: connection-pulse 2s infinite;
}

@keyframes connection-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Broadcast Form */
.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tt-text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tt-radius-md);
    color: var(--tt-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--tt-accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select option styling for dark theme */
.form-select {
    background-color: var(--tt-card-bg, #1a1a2e) !important;
    color: var(--tt-text, #fff) !important;
}

.form-select option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

.form-select option:hover,
.form-select option:checked {
    background-color: #2a2a4e !important;
    color: #ffffff !important;
}

/* Target Selection */
.target-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.target-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tt-radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.target-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.target-option input[type="radio"]:checked + .target-label {
    color: var(--tt-accent-primary);
}

.target-option:has(input:checked) {
    border-color: var(--tt-accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.target-label {
    font-size: 0.875rem;
    color: var(--tt-text-secondary);
}

/* User Selection */
.user-select-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tt-radius-md);
    padding: 0.5rem;
}

.user-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--tt-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.user-select-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-select-item.connected {
    background: rgba(16, 185, 129, 0.1);
}

.user-select-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tt-accent-primary);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    color: var(--tt-text-primary);
}

.user-email {
    font-size: 0.75rem;
    color: var(--tt-text-muted);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--tt-success);
}

.user-status svg {
    width: 12px;
    height: 12px;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--tt-accent-primary);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--tt-text-secondary);
}

/* SignalR Buttons */
.btn-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--tt-accent-primary), var(--tt-accent-purple));
    border: none;
    border-radius: var(--tt-radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tt-radius-md);
    color: var(--tt-text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* SignalR Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--tt-radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--tt-text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* SignalR Responsive */
@media (max-width: 992px) {
    .signalr-page {
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .section-header .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-body {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .target-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .target-option {
        width: 100%;
    }
    
    .btn-row {
        flex-direction: column;
    }
    
    .btn-row button {
        width: 100%;
        justify-content: center;
    }
    
    /* Table responsive - stack on mobile */
    .connections-table {
        display: block;
    }
    
    .connections-table thead {
        display: none;
    }
    
    .connections-table tbody,
    .connections-table tr,
    .connections-table td {
        display: block;
    }
    
    .connections-table tr {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--tt-radius-md);
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    
    .connections-table td {
        padding: 0.25rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .connections-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--tt-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .connections-table tr:hover td {
        background: transparent;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card-label {
        font-size: 0.7rem;
    }
    
    .stat-card-value {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .target-option {
        padding: 0.6rem 0.75rem;
    }
    
    .target-label {
        font-size: 0.8rem;
    }
    
    .user-select-container {
        max-height: 200px;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* =====================================================
   18. DEVTOOLS (Development Only)
   ===================================================== */

.tt-devtools {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
}

.tt-devtools-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
}

.tt-devtools-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.tt-devtools--collapsed .tt-devtools-panel {
    display: none;
}

.tt-devtools--expanded .tt-devtools-toggle {
    display: none;
}

.tt-devtools-panel {
    background: #1a1a2e;
    border: 1px solid #2d2d44;
    border-radius: 12px;
    width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tt-devtools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tt-devtools-header h4 {
    margin: 0;
    color: white;
    font-size: 14px;
}

.tt-devtools-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.tt-devtools-content {
    padding: 12px;
}

.tt-devtools-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2d2d44;
}

.tt-devtools-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.tt-devtools-section h5 {
    margin: 0 0 8px 0;
    color: #a5a5c0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tt-devtools-hint {
    margin: 0 0 8px 0;
    color: #6b6b8a;
    font-size: 11px;
}

.tt-devtools-info {
    background: #12121f;
    border-radius: 6px;
    padding: 8px;
}

.tt-devtools-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.tt-devtools-label {
    color: #6b6b8a;
}

.tt-devtools-value {
    color: #e0e0e0;
    font-weight: 500;
}

.tt-devtools-value--success { color: #22c55e; }
.tt-devtools-value--error { color: #ef4444; }
.tt-devtools-value--warning { color: #f59e0b; }
.tt-devtools-value--mono { font-family: monospace; font-size: 11px; }

.tt-devtools-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.tt-devtools-badge--participant { background: #3b82f6; color: white; }
.tt-devtools-badge--animator { background: #22c55e; color: white; }
.tt-devtools-badge--moderator { background: #f59e0b; color: white; }
.tt-devtools-badge--admin,
.tt-devtools-badge--administrator { background: #ef4444; color: white; }
.tt-devtools-badge--superadmin,
.tt-devtools-badge--superadministrator { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }

/* Profile buttons */
.tt-devtools-profiles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tt-devtools-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #2d2d44;
    border: 1px solid #3d3d5c;
    color: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    text-align: left;
}

.tt-devtools-profile-btn:hover:not(:disabled) {
    background: #3d3d5c;
    border-color: #6366f1;
    transform: translateX(4px);
}

.tt-devtools-profile-btn--active {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: #6366f1 !important;
    cursor: default;
}

.tt-devtools-profile-btn:disabled {
    opacity: 0.8;
}

.tt-devtools-profile-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.tt-devtools-profile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tt-devtools-profile-name {
    font-weight: 600;
    color: #fff;
}

.tt-devtools-profile-role {
    font-size: 11px;
    color: #8b8ba3;
}

.tt-devtools-profile-current {
    color: #22c55e;
    font-weight: bold;
}

.tt-devtools-superadmin {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #3d3d5c;
}

.tt-devtools-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tt-devtools-btn {
    padding: 6px 10px;
    background: #2d2d44;
    border: 1px solid #3d3d5c;
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.tt-devtools-btn:hover {
    background: #3d3d5c;
    border-color: #6366f1;
}

.tt-devtools-btn--danger {
    background: #4a1d1d;
    border-color: #6b2d2d;
}

.tt-devtools-btn--danger:hover {
    background: #6b2d2d;
}

.tt-devtools-btn--link {
    background: transparent;
    border: none;
    color: #818cf8;
    text-decoration: none;
    padding: 4px 0;
}

.tt-devtools-btn--link:hover {
    text-decoration: underline;
    background: transparent;
}

.tt-devtools-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-devtools-links a {
    color: #818cf8;
    text-decoration: none;
    font-size: 12px;
}

.tt-devtools-links a:hover {
    text-decoration: underline;
}

.tt-devtools-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: #12121f;
    border-radius: 0 0 12px 12px;
    color: #6b6b8a;
    font-size: 10px;
}

/* Loading overlay */
.tt-devtools-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.tt-devtools-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
}

.tt-devtools-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #3d3d5c;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: tt-spin 0.8s linear infinite;
}

/* Modal */
.tt-devtools-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.tt-devtools-modal-content {
    background: #1a1a2e;
    border-radius: 12px;
    width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.tt-devtools-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d44;
}

.tt-devtools-modal-header h4 {
    margin: 0;
    color: white;
}

.tt-devtools-modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.tt-devtools-modal-body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.tt-devtools-modal-body pre {
    margin: 0;
    color: #e0e0e0;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* =====================================================
   19. RESPONSIVE GENERAL
   ===================================================== */

@media (max-width: 768px) {
    .mf-review-header,
    .tt-review-header {
        flex-wrap: wrap;
    }
    
    .mf-review-rating,
    .tt-review-rating {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .tt-welcome-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tt-welcome-icon {
        width: 64px;
        height: 64px;
    }
    
    .tt-welcome-icon svg {
        width: 32px;
        height: 32px;
    }
}
