/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d9ff;
    --primary-dark: #00b8d4;
    --secondary-color: #4a5568;
    --accent-color: #00ffff;
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --bg-color: #0a0a0f;
    --bg-secondary: #1a1a22;
    --white: #ffffff;
    --card-bg: #101015;
    --gray-light: #cbd5e0;
    --gray-dark: #101015;
    --border-color: #2d3748;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 20% 20%, rgba(0, 217, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(0, 217, 255, 0.05) 0px, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gray-dark);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo-phase {
    color: var(--primary-color);
}

.logo-tone {
    color: var(--gray-light);
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

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

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--gray-dark);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--gray-dark);
}

.btn-danger {
    background: #dc2626;
    color: var(--white);
    font-weight: 600;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: var(--gray-dark);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* About PhaseTone Section */
.about-phasetone-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-phasetone-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-phasetone-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.2;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.business-info {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.business-info p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.business-info strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Sections */
.plugins-section,
.bundles-section,
.contact-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Plugin Grid */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 4rem 0;
}

.coming-soon-message {
    text-align: center;
    padding: 2rem;
}

.coming-soon-message p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.7;
}

/* Plugin Card */
.plugin-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.plugin-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

/* Carousel container pour les bundles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* États du carousel */
.carousel-slide.slide-active {
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide.slide-next {
    transform: translateX(100%);
    z-index: 1;
}

.carousel-slide.slide-prev {
    transform: translateX(-100%);
    z-index: 1;
}

.carousel-slide.slide-exiting {
    transform: translateX(-100%);
    z-index: 1;
}

.plugin-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
}

.plugin-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plugin-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.plugin-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex: 1;
    min-height: 3rem;
}

.plugin-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 4rem;
    align-content: flex-start;
}

.feature-tag {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.plugin-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Login View */
.login-view {
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--bg-secondary);
    color: var(--text-color);
}

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

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.success-message {
    background: #efe;
    color: #2a5;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.login-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Admin View */
.admin-view {
    padding: 2rem 0;
}

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

.admin-header h2 {
    font-size: 2rem;
    color: var(--text-color);
}

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

/* Admin Form Modal */
.admin-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.admin-form-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.admin-form-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-input[type="textarea"],
textarea.form-input {
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Admin Table */
.admin-plugins-list {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--bg-secondary);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.admin-plugin-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.category-badge {
    background: var(--primary-color);
    color: var(--gray-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

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

/* Footer */
.footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
}

.social-link:hover {
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .plugins-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-btn .flag-img {
    width: 20px;
    height: auto;
    display: block;
}

.language-btn .lang-name {
    font-size: 0.9rem;
}

.language-btn .arrow {
    font-size: 0.7rem;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.language-option:hover {
    background: var(--bg-secondary);
}

.language-option.active {
    background: var(--primary-color);
    color: var(--gray-dark);
}

.language-option .flag-img {
    width: 20px;
    height: auto;
    display: block;
}

/* Detail View */
.detail-view {
    padding: 2rem 0;
    min-height: 70vh;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.btn-back:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.detail-image {
    position: relative;
}

.detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Bundle images stack */
.bundle-images-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.bundle-image-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.bundle-image-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: none;
}

.economy-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--gray-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    width: fit-content;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.detail-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.detail-features h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.detail-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-features li {
    font-size: 1rem;
    color: var(--text-color);
}

.bundle-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.bundle-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.included-plugin {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.included-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.included-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.included-details strong {
    color: var(--text-color);
}

.included-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

.savings-info {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.crossed-price {
    text-decoration: line-through;
    color: var(--text-light);
}

.savings-line {
    font-weight: 600;
    color: #10b981;
    font-size: 1.1rem;
}

.savings-amount {
    color: #10b981;
}

.detail-purchase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.detail-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.savings-badge {
    background: #10b981;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Image Drop Zone */
.image-drop-zone {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-drop-zone:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.image-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.image-drop-zone.has-image {
    border-style: solid;
    padding: 0;
}

.image-drop-zone.uploading {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
    cursor: wait;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-progress .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: var(--primary-color);
}

.upload-progress p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.drop-icon {
    font-size: 3rem;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    max-height: 300px;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.bundle-image-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bundle-image-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Plugins Selector for Bundles */
.plugins-selector {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.plugin-checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.plugin-checkbox:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.plugin-checkbox.selected {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.plugin-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.plugin-checkbox-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.plugin-checkbox-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.plugin-checkbox-info strong {
    color: var(--text-color);
    font-size: 1rem;
}

.plugin-checkbox-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Plugin Card Cursor */
.plugin-card {
    cursor: pointer;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 10px;
    height: 10px;
}

/* Card Economy Badge */
.card-economy-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #10b981;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Category Manager */
.category-manager {
    max-width: 600px;
}

.category-add-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-add-section .form-input {
    flex: 1;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: 1rem;
}

.category-item .btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Translation Indicator */
.translation-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 217, 255, 0.95);
    color: var(--gray-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

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

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(45, 55, 72, 0.3);
    border-top-color: var(--gray-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* User View */
.user-view {
    padding: 2rem 0;
    min-height: 70vh;
}

.user-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.user-details h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.user-details p {
    color: var(--text-light);
    font-size: 1rem;
}

.user-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.user-content {
    min-height: 400px;
}

.tab-content {
    animation: fadeIn 0.3s;
}

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

.account-section {
    max-width: 600px;
}

.account-section h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.info-value {
    color: var(--text-color);
}

.account-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .language-selector {
        width: 100%;
    }

    .language-btn {
        width: 100%;
        justify-content: center;
    }

    .language-menu {
        right: auto;
        left: 0;
        width: 100%;
    }

    .admin-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-header-actions .btn {
        width: 100%;
    }

    .category-add-section {
        flex-direction: column;
    }

    .translation-indicator {
        top: 60px;
        right: 10px;
        left: 10px;
        font-size: 0.9rem;
    }

    .owned-plugins-list {
        gap: 1.5rem;
    }

    .owned-plugin-card {
        flex-direction: column;
    }
}

/* Owned Plugins List Styles */
.owned-plugins-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.owned-plugin-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.owned-plugin-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.owned-plugin-card .plugin-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.owned-plugin-card .plugin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plugin-info {
    flex: 1;
}

.plugin-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.plugin-info .plugin-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--gray-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plugin-info .plugin-version {
    color: var(--text-light);
    font-size: 0.95rem;
}

.plugin-downloads {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plugin-downloads h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-download:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--gray-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-download .download-icon {
    font-size: 1.3rem;
}

.no-downloads {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.version-info {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* VST3 Upload Styles */
.vst3-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vst3-upload-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vst3-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.platform-icon {
    font-size: 1.3rem;
}

.vst3-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.vst3-upload-zone:hover {
    border-color: var(--primary-color);
}

.vst3-upload-zone.has-file {
    border-style: solid;
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
}

.vst3-upload-zone.uploading {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.file-icon {
    font-size: 2rem;
}

.file-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-remove:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.file-input-hidden {
    display: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .vst3-uploads {
        grid-template-columns: 1fr;
    }
}

/* Version Manager Styles */
.version-manager {
    max-width: 900px;
}

.version-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.version-current-info {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.version-current-info strong {
    color: var(--primary-color);
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.empty-versions {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: var(--bg-secondary);
    border-radius: 8px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.version-item:hover {
    border-color: var(--primary-color);
}

.version-item.current-version {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
}

.version-info {
    flex: 1;
}

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

.version-info h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.current-badge {
    background: var(--primary-color);
    color: var(--gray-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.version-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.version-notes {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

.version-files {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.version-actions .btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .version-manager-header {
        flex-direction: column;
        gap: 1rem;
    }

    .version-manager-header .btn {
        width: 100%;
    }

    .version-item {
        flex-direction: column;
        gap: 1rem;
    }

    .version-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Message de chargement simple pour les téléchargements sécurisés */
.loading-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-color);
    z-index: 10000;
    font-size: 0.95rem;
}

/* ============================================
   MODE MAINTENANCE
   ============================================ */

.maintenance-toggle {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.toggle-checkbox {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-checkbox:checked + .toggle-switch {
    background: #ff4444;
    border-color: #ff4444;
}

.toggle-checkbox:checked + .toggle-switch::after {
    left: 33px;
    background: white;
}

.toggle-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.toggle-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    padding-left: 76px;
}

.form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.form-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-section textarea.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.form-section textarea.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.section-header h4 {
    margin: 0;
}

.section-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem 0;
}

.empty-message {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   BETA TESTERS
   ============================================ */

.info-box {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.badge-all {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-expired {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.expired-row {
    opacity: 0.5;
}

.expired-row td {
    text-decoration: line-through;
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}
