/* ===========================================
   DASHBOARD STYLES - STANDALONE
   =========================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Dashboard Body */
.dashboard-body,
body {
    margin: 0;
    padding: 0;
    background: #0a0a0b;
    color: #e4e4e7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.dashboard-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient-1 {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

.bg-gradient-2 {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.02) 0%, transparent 70%);
    animation: float 25s infinite linear reverse;
}

.bg-gradient-3 {
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.02) 0%, transparent 70%);
    animation: float 30s infinite linear;
}

@keyframes float {
    0% { transform: rotate(0deg) translate(-20px) rotate(0deg); }
    100% { transform: rotate(360deg) translate(-20px) rotate(-360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    color: #a1a1aa;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(5px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    box-sizing: border-box;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b5cf6;
    line-height: 1.5;
    white-space: nowrap;
}

.sidebar .logo i {
    font-size: 1.5rem;
}

.sidebar.collapsed .logo span {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    gap: 0.75rem;
}

.menu-item a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #e4e4e7;
}

.menu-item.active a {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    color: #8b5cf6;
    border-right: 3px solid #8b5cf6;
}

.menu-item a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.menu-item a span:not(.badge) {
    flex: 1;
}

.sidebar.collapsed .menu-item a span:not(.badge) {
    display: none;
}

.menu-item .badge {
    background: #8b5cf6;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.sidebar.collapsed .menu-item .badge {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-footer .user-info {
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer .user-details {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e4e7;
}

.user-role {
    font-size: 0.8rem;
    color: #71717a;
}

/* Main Content */
.main-content {
    margin-left: 320px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
}

/* Dashboard Header */
.dashboard-header {
    background: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 60px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0;
    line-height: 1.5;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.header-right .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.header-right .user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-dropdown-toggle.open {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dropdown li {
    margin: 0;
}

.user-dropdown li.separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-dropdown a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #e4e4e7;
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 11, 0.6);
    min-height: calc(100vh - 80px);
}

.content-section {
    display: none;
    background: rgba(10, 10, 11, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 0 2rem 0;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0;
}

.section-header p {
    color: #a1a1aa;
    margin: 0.5rem 0 0 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e4e4e7;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4ade80;
}

.stat-trend i {
    font-size: 0.8rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 3rem;
}

.quick-actions h3 {
    font-size: 1.5rem;
    color: #e4e4e7;
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #a1a1aa;
}

.action-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    transform: translateY(-2px);
}

.action-card i {
    font-size: 2rem;
}

.action-card span {
    font-weight: 600;
    text-align: center;
}

/* Recent Activity */
.recent-activity h3 {
    font-size: 1.5rem;
    color: #e4e4e7;
    margin-bottom: 1.5rem;
}

.activity-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.activity-time {
    color: #71717a;
    font-size: 0.8rem;
}

/* Filters and Search */
.events-filters,
.participants-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group,
.search-group {
    position: relative;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #e4e4e7;
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select option {
    background: #18181b;
    color: #e4e4e7;
}

.search-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #e4e4e7;
    font-size: 0.9rem;
}

.search-group i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #71717a;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #3f3f46;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #a1a1aa;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e4e4e7;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary.disabled {
    background: rgba(255, 255, 255, 0.02);
    color: #6b7280;
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-secondary.disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    transform: none;
}

/* QR Content */
.qr-content {
    display: grid;
    gap: 2rem;
}

.qr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.qr-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.qr-stat-card h4 {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.qr-generator {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.generator-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e4e4e7;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #e4e4e7;
    font-size: 0.9rem;
}

.form-select option {
    background: #18181b;
    color: #e4e4e7;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    color: #e4e4e7;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #71717a;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form input,
.profile-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #e4e4e7;
    font-size: 0.9rem;
}

.profile-form input:read-only {
    background: rgba(255, 255, 255, 0.02);
    color: #71717a;
}

/* Settings */
.settings-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-group h3 {
    margin-bottom: 1.5rem;
    color: #e4e4e7;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: #e4e4e7;
    font-weight: 500;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #e4e4e7;
    min-width: 300px;
    animation: slideInToast 0.3s ease;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar .logo span,
    .sidebar .menu-item a span:not(.badge),
    .sidebar .user-details {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 320px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .dashboard-header {
        padding: 1rem;
        min-height: 60px;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .generator-form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .events-filters,
    .participants-filters {
        flex-direction: column;
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show,
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(145deg, #1f2937, #111827);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content.large {
    max-width: 900px;
}

.modal-content.extra-large {
    max-width: 1100px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    color: #e5e7eb;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #9ca3af;
}

.loading i {
    font-size: 1.2rem;
}

/* Event Details Styles */
.event-detail-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

.event-detail-section h4 {
    margin: 0 0 1rem 0;
    color: #c9a9ff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.event-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.event-detail-item:last-child {
    border-bottom: none;
}

.event-detail-label {
    font-weight: 500;
    color: #9ca3af;
    min-width: 120px;
}

.event-detail-value {
    color: #e5e7eb;
    text-align: right;
    flex: 1;
}

.event-images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.event-image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.event-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image-type {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Event Form Styles */
.event-form {
    display: grid;
    gap: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    margin: 0 0 1rem 0;
    color: #c9a9ff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 2rem;
}

.btn-save {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: linear-gradient(145deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-cancel {
    background: transparent;
    color: #9ca3af;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(156, 163, 175, 0.1);
    color: #e5e7eb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Publication and Status Action Buttons */
.btn-publish {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-publish:hover {
    background: linear-gradient(145deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-publish.disabled {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-publish.disabled:hover {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    transform: none;
}

.btn-activate {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-activate:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.btn-qr {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-qr:hover {
    background: linear-gradient(145deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
}

.btn-end {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-end:hover {
    background: linear-gradient(145deg, #d97706, #b45309);
    transform: translateY(-1px);
}

.btn-cancel {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

.btn-unpublish {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-unpublish:hover {
    background: linear-gradient(145deg, #4b5563, #374151);
    transform: translateY(-1px);
}

.btn-stats {
    background: linear-gradient(145deg, #06b6d4, #0891b2);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-stats:hover {
    background: linear-gradient(145deg, #0891b2, #0e7490);
    transform: translateY(-1px);
}

.status-label {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Publication Info Styles */
.publication-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: grid;
    gap: 0.5rem;
}

.info-item label {
    font-weight: 600;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.url-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.url-display input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-family: monospace;
}

.url-display button {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.qr-display {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.qr-display img {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qr-code-display {
    text-align: center;
    padding: 2rem;
}

.qr-code-display img {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.qr-stats {
    text-align: left;
}

.qr-stats h5 {
    margin: 0 0 0.5rem 0;
    color: #c9a9ff;
}

.qr-stats p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Event Actions Grid */
.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
}

.event-actions button {
    flex-shrink: 0;
}

/* Automation Panel Styles */
.automation-panel {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

.automation-status h4 {
    margin: 0 0 1rem 0;
    color: #c9a9ff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.automation-info {
    display: grid;
    gap: 1.5rem;
}

.automation-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.automation-stat {
    background: rgba(17, 24, 39, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
}

.automation-stat h5 {
    margin: 0 0 0.5rem 0;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.automation-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e7eb;
}

.automation-stat.running .stat-value {
    color: #10b981;
}

.automation-stat.stopped .stat-value {
    color: #ef4444;
}

.automation-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.automation-controls button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-automation-start {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
}

.btn-automation-stop {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
}

.btn-automation-check {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
}

.btn-automation-config {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    color: white;
}

.automation-preview {
    background: rgba(17, 24, 39, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.automation-preview h5 {
    margin: 0 0 0.75rem 0;
    color: #c9a9ff;
    font-size: 0.95rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-event {
    color: #e5e7eb;
}

.preview-action {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.preview-action.activate {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.preview-action.end {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.automation-config-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.automation-config-form .form-group {
    margin: 0;
}

.automation-config-form label {
    display: block;
    margin-bottom: 0.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.automation-config-form input,
.automation-config-form select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    color: #e5e7eb;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Configuration Form Styles */
.config-form {
    display: grid;
    gap: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.config-section {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.config-section h4 {
    margin: 0 0 0.5rem 0;
    color: #c9a9ff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-description {
    margin: 0 0 1.5rem 0;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.4;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.config-group {
    display: grid;
    gap: 0.5rem;
}

.config-group label {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
}

.input-with-unit input {
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 600;
    width: 80px;
    text-align: center;
}

.input-with-unit input:focus {
    outline: none;
}

.input-with-unit .unit {
    color: #9ca3af;
    font-size: 0.875rem;
    white-space: nowrap;
}

.config-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.config-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.config-group .help-text {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 0.25rem;
}

/* Toggle Switch Styles */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.toggle-label:hover {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(139, 92, 246, 0.3);
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(107, 114, 128, 0.5);
    border-radius: 12px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: linear-gradient(145deg, #10b981, #059669);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Config Info */
.config-info {
    display: grid;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.info-value {
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

/* Config Actions */
.config-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-test {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-test:hover {
    background: linear-gradient(145deg, #d97706, #b45309);
    transform: translateY(-1px);
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .event-detail-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        justify-content: center;
    }
    
    .event-actions button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .url-display {
        flex-direction: column;
    }
    
    .url-display input {
        width: 100%;
    }
    
    .config-row {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .config-actions button {
        width: 100%;
    }
    
    .input-with-unit {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .input-with-unit input {
        width: 100px;
    }
}

/* ===============================================
   PRICING PLANS SECTION - Dashboard Admin
   =============================================== */

/* Section visibilité admin uniquement */
.admin-only {
    display: none;
}

body.role-admin .admin-only {
    display: block;
}

body.role-admin ul.admin-only {
    display: block;
}

/* Section visibilité NON-admin uniquement */
.non-admin-only {
    display: none;
}

body.role-organizer .non-admin-only,
body.role-staff .non-admin-only,
body.role-user .non-admin-only {
    display: block;
}

body.role-organizer li.non-admin-only,
body.role-staff li.non-admin-only,
body.role-user li.non-admin-only {
    display: block;
}

/* Stats Grid pour les formules */
.pricing-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-stat-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.pricing-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.pricing-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pricing-stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pricing-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.pricing-stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Liste des formules */
.pricing-plans-list {
    display: grid;
    gap: 1rem;
}

.pricing-plan-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.pricing-plan-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.plan-icon-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.plan-info {
    flex: 1;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.plan-badges {
    display: flex;
    gap: 0.5rem;
}

.plan-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.plan-badge.popular {
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    color: white;
}

.plan-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.plan-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.plan-details {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.plan-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-detail i {
    color: #8b5cf6;
}

.plan-price-big {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-right: 0.5rem;
}

.plan-price-period {
    font-size: 0.875rem;
    color: #9ca3af;
}

.plan-actions {
    display: flex;
    gap: 0.75rem;
}

.plan-actions button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit-plan {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-edit-plan:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: #06b6d4;
}

.btn-delete-plan {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-delete-plan:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* Formulaire de création/modification */
.pricing-plan-form {
    display: grid;
    gap: 1.5rem;
}

/* Grid pour les 3 champs de prix */
.pricing-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Input avec bouton de synchronisation */
.input-with-sync {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-with-sync input {
    flex: 1;
}

.btn-sync {
    min-width: 100px;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    color: #06b6d4;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

.btn-sync:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: #06b6d4;
    transform: rotate(180deg);
}

.btn-sync:active {
    transform: rotate(180deg) scale(0.95);
}

.btn-sync i {
    font-size: 1rem;
}

.form-section-title {
    color: #c9a9ff;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.form-group-checkbox:hover {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(139, 92, 246, 0.3);
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
}

.form-group-checkbox label {
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group-checkbox span {
    color: #e5e7eb;
    font-weight: 500;
}

/* Loading placeholder */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-plan-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .pricing-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .plan-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .plan-actions button {
        flex: 1;
    }
}

/* ===============================================
   ACTIVITIES SECTION - Gestion des activités
   =============================================== */

.event-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.event-section h3 {
    color: #c9a9ff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.activities-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
}

.activity-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-header strong {
    color: #fff;
    font-size: 1rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #9ca3af;
}

.activity-description {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.activity-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.activity-footer span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-footer i {
    color: #8b5cf6;
}

.text-muted {
    color: #6b7280;
    font-style: italic;
}

/* ===============================================
   CERTIFICATES SECTION - Attestations PDF
   =============================================== */

.info-banner {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-banner i {
    color: #06b6d4;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-banner strong {
    color: #e5e7eb;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.warning-banner i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    display: block;
}

.warning-banner p {
    color: #e5e7eb;
    margin: 0.5rem 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
}

.certificates-container {
    display: grid;
    gap: 2rem;
}

.certificates-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.certificates-list h3 {
    color: #c9a9ff;
    margin-bottom: 1rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.certificate-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
}

.certificate-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.certificate-header i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.certificate-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: #8b5cf6;
    font-weight: 600;
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.certificate-info strong {
    color: #fff;
    font-size: 1rem;
}

.certificate-info .activity-name {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.certificate-info small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.certificate-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
}

.btn-icon.danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* ===============================================
   PRICING INVITATION SECTION - Non-admin Users
   =============================================== */
.pricing-invitation {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.pricing-invitation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-invitation-header i {
    font-size: 2rem;
    color: #c9a9ff;
}

.pricing-invitation-header h3 {
    color: #c9a9ff;
    font-size: 1.5rem;
    margin: 0;
}

.pricing-invitation p {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pricing-cards-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-card-mini {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pricing-card-mini:hover {
    border-color: #c9a9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
}

.pricing-card-mini.recommended {
    border-color: #c9a9ff;
    background: rgba(139, 92, 246, 0.1);
}

.pricing-card-mini-header {
    margin-bottom: 1rem;
}

.pricing-card-mini h4 {
    color: #c9a9ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pricing-card-mini .price {
    color: #e4e4e7;
    font-size: 1.5rem;
    font-weight: bold;
}

.pricing-card-mini .price span {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.pricing-card-mini-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card-mini-features li {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card-mini-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a9ff;
}

.pricing-invitation-actions {
    text-align: center;
}

/* ===============================================
   ORDERS SECTION - User Orders
   =============================================== */
.orders-content {
    padding: 1.5rem;
}

.orders-filters {
    margin-bottom: 2rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.order-info h4 {
    color: #e4e4e7;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.order-event {
    color: #c9a9ff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.order-date {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-status.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-status.completed {
    background: rgba(168, 162, 158, 0.2);
    color: #a8a29e;
    border: 1px solid rgba(168, 162, 158, 0.3);
}

.order-status.cart,
.order-status.pending_payment {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.order-status.used {
    background: rgba(168, 162, 158, 0.2);
    color: #a8a29e;
    border: 1px solid rgba(168, 162, 158, 0.3);
}

.order-status.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(63, 63, 70, 0.5);
}

.order-detail-item {
    display: flex;
    flex-direction: column;
}

.order-detail-label {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.order-detail-value {
    color: #e4e4e7;
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.order-actions button {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.order-actions .btn-view {
    background: rgba(139, 92, 246, 0.2);
    color: #c9a9ff;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.order-actions .btn-view:hover {
    background: rgba(139, 92, 246, 0.3);
}

.order-actions .btn-renew {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.order-actions .btn-renew:hover {
    opacity: 0.9;
}

.orders-empty {
    text-align: center;
    padding: 3rem;
    color: #a1a1aa;
}

.orders-empty i {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.3);
    margin-bottom: 1rem;
}

.orders-empty h3 {
    color: #e4e4e7;
    margin-bottom: 0.5rem;
}

/* ===============================================
   CART SECTION - Panier
   =============================================== */
.cart-section {
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.cart-header h3 {
    color: #c9a9ff;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-total {
    color: #e4e4e7;
    font-size: 1.1rem;
}

.cart-total strong {
    color: #c9a9ff;
    font-size: 1.3rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.cart-actions .btn-large {
    flex: 2;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-actions .btn-secondary {
    flex: 1;
}

/* ===============================================
   HISTORY SECTION - Historique
   =============================================== */
.history-section {
    margin-top: 2rem;
}

.history-section h3 {
    color: #a1a1aa;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions button {
        width: 100%;
    }
}

/* ===============================================
   DATE RANGE PICKER - Modern Design
   =============================================== */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.date-range-picker span {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
}

.date-input {
    background: transparent;
    border: none;
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.5rem;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.7) sepia(1) saturate(2) hue-rotate(220deg);
    transition: all 0.2s;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.8) sepia(1) saturate(2.5) hue-rotate(220deg);
    transform: scale(1.1);
}

.date-input:focus {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 6px;
}

/* ===============================================
   SELECT - Modern Design (Settings, Filters)
   =============================================== */
select, 
.filter-select,
#languageSelect,
#timezoneSelect,
#orderStatusFilter {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    min-width: 200px;
}

select:hover,
.filter-select:hover,
#languageSelect:hover,
#timezoneSelect:hover,
#orderStatusFilter:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background-color: rgba(24, 24, 27, 0.95);
}

select:focus,
.filter-select:focus,
#languageSelect:focus,
#timezoneSelect:focus,
#orderStatusFilter:focus {
    border-color: #c9a9ff;
    background-color: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Options du select */
select option {
    background: #18181b;
    color: #e4e4e7;
    padding: 0.5rem;
}

select option:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* Select dans les setting-item */
.setting-item select {
    width: 100%;
    max-width: 300px;
}

.setting-item label {
    display: block;
    color: #e4e4e7;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-actions {
        flex-direction: column;
    }
    
    .certificates-actions button {
        width: 100%;
    }
}

/* ==========================================
   MODAL D'ACHAT DE FORMULES
   ========================================== */

/* Cards de sélection de formule */
.purchase-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.purchase-plan-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.purchase-plan-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.purchase-plan-card.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

/* Options de type d'achat */
.purchase-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.purchase-type-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    display: block;
}

.purchase-type-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.purchase-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style de la carte quand le radio est sélectionné */
.purchase-type-card input[type="radio"]:checked ~ .card-content,
.purchase-type-card:has(input[type="radio"]:checked) {
    border-color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.15) !important;
}

.purchase-type-card input[type="radio"]:checked ~ .card-content::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: #8b5cf6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.purchase-type-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.purchase-type-card i {
    font-size: 2rem;
    color: #8b5cf6;
}

.purchase-type-card .type-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.purchase-type-card .type-desc {
    color: #a1a1aa;
    font-size: 0.875rem;
}

.purchase-type-card .badge-discount {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: #22c55e;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Récapitulatif d'achat */
.form-section h4 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.form-section .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
}

.form-section .form-control:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Loading et states */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #a1a1aa;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-state {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #a1a1aa;
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .purchase-type-options {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   MODAL STYLES - CHANGEMENT MOT DE PASSE
   =========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-body .form-group label i {
    margin-right: 0.5rem;
    color: #8b5cf6;
}

.modal-body .password-input {
    position: relative;
}

.modal-body .password-input input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

.modal-body .password-input input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.modal-body .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.modal-body .password-toggle:hover {
    color: white;
}

/* Password requirements styling */
.password-requirements {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #8b5cf6;
}

.password-requirements h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li:before {
    content: "✗";
    color: #ff6b6b;
    font-weight: bold;
    width: 1rem;
}

.password-requirements li.valid:before {
    content: "✓";
    color: #51cf66;
}

.password-requirements li.valid {
    color: rgba(255, 255, 255, 0.9);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-actions .btn-secondary,
.modal-actions .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.modal-actions .btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-container {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-secondary,
    .modal-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
