/* ============================================
   RezoChrist - Styles CSS Personnalisés
   Réseau Social 100% Chrétien Unique
   ============================================ */

/* Variables CSS - Thème Spirituel */
:root {
    /* Couleurs principales inspirées spirituellement */
    --primary-gold: #D4AF37;
    --primary-gold-light: #F4E5B2;
    --primary-purple: #6B4C9A;
    --primary-purple-dark: #4A2C6A;
    --royal-blue: #1E3A8A;
    --celestial-blue: #60A5FA;
    --divine-white: #FAFBFC;
    --sacred-cream: #FDF6E3;

    /* Couleurs secondaires */
    --ruby-red: #E11D48;
    --diamond-cyan: #06B6D4;
    --emerald: #10B981;
    --amber: #F59E0B;

    /* Couleurs de texte */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --text-light: #F9FAFB;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);
    --gradient-divine: linear-gradient(135deg, #6B4C9A 0%, #1E3A8A 100%);
    --gradient-heaven: linear-gradient(180deg, #1E3A8A 0%, #60A5FA 50%, #FDF6E3 100%);
    --gradient-sunset: linear-gradient(135deg, #F59E0B 0%, #E11D48 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Ombres */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.2);
    --shadow-glow-gold: 0 0 30px rgba(212, 175, 55, 0.4);
    --shadow-glow-purple: 0 0 30px rgba(107, 76, 154, 0.4);

    /* Rayons de bordure */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Espacement */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* Mode sombre */
[data-theme="dark"] {
    --divine-white: #0F172A;
    --sacred-cream: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
}

/* Reset et Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--divine-white);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Fond Animé Spirituel
   ============================================ */
.divine-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #4A2C6A 100%);
    overflow: hidden;
}

.divine-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107, 76, 154, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    animation: divineFloat 20s ease-in-out infinite;
}

@keyframes divineFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, -2%) rotate(1deg);
    }

    50% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }

    75% {
        transform: translate(-2%, -1%) rotate(0.5deg);
    }
}

/* Étoiles scintillantes */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   Glassmorphisme Cards
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong), var(--shadow-glow-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Boutons Premium
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
}

.btn-divine {
    background: var(--gradient-divine);
    color: var(--text-light);
}

.btn-divine:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-purple);
}

.btn-ruby {
    background: linear-gradient(135deg, var(--ruby-red) 0%, #BE123C 100%);
    color: white;
}

.btn-diamond {
    background: linear-gradient(135deg, var(--diamond-cyan) 0%, #0891B2 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--text-primary);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: var(--space-md) var(--space-xl);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: var(--space-sm) var(--space-xl);
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.navbar-brand .logo {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-gold);
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-gold);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    padding: var(--space-lg);
    overflow-y: auto;
    z-index: 900;
    transition: transform var(--transition-normal);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: var(--space-sm);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.sidebar-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ============================================
   Feed Principal
   ============================================ */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: var(--space-xl);
    min-height: calc(100vh - 70px);
}

.feed-container {
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================
   Post Card
   ============================================ */
.post-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.post-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-medium);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.post-author-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.verified-badge {
    width: 16px;
    height: 16px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: var(--text-primary);
}

.membership-badge {
    font-size: 0.625rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
}

.badge-honneur {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #333;
}

.badge-or {
    background: var(--gradient-gold);
    color: #333;
}

.badge-diamant {
    background: linear-gradient(135deg, #60A5FA, #06B6D4);
    color: white;
}

.post-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-media {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.post-media:hover {
    filter: brightness(0.9);
}

.media-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.download-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 10;
}

.media-container:hover .download-link {
    opacity: 1;
    transform: translateY(0);
}

.download-link:hover {
    background: var(--primary-gold);
    color: var(--text-primary);
}

.post-media-audio {
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
}

.audio-player {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-md);
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-gold);
}

.action-btn.liked {
    color: var(--ruby-red);
}

.action-btn .action-icon {
    font-size: 1.25rem;
}

/* ============================================
   Composer (Créer un post)
   ============================================ */
.post-composer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.composer-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.composer-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--text-light);
    font-size: 1rem;
    resize: vertical;
    transition: all var(--transition-fast);
}

.composer-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.composer-textarea::placeholder {
    color: var(--text-muted);
}

.composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
}

.composer-tools {
    display: flex;
    gap: var(--space-sm);
}

.composer-tool {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.composer-tool:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
}

.char-counter {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.char-counter.warning {
    color: var(--amber);
}

.char-counter.danger {
    color: var(--ruby-red);
}

/* ============================================
   Marketplace
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-gold);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: var(--space-lg);
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.product-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* ============================================
   Entraide Cards
   ============================================ */
.entraide-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.entraide-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.entraide-progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.entraide-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Membership Cards
   ============================================ */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.membership-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.membership-card.simple::before {
    background: linear-gradient(90deg, #6B7280, #9CA3AF);
}

.membership-card.honneur::before {
    background: linear-gradient(90deg, #C0C0C0, #E8E8E8);
}

.membership-card.or::before {
    background: var(--gradient-gold);
}

.membership-card.diamant::before {
    background: linear-gradient(90deg, #60A5FA, #06B6D4);
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.membership-card.or:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-glow-gold);
}

.membership-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.membership-card.simple .membership-icon {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
}

.membership-card.honneur .membership-icon {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #333;
}

.membership-card.or .membership-icon {
    background: var(--gradient-gold);
    color: #333;
    box-shadow: var(--shadow-glow-gold);
}

.membership-card.diamant .membership-icon {
    background: linear-gradient(135deg, #60A5FA, #06B6D4);
}

.membership-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.membership-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.membership-card.or .membership-price {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.membership-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.membership-features li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.membership-features li::before {
    content: '✓';
    color: var(--emerald);
    font-weight: 700;
}

/* ============================================
   Formulaires
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-light);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Modales
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

.modal-close:hover {
    background: rgba(225, 29, 72, 0.2);
    color: var(--ruby-red);
}

/* ============================================
   Notifications Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--emerald);
}

.toast.error {
    border-left: 4px solid var(--ruby-red);
}

.toast.warning {
    border-left: 4px solid var(--amber);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast.success .toast-icon {
    color: var(--emerald);
}

.toast.error .toast-icon {
    color: var(--ruby-red);
}

/* ============================================
   Currency Display (Rubis & Diamants)
   ============================================ */
.currency-display {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.currency-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.currency-ruby .currency-icon {
    background: linear-gradient(135deg, var(--ruby-red), #BE123C);
}

.currency-diamond .currency-icon {
    background: linear-gradient(135deg, var(--diamond-cyan), #0891B2);
}

.currency-amount {
    font-weight: 600;
    color: var(--text-light);
}

/* ============================================
   Profile Header
   ============================================ */
.profile-header {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.profile-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: var(--space-xl);
    margin-top: -60px;
    padding: 0 var(--space-xl);
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--primary-gold);
    object-fit: cover;
    box-shadow: var(--shadow-glow-gold);
}

.profile-details {
    flex: 1;
    padding-bottom: var(--space-md);
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.profile-username {
    color: var(--text-muted);
    font-size: 1rem;
}

.profile-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-menu {
        display: none;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar-large {
        margin-top: -75px;
    }

    .membership-cards {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .main-content {
        padding: var(--space-md);
    }

    .post-composer {
        padding: var(--space-md);
    }
}

/* ============================================
   Utilitaires
   ============================================ */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

.text-muted {
    color: var(--text-muted);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Animation d'apparition */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TikTok/Reels Style Video Feed (Desktop Card View)
   ============================================ */
.video-feed-container {
    position: fixed;
    top: 70px;
    left: 280px;
    /* Right of sidebar */
    right: 0;
    bottom: 0;
    background: #000;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

/* Hide scrollbar but keep functionality */
.video-feed-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

@media (max-width: 991px) {
    .video-feed-container {
        left: 0;
        /* Full width on mobile */
        padding: 0;
    }

    .video-item {
        height: calc(100vh - 70px) !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }
}

.video-item {
    position: relative;
    width: 100%;
    max-width: 380px;
    /* Reduced width */
    height: 680px;
    /* Fixed reduced height for desktop */
    min-height: 60vh;
    scroll-snap-align: center;
    /* Center snap */
    flex-shrink: 0;
    background: #111;
    overflow: hidden;
    border-radius: 20px;
    /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    /* Spacing between cards */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the mobile container */
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1rem 2rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    pointer-events: none;
    z-index: 20;
}

.video-overlay-content {
    pointer-events: auto;
    width: 100%;
}

.video-author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.video-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.video-author-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.follow-btn-small {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.video-actions-sidebar {
    position: absolute;
    right: 0.5rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    z-index: 30;
}

.video-action-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.2s;
}

.video-action-btn:hover {
    transform: scale(1.1);
}

.video-action-btn i {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.video-action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.video-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-music-tag {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gold);
}

.video-music-tag i {
    animation: rotate 3s linear infinite;
}
/* ============================================
   Chat Widget (Mini-Chat)
   ============================================ */
.chat-widget {
    position: fixed;
    top: 70px;
    right: 0;
    width: 320px;
    height: calc(100vh - 70px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.chat-widget.minimized {
    transform: translateX(100%);
}

.chat-header {
    background: var(--gradient-gold);
    color: #1a1040;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-glow-gold);
}

.chat-toggle-btn {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1040;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-list, .message-history {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.conv-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-gold);
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.conv-last {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 0.85rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.chat-btn {
    background: none;
    border: none;
    color: var(--primary-gold);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.back-btn {
    margin-right: 10px;
    color: #1a1040;
    cursor: pointer;
}

.mini-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.mini-msg.sent {
    align-self: flex-end;
    background: var(--gradient-gold);
    color: #1a1040;
    border-bottom-right-radius: 2px;
}

.mini-msg.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-left-radius: 2px;
}

.mini-msg-media {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
}
