:root {
    --bg-main: #090909;
    --sidebar-bg: #0a0a0a;
    --card-bg: #0e0e0e;
    --text-main: #ffffff;
    --text-secondary: #8a8a8a;
    --border-color: #1f1f1f;
    --primary: #4a4a4a;
    --primary-hover: #5a5a5a;
    --success: #4a9a4a;
    --danger: #9a4a4a;
    --warning: #9a8a4a;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --panel-elevated: #111111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a var(--bg-main);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-main);
}

*::-webkit-scrollbar-thumb {
    background: #a5b4fc;
    border: 2px solid var(--bg-main);
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

body {
    background-color: var(--bg-main);
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Page de Landing */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    overflow-y: auto;
    z-index: 1000;
}

.landing-content {
    padding-top: 80px;
}

.landing-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.landing-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.nav-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: #333333;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-client-btn {
    background: #333333;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-client-btn:hover {
    background: #444444;
    transform: translateY(-2px);
}

.nav-client-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.nav-discord-btn {
    background: #5865f2;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Base Section */
.landing-base {
    padding: 80px 32px;
    background: #1a1a1a;
}

.base-header {
    text-align: center;
    margin-bottom: 48px;
}

.base-category {
    color: #888888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.base-header h1 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.base-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.base-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.base-product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.product-banner {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
}

.banner-logo {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.banner-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
}

.product-tags {
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
}

.tag.popular {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.product-highlight {
    padding: 0 24px 16px;
    display: flex;
    gap: 8px;
}

.highlight-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.highlight-badge.new {
    background: #10b981;
    color: #ffffff;
}

.highlight-badge.popular {
    background: #f59e0b;
    color: #ffffff;
}

.product-content {
    padding: 24px;
}

.product-content h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.feature-item i {
    color: #6a6a6a;
}

.product-price {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-btn {
    width: 100%;
    justify-content: center;
}

.base-video-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.video-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.video-large {
    aspect-ratio: 16/9;
}

.video-large i {
    font-size: 80px;
}

.video-large p {
    font-size: 22px;
}

.video-actions {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px;
}

.video-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-youtube-btn {
    flex: 1;
    justify-content: center;
}

.test-server-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.test-server-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.test-server-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.connection-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.connection-input {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #888888;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.copy-connection-btn {
    padding: 12px 20px;
    font-size: 14px;
}

.test-server-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
}

/* Hero Section */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

/* Preview Section (Video) */
.landing-preview-video {
    padding: 80px 32px;
    background: #1a1a1a;
}

.preview-header {
    text-align: center;
    margin-bottom: 40px;
}

.preview-header h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.preview-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.video-container {
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
}

.video-placeholder i {
    font-size: 64px;
    color: #666666;
    margin-bottom: 16px;
}

.video-placeholder p {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-placeholder span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.test-server-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.test-server-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-server-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

.connection-string {
    display: flex;
    gap: 8px;
    background: #0a0a0a;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.connection-text {
    flex: 1;
    color: #888888;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.test-server-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-server-tips p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-server-tips i {
    color: #888888;
}

.view-gallery-link {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.2s ease;
}

.view-gallery-link:hover {
    color: #aaaaaa;
}

/* Preview Section (Gallery) */
.landing-preview-gallery {
    padding: 60px 32px;
    background: #1a1a1a;
}

.preview-gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.preview-gallery-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-gallery-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: #4a4a4a;
}

.preview-gallery-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    overflow: hidden;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.preview-placeholder i {
    font-size: 48px;
    color: #666666;
}

.preview-gallery-content {
    padding: 20px;
}

.preview-gallery-content h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.preview-gallery-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 12px;
}

.preview-gallery-link {
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preview-gallery-link:hover {
    color: #aaaaaa;
}

/* Scripts Section */
.landing-scripts {
    padding: 80px 32px;
    background: #1a1a1a;
}

.scripts-header {
    text-align: center;
    margin-bottom: 48px;
}

.scripts-header h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.scripts-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.scripts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.script-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.script-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: #4a4a4a;
}

.script-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    overflow: hidden;
}

.script-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.script-placeholder i {
    font-size: 64px;
    color: #666666;
}

.script-content {
    padding: 24px;
}

.script-content h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.script-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

.script-link {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.script-link:hover {
    color: #aaaaaa;
}

/* Services Section */
.landing-services {
    padding: 80px 32px;
    background: #1a1a1a;
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.services-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.services-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.service-category-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-category-btn:hover,
.service-category-btn.active {
    background: #4a4a4a;
    color: #ffffff;
    border-color: #4a4a4a;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: #4a4a4a;
}

.service-category {
    color: #888888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.service-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.service-price {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.service-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Features Section */
.landing-features {
    padding: 80px 32px;
    background: #0a0a0a;
}

/* Patch Notes Section */
.landing-patch-notes {
    padding: 80px 32px;
    background: #1a1a1a;
}

.patch-notes-header {
    text-align: center;
    margin-bottom: 48px;
}

.patch-notes-header h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.patch-notes-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.patch-notes-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.patch-note-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
}

.patch-version {
    color: #888888;
    font-size: 28px;
    font-weight: 700;
}

.patch-content h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.patch-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patch-content li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.patch-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #888888;
}

.patch-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    white-space: nowrap;
}

/* FAQ Section */
.landing-faq {
    padding: 80px 32px;
    background: #1a1a1a;
}

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-header h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-header h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.features-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: #4a4a4a;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 28px;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.landing-footer {
    background: #0c0c0e;
    padding: 40px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Layout Plein Écran */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-main);
}

/* Sidebar Sombre — panel screenshot */
.sidebar {
    width: 248px;
    background: var(--sidebar-bg);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
    justify-content: space-between;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    gap: 14px;
}

.sidebar-scroll {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 2px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 6px 14px;
    color: #fff;
}

.sidebar-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sidebar-brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.menu-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6a6a6a;
    margin-bottom: 8px;
    margin-top: 18px;
    padding: 0 10px;
    font-weight: 600;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #9a9a9a;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.menu-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    opacity: 0.95;
    flex-shrink: 0;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.menu-item.active {
    background: #1a1a1a;
    color: #ffffff;
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item-toggle {
    justify-content: space-between;
}

.menu-item-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.menu-chevron {
    font-size: 10px !important;
    width: auto !important;
    color: #6a6a6a;
    transition: transform 0.2s ease;
}

.menu-item-toggle[aria-expanded="true"] .menu-chevron {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0 6px 8px;
}

.submenu[hidden] {
    display: none !important;
}

.submenu-item {
    padding-left: 14px;
    font-size: 12.5px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    padding-top: 8px;
}

/* Contenu Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-main);
    min-width: 0;
}

.main-content.editor-mode {
    overflow: hidden;
}

.main-content.editor-mode .top-navbar {
    flex-shrink: 0;
}

.top-navbar {
    background: #2a2a2a;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--text-main);
    font-weight: 600;
}

.search-bar {
    position: relative;
    width: 280px;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    font-size: 13px;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 13px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--text-main);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.user-info .name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.user-info .email {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Conteneur des vues */
.view-section {
    display: none;
    padding: 24px 32px;
    flex-direction: column;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.view-section.active-view {
    display: flex;
}

.dashboard-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-title p {
    font-size: 13px;
    color: var(--text-secondary);
}

.backups-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.backup-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.backup-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.backup-stat-card strong {
    color: var(--text-main);
    font-size: 22px;
}

.backup-stat-card strong small {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.backup-stat-card > span {
    color: var(--text-secondary);
    font-size: 12px;
}

.backup-progress {
    width: 100%;
    height: 6px;
    margin-top: 3px;
    overflow: hidden;
    border-radius: 4px;
    background: #e5e7eb;
}

.backup-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #4a4a4a;
}

.backup-table-card {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.backup-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.backup-table-header h3 {
    color: var(--text-main);
    font-size: 15px;
}

.backup-table-header p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.backup-retention {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.backup-retention i {
    margin-right: 5px;
    color: var(--success);
}

.backup-table-wrap {
    overflow-x: auto;
}

.backup-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.backup-table th {
    padding: 12px 20px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.backup-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    white-space: nowrap;
}

.backup-table td:first-child {
    min-width: 240px;
}

.backup-table td strong {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-main);
}

.backup-table td small {
    display: block;
    margin: 5px 0 0 25px;
    color: #9ca3af;
    font-size: 10px;
}

.backup-row-icon {
    color: #888888;
}

.backup-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.backup-status.success { color: var(--success); }
.backup-actions { text-align: right; }

.sftp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 20px;
}

.sftp-connection-card,
.sftp-help-card {
    padding: 24px;
}

.sftp-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sftp-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #333333;
    color: #888888;
}

.sftp-card-heading h3 {
    color: var(--text-main);
    font-size: 15px;
}

.sftp-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
}

.sftp-online i { font-size: 7px; }

.sftp-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
}

.sftp-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.sftp-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 7px 8px 7px 11px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
}

.sftp-value span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sftp-actions { display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border-color); }

.sftp-help-card .card-header-sm { margin-bottom: 18px; color: var(--text-main); }
.sftp-help-card ol { padding-left: 20px; color: var(--text-secondary); font-size: 12px; line-height: 2.1; }
.sftp-help-card strong { color: var(--text-main); }

.sftp-security-note {
    display: flex;
    gap: 9px;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    line-height: 1.5;
}

.sftp-security-note i { margin-top: 2px; }

.webhooks-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.webhook-connected { color: var(--success); font-size: 12px; font-weight: 600; }
.webhook-connected i { margin-right: 5px; font-size: 7px; }
.webhook-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 20px; }
.webhook-config-card, .webhook-preview-card { padding: 24px; }
.webhook-card-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.webhook-heading-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #333333; color: #888888; font-size: 19px; }
.webhook-card-heading h3 { color: var(--text-main); font-size: 15px; }
.webhook-card-heading span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.webhook-card-heading .switch { margin-left: auto; }
.webhook-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; }
.webhook-full-field { grid-column: 1 / -1; }
.webhook-secret-field { display: flex; align-items: center; padding-right: 5px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-main); }
.webhook-secret-field input { min-width: 0; flex: 1; border: 0; background: transparent; }
.webhook-secret-field input:focus { background: transparent; }
.webhook-events-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; border-top: 1px solid var(--border-color); }
.webhook-events-heading h3 { color: var(--text-main); font-size: 14px; }
.webhook-events-heading p { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.webhook-events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.webhook-event { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.webhook-event:hover { border-color: #c7d2fe; background: #f8faff; }
.webhook-event input { margin-top: 3px; accent-color: #4a4a4a; }
.webhook-event span { display: grid; gap: 3px; }
.webhook-event i { width: 16px; color: #888888; }
.webhook-event b { color: var(--text-main); font-size: 12px; font-weight: 600; }
.webhook-event small { color: var(--text-secondary); font-size: 10px; }
.webhook-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--border-color); }
.discord-preview { padding: 16px; border-radius: 8px; background: #313338; color: #dbdee1; }
.discord-preview-head { display: flex; align-items: center; gap: 8px; color: #f2f3f5; font-size: 12px; }
.discord-avatar { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #5865f2; color: white; }
.discord-preview-head small { padding: 2px 4px; border-radius: 3px; background: #5865f2; color: white; font-size: 8px; }
.discord-preview-head time { color: #949ba4; font-size: 10px; }
.discord-embed { margin-top: 10px; padding: 12px 14px; border-left: 4px solid #5865f2; border-radius: 4px; background: #2b2d31; }
.discord-embed h4 { color: #f2f3f5; font-size: 15px; }
.discord-embed p { margin-top: 8px; color: #dbdee1; font-size: 12px; line-height: 1.4; }
.discord-embed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.discord-embed-fields div { display: grid; gap: 4px; }
.discord-embed-fields b { color: #f2f3f5; font-size: 12px; }
.discord-embed-fields span { color: #dbdee1; font-size: 12px; }
.discord-embed-footer { display: block; margin-top: 14px; color: #f2f3f5; font-size: 10px; }
.discord-embed-footer span { color: #949ba4; font-weight: 400; }
.webhook-security { display: flex; gap: 8px; margin-top: 18px; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.webhook-security i { color: var(--success); }

.patch-notes-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.patch-notes-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.patch-notes-summary { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 12px; }
.patch-notes-summary strong { color: var(--text-main); font-size: 14px; }
.patch-notes-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.patch-notes-filters { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); }
.patch-filter { padding: 6px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.patch-filter.active, .patch-filter:hover { background: #333333; color: #888888; font-weight: 600; }
.patch-notes-list { display: flex; flex-direction: column; gap: 14px; }
.patch-note-card { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 20px; padding: 20px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.02); }
.patch-note-version { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; color: #888888; font-size: 20px; font-weight: 700; }
.patch-note-version small { width: fit-content; padding: 3px 6px; border-radius: 4px; background: #333333; color: #888888; font-size: 9px; letter-spacing: .04em; }
.patch-note-main { min-width: 0; }
.patch-note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.patch-note-head h2 { color: var(--text-main); font-size: 16px; }
.patch-note-head p { margin-top: 5px; color: var(--text-secondary); font-size: 11px; }
.patch-note-summary { margin-top: 15px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.patch-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.patch-status.published { background: #ecfdf5; color: #059669; }
.patch-status.draft { background: #fff7ed; color: #c2410c; }
.patch-change-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.patch-change-grid h4 { color: var(--text-main); font-size: 11px; }
.patch-change-grid h4 i { margin-right: 5px; color: #888888; }
.patch-change-grid ul { display: grid; gap: 6px; margin-top: 9px; padding-left: 15px; color: var(--text-secondary); font-size: 11px; line-height: 1.4; }
.patch-note-actions { display: flex; align-items: flex-start; gap: 3px; }
.patch-note-modal-box { max-width: 620px; }
.patch-note-modal-box .modal-header p { margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
.patch-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.patch-form-full { grid-column: 1 / -1; }
.patch-form-grid select, .patch-form-grid textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-main); color: var(--text-main); font: 13px 'Inter', sans-serif; outline: none; }
.patch-form-grid textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.patch-form-grid input:focus, .patch-form-grid select:focus, .patch-form-grid textarea:focus { border-color: #4a4a4a; background: var(--card-bg); }

.account-settings-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 20px; }
.account-settings-main { display: flex; flex-direction: column; gap: 20px; }
.account-profile-card, .account-sessions-card, .account-preferences-card { padding: 24px; }
.account-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border-color); }
.account-section-heading h3, .login-history-heading h3 { color: var(--text-main); font-size: 15px; }
.account-section-heading p, .login-history-heading p { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.account-role, .session-count { padding: 5px 8px; border-radius: 5px; background: #333333; color: #888888; font-size: 10px; font-weight: 600; white-space: nowrap; }
.account-role i { margin-right: 4px; }
.account-profile-row { display: flex; align-items: center; gap: 14px; padding: 20px 0; }
.account-avatar-large { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; overflow: hidden; border-radius: 14px; background: var(--text-main); color: white; font-size: 22px; font-weight: 700; }
.account-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.account-profile-row strong { color: var(--text-main); font-size: 13px; }
.account-profile-row p { margin: 4px 0 9px; color: var(--text-secondary); font-size: 11px; }
.account-avatar-button { display: inline-flex; padding: 6px 10px; font-size: 11px; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-form-actions { display: flex; justify-content: flex-end; padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--border-color); }
.session-item { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.session-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: #f3f4f6; color: var(--text-secondary); }
.session-item > div:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.session-item strong { color: var(--text-main); font-size: 12px; }
.session-item span { color: var(--text-secondary); font-size: 10px; }
.session-current { color: var(--success); font-size: 10px; }
.account-danger-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; }
.account-danger-action div { display: grid; gap: 4px; }
.account-danger-action strong { color: var(--text-main); font-size: 12px; }
.account-danger-action span { color: var(--text-secondary); font-size: 10px; }
.account-preferences-card { display: flex; flex-direction: column; gap: 18px; }
.account-preferences-card select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-main); color: var(--text-main); font-size: 13px; outline: none; }
.preference-note { display: flex; gap: 8px; padding: 11px; border-radius: 8px; background: #333333; color: #888888; font-size: 11px; line-height: 1.4; }
.login-history-heading { padding-top: 4px; border-top: 1px solid var(--border-color); }
.login-history-heading h3 { margin-top: 18px; }
.login-history-item { display: flex; align-items: center; gap: 9px; padding-top: 14px; }
.login-history-item > i { color: var(--success); font-size: 12px; }
.login-history-item div { display: grid; gap: 3px; }
.login-history-item strong { color: var(--text-main); font-size: 11px; }
.login-history-item span { color: var(--text-secondary); font-size: 10px; }

.sftp-layout::after {
    content: "Connexion sécurisée par SFTP • Port SSH 2022";
    grid-column: 1 / -1;
    padding: 13px 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}

/* Grilles et Cartes Dashboard */
.grid-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 20px;
}

.grid-row-bottom {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.card-header-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.system-status-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
    background: #4a4a4a;
    color: white;
    border-color: #4a4a4a;
}
.btn-primary:hover { background: #5a5a5a; }

.btn-outline {
    background: white;
    color: var(--text-main);
}
.btn-outline:hover { background: var(--bg-main); }

.btn-danger {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fee2e2;
}
.btn-danger:hover { background: #fee2e2; }

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-main);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.action-row:hover {
    border-color: var(--border-color);
    background: white;
}

.action-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.activity-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.btn-text {
    font-size: 12px;
    color: #888888;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}
.btn-text:hover { text-decoration: underline; }

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.act-success { background: #d1fae5; color: #065f46; }
.act-blue { background: #e0e7ff; color: #3730a3; }
.act-purple { background: #ede9fe; color: #5b21b6; }
.act-warning { background: #fef3c7; color: #b45309; }
.act-danger { background: #fee2e2; color: #991b1b; }

.activity-details .act-title {
    font-weight: 600;
    color: var(--text-main);
}

.activity-details .act-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 10px 0;
}

.activity-empty i { font-size: 14px; }

.activity-empty-cell {
    text-align: center;
    color: var(--text-secondary) !important;
    padding: 28px 16px !important;
}

.activity-table td small { font-size: 11px; }

/* --- STYLES BOUTIQUE --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.shop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.shop-card.popular {
    border-color: #4a4a4a;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #4a4a4a;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.shop-card-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.shop-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.shop-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.shop-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.shop-features li {
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-features li i {
    color: var(--success);
    font-size: 14px;
}

/* --- STYLES VUE JOURNAL D'ACTIVITÉS --- */
.activity-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.activity-table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.activity-table th {
    background: var(--bg-main);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.activity-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.activity-table tr:last-child td {
    border-bottom: none;
}

.activity-table tr:hover td {
    background: rgba(0,0,0,0.01);
}

/* --- STYLES VUE GESTION DES MODULES --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.module-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.module-meta h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.module-meta span {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Switch Toggle Stylé */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.module-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.module-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 12px;
}

.module-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.module-status-badge.active { color: var(--success); }
.module-status-badge.inactive { color: var(--text-secondary); }

/* --- STYLES VUE PERSONNALISATION --- */
.customization-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.custom-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.custom-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.custom-form-group input[type="text"],
.custom-form-group input[type="number"] {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    font-size: 13px;
    outline: none;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.custom-form-group input:focus {
    border-color: #4a4a4a;
    background: white;
}

/* Palette de couleurs & Color Picker personnalisé stylé */
.color-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mode-tab {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.mode-tab.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.color-palette-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px white;
}

/* Options de couleurs rigoureusement cohérentes avec le site */
.color-indigo { background: #4f46e5; }
.color-midnight { background: #1e1b4b; }
.color-slate { background: #334155; }
.color-emerald { background: #10b981; }
.color-dark { background: #0c0c0e; }

.custom-picker-wrapper {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.custom-picker-wrapper.active {
    display: flex;
}

.custom-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.custom-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.hex-code-display {
    font-size: 13px;
    font-family: monospace;
    background: var(--bg-main);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.preview-box {
    background: var(--sidebar-bg);
    border-radius: 10px;
    padding: 16px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-rpc {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
}

.preview-rpc-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.customization-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* --- SYSTÈME DE NOTIFICATIONS FLOTTANTES (TOASTS) --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: var(--sidebar-bg);
    border: 1px solid #1f2937;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.success i {
    color: var(--success);
    font-size: 16px;
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.error i {
    color: var(--danger);
    font-size: 16px;
}

/* --- STYLES MODALS (BOUTIQUE) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.file-action-modal-box {
    max-width: 440px;
}

.file-action-modal-box .modal-header {
    align-items: flex-start;
}

.file-action-modal-box .modal-header h3 {
    margin-bottom: 4px;
}

.file-action-modal-box .modal-header p {
    color: var(--text-secondary);
    font-size: 12px;
}

.file-action-error {
    min-height: 16px;
    color: var(--danger);
    font-size: 12px;
}

#file-action-modal .modal-footer {
    justify-content: flex-end;
    align-items: center;
}

#file-action-modal .modal-footer .modal-close {
    width: auto;
    height: auto;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

#file-action-modal .modal-footer .modal-close:hover {
    background: var(--bg-main);
    color: var(--text-main);
}

.file-preview-modal .modal-box {
    max-width: 900px;
}

.file-content-editor {
    width: 100%;
    min-height: 420px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #111827;
    color: #e5e7eb;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.file-editor-view {
    padding: 0;
    padding-bottom: 20px;
    max-width: none;
    height: auto;
    min-height: 0;
    flex: 1;
    background: var(--bg-main);
}

.file-editor-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
}

.file-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 62px;
    padding: 12px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.file-structure-toggle.active {
    border-color: #666666;
    background: #333333;
    color: #888888;
}

.file-editor-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    color: var(--text-main);
}

.file-editor-file-info > i {
    color: #888888;
    font-size: 16px;
}

.file-editor-file-info div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.file-editor-file-info strong,
.file-editor-file-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-editor-file-info strong {
    color: var(--text-main);
    font-size: 13px;
}

.file-editor-file-info span {
    color: var(--text-secondary);
    font-size: 11px;
}

.file-editor-workspace {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #252a34;
}

.file-line-numbers {
    width: 58px;
    margin: 0;
    padding: 18px 12px 18px 0;
    overflow: hidden;
    background: #eceef6;
    color: #9ca3af;
    font: 13px/1.5 Consolas, 'Courier New', monospace;
    text-align: right;
    user-select: none;
}

.file-editor-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 18px 24px;
    border: 0;
    outline: 0;
    background: transparent;
    color: transparent;
    caret-color: #e5e7eb;
    font: 13px/1.5 Consolas, 'Courier New', monospace;
    resize: none;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
    scrollbar-color: #4a4a4a #1f2430;
    -webkit-text-fill-color: transparent;
}

.file-code-editor {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: #252a34;
    overflow: hidden;
}

.file-code-highlight {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 18px 24px;
    overflow: hidden;
    color: #e5e7eb;
    font: 13px/1.5 Consolas, 'Courier New', monospace;
    tab-size: 4;
    white-space: pre;
    pointer-events: none;
}

.file-editor-workspace.structured-mode .file-code-highlight {
    background-image: none;
}

.indent-guide {
    display: inline-block;
    width: 1px;
    height: 1.5em;
    margin-right: 31px;
    margin-left: 0;
    vertical-align: -0.3em;
    background: rgba(165, 180, 252, 0.28);
}

.file-editor-workspace.structured-mode .file-line-numbers {
    background-image: linear-gradient(to right, transparent 0, transparent 57px, rgba(165, 180, 252, 0.45) 57px, rgba(165, 180, 252, 0.45) 58px);
}

.file-code-highlight .lua-keyword { color: #c084fc; }
.file-code-highlight .lua-string { color: #86efac; }
.file-code-highlight .lua-comment { color: #94a3b8; font-style: italic; }
.file-code-highlight .lua-number { color: #fbbf24; }
.file-code-highlight .lua-function { color: #67e8f9; }
.file-code-highlight .lua-operator { color: #f9a8d4; }
.file-code-highlight .syntax-tag { color: #f472b6; }
.file-code-highlight .syntax-property { color: #93c5fd; }
.file-code-highlight .syntax-selector { color: #fbbf24; }
.file-code-highlight .syntax-at-rule { color: #c084fc; }
.file-code-highlight .syntax-template { color: #86efac; }

.file-editor-content::selection {
    background: rgba(255, 255, 255, 0.2);
}

.file-editor-content::-webkit-scrollbar-track {
    background: #1f2430;
}

.file-editor-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-color: #1f2430;
}

.file-line-numbers::-webkit-scrollbar {
    width: 0;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-summary-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-summary-title {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-summary-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    font-size: 13px;
    outline: none;
    color: var(--text-main);
}

.modal-footer {
    display: flex;
    gap: 10px;
}

/* --- STYLE GESTIONNAIRE DE FICHIERS (PTERODACTYL STYLE) --- */
.pterodactyl-file-manager {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.file-manager-header {
    background: var(--bg-main);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.file-path-navigator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.path-separator {
    color: var(--text-secondary);
}

.file-manager-actions {
    display: flex;
    gap: 10px;
}

.file-drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.file-drop-zone:hover,
.file-drop-zone:focus-visible,
.file-drop-zone.is-dragging {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
    outline: none;
}

.file-drop-zone > i {
    font-size: 24px;
}

.file-drop-zone div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-drop-zone strong {
    color: var(--text-main);
    font-size: 13px;
}

.file-drop-zone span {
    font-size: 12px;
}

.file-table-container {
    width: 100%;
    overflow-x: auto;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.file-table th {
    background: var(--card-bg);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.file-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.file-sort-button i {
    color: #9ca3af;
    font-size: 11px;
}

.file-sort-button:hover,
.file-sort-button[aria-sort="ascending"],
.file-sort-button[aria-sort="descending"] {
    color: var(--text-main);
}

.file-sort-button[aria-sort="ascending"] i::before {
    content: "\f0de";
}

.file-sort-button[aria-sort="descending"] i::before {
    content: "\f0dd";
}

.file-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.file-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.file-row:hover td {
    background: rgba(79, 70, 229, 0.02);
}

.file-table tr:last-child td {
    border-bottom: none;
}

.folder-icon {
    color: var(--warning);
    margin-right: 8px;
}

.file-icon {
    color: var(--primary);
    margin-right: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-main);
    color: var(--text-main);
}

.btn-icon.text-danger:hover {
    background: #fef2f2;
    color: var(--danger);
}


/* ===== Espace Client panel chrome (Target-like layout, Akura theme) ===== */
.app-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--bg-main);
}

.app-workspace {
    flex: 1;
    display: flex;
    min-height: 0;
    min-width: 0;
}

.server-selector {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #141414;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.server-selector:hover {
    border-color: #2a2a2a;
    background: #171717;
}

.server-selector-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-selector .fa-chevron-down {
    font-size: 11px;
    color: var(--text-secondary);
}

.sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 4px 4px 6px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.sidebar-back:hover {
    color: var(--text-main);
    background: var(--sidebar-hover);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #101010;
}

.sidebar-user .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    isolation: isolate;
}

.sidebar-user .user-avatar .user-avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.sidebar-user .user-avatar .user-avatar-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2a2a2a;
    z-index: 0;
}

.sidebar-user .user-avatar .user-avatar-decoration {
    position: absolute;
    z-index: 1;
    width: 46px;
    height: 46px;
    left: 50%;
    top: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sidebar-user-meta {
    flex: 1;
    min-width: 0;
}

.sidebar-user-meta .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-meta .email {
    display: none;
}

.sidebar-user-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sidebar-user-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8a8a8a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sidebar-user-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar-user-btn#sidebar-sound-btn,
.sidebar-user-btn:not(.sidebar-user-logout) {
    color: #8a8a8a;
}
.sidebar-user-logout {
    color: #e05555;
}
.sidebar-user-btn.is-muted {
    color: #5a5a5a;
}

.sidebar-user-logout:hover {
    background: rgba(224, 85, 85, 0.12);
    color: #ff6b6b;
}

.server-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 14px;
    border-bottom: none;
    background: transparent;
    flex-shrink: 0;
}

.server-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.server-topbar-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 500;
}

.status-pill .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6a6a6a;
}

.status-pill.is-offline .status-dot {
    background: #6a6a6a;
}

.status-pill.is-online {
    color: var(--success);
    border-color: rgba(74, 154, 74, 0.35);
}

.status-pill.is-online .status-dot {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(74, 154, 74, 0.15);
}

.status-pill.is-restarting {
    color: var(--warning);
    border-color: rgba(154, 138, 74, 0.4);
}

.status-pill.is-restarting .status-dot {
    background: var(--warning);
}

.server-topbar .breadcrumb {
    display: none;
}

.server-topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-topbar {
    background: transparent;
    color: #cfcfcf;
    border: 1px solid transparent;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-topbar i {
    font-size: 11px;
    opacity: 0.85;
}

.btn-topbar:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.btn-topbar:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.btn-topbar-danger {
    color: #e8b4b4;
}

.btn-topbar-danger:hover {
    background: rgba(154, 74, 74, 0.15);
    border-color: rgba(154, 74, 74, 0.35);
    color: #f2cfcf;
}

.players-panel {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    background: var(--sidebar-bg);
    min-height: 0;
}

.players-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 12px;
}

.players-panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.players-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #cfcfcf;
    background: #161616;
    border: 1px solid var(--border-color);
}

.players-search {
    position: relative;
    margin: 0 16px 14px;
}

.players-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #0c0c0c;
    color: var(--text-main);
    font-size: 12px;
    outline: none;
}

.players-search input::placeholder {
    color: #6a6a6a;
}

.players-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a6a6a;
    font-size: 12px;
}

.players-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 16px;
    display: flex;
    flex-direction: column;
}

.players-empty {
    margin: auto;
    text-align: center;
    color: #7a7a7a;
    font-size: 13px;
    padding: 24px 12px;
}

.console-empty {
    margin: 0 !important;
    text-align: left !important;
    color: #7a7a7a;
    font-size: 13px;
    padding: 4px 2px;
    align-self: flex-start !important;
    width: auto;
}

.main-content .view-section {
    max-width: none;
    margin: 0;
    padding: 8px 24px 24px;
}

#view-dashboard.active-view {
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    flex-shrink: 0;
}

.dash-stat-card {
    background: #0e0e0e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.dash-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #8a8a8a;
}

.dash-stat-label i {
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.dash-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #d0d0d0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.console-panel {
    background: #0e0e0e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.console-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.console-panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.console-panel-header p {
    margin-top: 4px;
    font-size: 12px;
    color: #7a7a7a;
}

.console-refresh-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #8a8a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.console-refresh-btn:hover {
    color: #fff;
    background: #1a1a1a;
}

.console-panel-body {
    flex: 1;
    min-height: 220px;
    background: #0b0b0b;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px 16px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: auto;
}

.console-line {
    flex-shrink: 0;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: #c5c5c5;
    padding: 0;
}

.console-line.is-error {
    color: #f07178;
}

.console-line.is-warn {
    color: #e5c07b;
}

.console-line.is-cmd {
    color: #7ec8e3;
}

.console-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    background: #0c0c0c;
    flex-shrink: 0;
}

.console-prompt {
    color: #6a6a6a;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
}

.console-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
}

.console-send-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6a6a6a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.console-send-btn:hover {
    color: #fff;
}

.placeholder-view {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: 420px;
}

.placeholder-card {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #0e0e0e;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.placeholder-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9a9a;
    margin-bottom: 8px;
}

.placeholder-card h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 650;
}

.placeholder-card > p {
    color: #8a8a8a;
    font-size: 13px;
    max-width: 520px;
}

.placeholder-empty {
    margin-top: 28px;
    color: #6a6a6a;
    font-size: 13px;
}

.stockage-hub {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stockage-hub-header h2 {
    font-size: 20px;
    color: #fff;
}

.stockage-hub-header p {
    margin-top: 4px;
    color: #8a8a8a;
    font-size: 13px;
}

.stockage-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stockage-hub-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #0e0e0e;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.stockage-hub-card:hover {
    background: #141414;
    border-color: #2a2a2a;
}

.stockage-hub-card > i:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9a9a9a;
    flex-shrink: 0;
}

.stockage-hub-card div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stockage-hub-card strong {
    font-size: 14px;
}

.stockage-hub-card span {
    font-size: 12px;
    color: #8a8a8a;
}

.stockage-hub-card > i:last-child {
    color: #6a6a6a;
    font-size: 12px;
}

.dash-activity-card {
    display: none;
}

@media (max-width: 1200px) {
    .players-panel {
        width: 260px;
    }

    .dash-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stockage-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .players-panel {
        display: none;
    }

    .sidebar {
        width: 220px;
    }

    .server-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

.app-workspace.editor-mode .players-panel {
    display: none;
}


.main-content {
    height: 100%;
}

.main-content > .view-section.active-view {
    flex: 1;
    min-height: 0;
}


/* ===== Statistiques page ===== */
.server-topbar-metrics {
    display: none;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.app-stage.stats-mode .server-topbar-actions {
    display: none;
}

.app-stage.stats-mode .server-topbar-metrics {
    display: flex;
}

.app-stage.stats-mode .players-panel {
    display: none;
}

.app-workspace.stats-mode .players-panel {
    display: none;
}

.top-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.top-metric-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.top-metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.stats-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-height: 0;
}

.stats-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #121212;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.stats-tab {
    border: none;
    background: transparent;
    color: #8a8a8a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.stats-tab:hover {
    color: #fff;
}

.stats-tab.active {
    background: #fff;
    color: #0a0a0a;
    font-weight: 600;
}

.stats-tab-panel {
    display: none;
    flex: 1;
    min-height: 0;
}

.stats-tab-panel.active {
    display: flex;
    flex-direction: column;
}

.stats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
    grid-template-rows: minmax(260px, 1.2fr) minmax(220px, 1fr);
    gap: 14px;
    flex: 1;
    min-height: 520px;
}

.stats-card {
    background: #0e0e0e;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.stats-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.stats-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.stats-card-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8a8a8a;
}

.stats-period-toggles {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: #121212;
    border: 1px solid var(--border-color);
}

.stats-period-btn {
    border: none;
    background: transparent;
    color: #8a8a8a;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.stats-period-btn:hover {
    color: #fff;
}

.stats-period-btn.active {
    background: #2a2a2a;
    color: #fff;
}

.stats-line-chart {
    position: relative;
    flex: 1;
    min-height: 180px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 40%);
    overflow: hidden;
}

.stats-line-baseline {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 18px;
    height: 2px;
    border-radius: 999px;
    background: #4a75e4;
    box-shadow: 0 0 10px rgba(74, 117, 228, 0.55);
}

.stats-summary-big {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.stats-summary-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-summary-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.stats-summary-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stats-summary-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-summary-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #9a9a9a;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stats-summary-rows li:first-child {
    border-top: none;
    padding-top: 0;
}

.stats-summary-rows b {
    color: #fff;
    font-weight: 600;
}

.stats-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6a6a6a;
    font-size: 13px;
    padding: 24px 12px;
}

.stats-week-chart {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 140px;
    padding: 8px 4px 0;
}

.stats-week-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 120px;
}

.stats-week-bar {
    display: block;
    width: 100%;
    max-width: 42px;
    border-radius: 6px 6px 4px 4px;
    background: #4a75e4;
    box-shadow: 0 0 8px rgba(74, 117, 228, 0.35);
    min-height: 4px;
}

.stats-week-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #8a8a8a;
}

.stats-empty-panel {
    flex: 1;
    min-height: 360px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 24px;
    text-align: center;
}

.stats-empty-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #151515;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a75e4;
    font-size: 18px;
    margin-bottom: 4px;
}

.stats-empty-panel h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.stats-empty-panel p {
    margin: 0;
    max-width: 420px;
    font-size: 13px;
    color: #8a8a8a;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .stats-card-players,
    .stats-card-summary,
    .stats-card-recent,
    .stats-card-weekly {
        min-height: 240px;
    }

    .app-stage.stats-mode .server-topbar-metrics {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }
}


/* ===== Analytics / Rapports ===== */
.stats-hour-chart {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 140px;
    padding: 8px 4px 0;
}

.stats-hour-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 120px;
}

.stats-hour-bar {
    display: block;
    width: 100%;
    max-width: 36px;
    border-radius: 6px 6px 4px 4px;
    background: #4a75e4;
    box-shadow: 0 0 8px rgba(74, 117, 228, 0.35);
    min-height: 4px;
}

.stats-hour-label {
    font-size: 11px;
    font-weight: 600;
    color: #8a8a8a;
}

.stats-radar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 4px 8px 8px;
}

.stats-radar {
    width: min(100%, 240px);
    height: auto;
    display: block;
}

.stats-reports {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

.stats-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stats-kpi-card {
    gap: 10px;
    min-height: 120px;
    justify-content: flex-start;
}

.stats-kpi-card h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #9a9a9a;
}

.stats-kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stats-kpi-card p {
    margin: 0;
    font-size: 12px;
    color: #6a6a6a;
}

.stats-reports-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 14px;
    min-height: 260px;
}

.stats-reports-mid > .stats-card {
    min-height: 260px;
}

.stats-compare-chart {
    min-height: 140px;
}

.stats-compare-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    flex-shrink: 0;
}

.stats-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8a8a8a;
}

.stats-legend-item i {
    display: inline-block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #4a75e4;
}

.stats-legend-last i {
    background: #666;
}

.stats-daily-card {
    min-height: 0;
}

.stats-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.stats-daily-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stats-daily-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #8a8a8a;
    border-bottom: 1px solid var(--border-color);
    background: #0c0c0c;
}

.stats-daily-table td {
    padding: 12px 14px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.stats-daily-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-daily-table td:first-child {
    color: #cfcfcf;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .stats-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-reports-mid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .stats-kpi-row {
        grid-template-columns: 1fr;
    }
}


/* UI sound mute affordance */
.sidebar-user-btn.is-muted {
    color: #888;
    opacity: 0.85;
}

.sidebar-user-btn.is-muted:hover {
    color: #fff;
    opacity: 1;
}


/* ===== Multistream ===== */
#view-multistream.active-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ms-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.ms-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.ms-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}

.ms-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #0e0e0e;
    flex-shrink: 0;
}

.ms-toolbar-status {
    font-size: 13px;
    color: #8a8a8a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-toolbar-status.has-streams {
    color: #d0d0d0;
}

.ms-add-btn,
.cdn-import-btn {
    background: #4a75e4;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ms-add-btn:hover,
.cdn-import-btn:hover {
    background: #4a75e4;
    color: #fff;
}

.ms-stage {
    flex: 1 1 auto;
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ms-stage.has-streams {
    align-items: stretch;
    justify-content: stretch;
}

.ms-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #5a5a5a;
    margin: 0 auto;
    max-width: 360px;
}

.ms-empty[hidden],
.ms-stream-grid[hidden] {
    display: none !important;
}

.ms-empty i {
    font-size: 42px;
    opacity: 0.55;
}

.ms-empty p {
    margin: 0;
    font-size: 14px;
    color: #6a6a6a;
    line-height: 1.45;
}

.ms-stream-grid {
    width: 100%;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    align-content: start;
}

.ms-stream-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.ms-stream-preview {
    flex: 1;
    min-height: 120px;
    background:
        linear-gradient(180deg, rgba(74,117,228,0.08), transparent 55%),
        #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a75e4;
    font-size: 28px;
}

.ms-stream-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
}

.ms-stream-meta strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-stream-meta small {
    display: block;
    margin-top: 2px;
    color: #6a6a6a;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.ms-stream-remove {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.ms-stream-remove:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
}

/* ===== CDN ===== */
#view-cdn.active-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cdn-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.cdn-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.cdn-title-block h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.cdn-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}

.cdn-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.cdn-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cdn-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cdn-crumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
}

.cdn-crumb:hover {
    color: #4a75e4;
}

.cdn-crumb i {
    color: #8a8a8a;
    font-size: 13px;
}

.cdn-crumb-sep {
    color: #666;
    font-weight: 400;
}

.cdn-crumb-current {
    color: #cfcfcf;
    font-weight: 500;
}

.cdn-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cdn-toolbar-actions[hidden] {
    display: none !important;
}

.cdn-quota {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 140px;
}

.cdn-quota[hidden] {
    display: none !important;
}

.cdn-quota span {
    font-size: 12px;
    color: #8a8a8a;
    white-space: nowrap;
}

.cdn-quota-bar {
    width: 140px;
    height: 2px;
    border-radius: 999px;
    background: #2a2a2a;
    overflow: hidden;
}

.cdn-quota-bar > span {
    display: block;
    height: 100%;
    background: #4a75e4;
    border-radius: 999px;
}

.cdn-folder-btn {
    border-radius: 999px;
    padding: 10px 16px;
    border-color: rgba(255,255,255,0.28);
    color: #fff;
    background: transparent;
}

.cdn-folder-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.cdn-dropzone {
    flex: 1 1 auto;
    width: 100%;
    min-height: 420px;
    border: 1px dashed #2a2a2a;
    border-radius: 16px;
    background: #090909;
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cdn-dropzone.is-dragover {
    border-color: #4a75e4;
    background: rgba(74, 117, 228, 0.04);
}

.cdn-root-view,
.cdn-inner-view {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
}

.cdn-root-view[hidden],
.cdn-inner-view[hidden] {
    display: none !important;
}

.cdn-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    align-content: start;
    width: 100%;
}

.cdn-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #0e0e0e;
    min-height: 78px;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    width: 100%;
}

button.cdn-tile:hover {
    border-color: rgba(74, 117, 228, 0.45);
    background: #121212;
}

.cdn-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(74, 117, 228, 0.12);
    color: #4a75e4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cdn-tile[data-cdn-kind="folder"] .cdn-tile-icon {
    background: rgba(255,255,255,0.06);
    color: #f0c36a;
}

.cdn-tile[data-cdn-kind="file"] .cdn-tile-icon {
    background: rgba(255,255,255,0.06);
    color: #9ab0ff;
}

.cdn-tile-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cdn-tile-meta strong {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdn-tile-meta span {
    color: #8a8a8a;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdn-inner-empty {
    flex: 1;
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    margin: 0 auto;
    color: #5a5a5a;
}

.cdn-inner-empty i {
    font-size: 40px;
    opacity: 0.55;
    color: #6a6a6a;
}

.cdn-inner-empty p {
    margin: 0;
    font-size: 14px;
    color: #6a6a6a;
}

.app-stage.ms-mode .server-topbar,
.app-stage.cdn-mode .server-topbar {
    display: none;
}

.app-workspace.ms-mode .players-panel,
.app-workspace.cdn-mode .players-panel {
    display: none;
}

@media (max-width: 720px) {
    .ms-toolbar,
    .cdn-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cdn-toolbar-actions,
    .cdn-quota {
        width: 100%;
        align-items: stretch;
    }

    .cdn-quota-bar {
        width: 100%;
    }
}


/* Stretch Multistream / CDN / Stats content area */
.main-content > #view-multistream.active-view,
.main-content > #view-cdn.active-view,
.main-content > #view-stats.active-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}


/* ===== Stockage (quota / upgrade) ===== */
#view-stockage.active-view,
#view-logs.active-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.stok-page,
.plogs-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    align-self: stretch;
    width: 100%;
    max-width: none;
}

.stok-top,
.plogs-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stok-top h1,
.plogs-title-row h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.stok-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}

.stok-badge,
.plogs-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 500;
}

.stok-card,
.plogs-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 18px 20px;
}

.stok-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.stok-card-head h3,
.plogs-key-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.stok-card-hint {
    font-size: 12px;
    color: #6a6a6a;
    text-align: right;
}

.stok-refresh-btn {
    border: none;
    background: transparent;
    color: #8a8a8a;
    font: inherit;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

.stok-refresh-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.stok-usage-value {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stok-usage-caption {
    margin-top: 6px;
    font-size: 13px;
    color: #8a8a8a;
}

.stok-helper {
    margin: 14px 0 16px;
    font-size: 12px;
    color: #6a6a6a;
    line-height: 1.5;
}

.stok-quota-bar {
    height: 4px;
    border-radius: 999px;
    background: #222;
    overflow: hidden;
}

.stok-quota-bar > span {
    display: block;
    height: 100%;
    background: #4a75e4;
    border-radius: 999px;
    width: 0%;
}

.stok-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stok-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #0a0a0a;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.stok-plan i {
    color: #8a8a8a;
}

.stok-plan strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.stok-plan span {
    display: block;
    margin-top: 4px;
    color: #4a75e4;
    font-size: 13px;
    font-weight: 600;
}

.stok-plan.is-selected {
    border-color: #4a75e4;
    box-shadow: 0 0 0 1px rgba(74, 117, 228, 0.25);
}

.stok-plan.is-selected i {
    color: #4a75e4;
}

.stok-request-btn,
.plogs-open-btn,
.plogs-save-btn {
    background: #4a75e4;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.stok-request-btn:hover,
.plogs-open-btn:hover,
.plogs-save-btn:hover {
    background: #4a75e4;
    color: #fff;
}

/* ===== Panel Logs ===== */
.plogs-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.plogs-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.plogs-identity-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.plogs-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4a75e4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.plogs-identity-left strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.plogs-identity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #8a8a8a;
}

.plogs-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.plogs-identity-meta code {
    color: #4a75e4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.plogs-no-logo {
    color: #8a8a8a;
}

.plogs-identity-hint {
    margin: 0;
    max-width: 320px;
    font-size: 12px;
    color: #6a6a6a;
    line-height: 1.45;
}

.plogs-form-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.plogs-form-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.plogs-form-row:last-child {
    border-bottom: none;
}

.plogs-form-row label {
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 500;
}

.plogs-label-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plogs-label-stack small {
    color: #6a6a6a;
    font-size: 11px;
    line-height: 1.4;
}

.plogs-form-row input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
}

.plogs-form-row input:focus {
    outline: none;
    border-color: rgba(74, 117, 228, 0.55);
}

.plogs-key-head {
    margin-bottom: 8px;
}

.plogs-key-head i {
    color: #4a75e4;
    margin-right: 6px;
}

.plogs-key-helper {
    margin: 0 0 14px;
    font-size: 12px;
    color: #6a6a6a;
    line-height: 1.55;
}

.plogs-key-helper code {
    color: #cfcfcf;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.plogs-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.plogs-key-row input {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.08em;
}

/* plogs-resync-btn styles moved below */

.app-stage.stok-mode .server-topbar,
.app-stage.logs-mode .server-topbar {
    display: none;
}

.app-workspace.stok-mode .players-panel,
.app-workspace.logs-mode .players-panel {
    display: none;
}

.main-content > #view-stockage.active-view,
.main-content > #view-logs.active-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 820px) {
    .stok-plans {
        grid-template-columns: 1fr;
    }

    .plogs-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .plogs-identity-hint {
        max-width: none;
    }
}


/* Align titles on topbar-hidden pages with Dashboard .server-topbar (18px) */
.app-stage.ms-mode .main-content > .view-section.active-view,
.app-stage.cdn-mode .main-content > .view-section.active-view,
.app-stage.stok-mode .main-content > .view-section.active-view,
.app-stage.logs-mode .main-content > .view-section.active-view,
.app-stage.equipe-mode .main-content > .view-section.active-view,
.app-stage.cfg-mode .main-content > .view-section.active-view {
    padding-top: 18px;
}


/* ===== Équipe ===== */
#view-equipe.active-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.main-content > #view-equipe.active-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.eq-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.eq-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.eq-header p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #8a8a8a;
    max-width: 640px;
    line-height: 1.45;
}

.eq-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.eq-roles-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.eq-roles-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.eq-roles-head span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8a8a8a;
}

.eq-roles-add {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #cfcfcf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.eq-roles-add:hover {
    color: #fff;
    border-color: rgba(74,117,228,0.5);
}

.eq-roles-empty {
    color: #6a6a6a;
    font-size: 13px;
    line-height: 1.45;
    padding: 8px 2px;
}

.eq-roles-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.eq-role-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.eq-role-item:hover {
    background: rgba(255,255,255,0.04);
}

.eq-role-item.is-selected {
    background: #161616;
    border-color: var(--border-color);
}

.eq-role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a75e4;
    flex-shrink: 0;
}

.eq-role-item strong {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eq-role-count {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
}

.eq-main {
    min-height: 420px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0a0a0a;
    display: flex;
}

.eq-main#eq-main-empty {
    align-items: center;
    justify-content: center;
}

.eq-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #5a5a5a;
}

.eq-empty-state i {
    font-size: 40px;
    opacity: 0.55;
}

.eq-empty-state p {
    margin: 0;
    font-size: 14px;
    color: #6a6a6a;
}

.eq-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 280px;
    gap: 14px;
    border: none;
    background: transparent;
    min-height: 0;
    align-items: stretch;
}

.eq-editor[hidden],
#eq-main-empty[hidden],
.eq-roles-list[hidden],
.eq-roles-empty[hidden],
.eq-members-list[hidden],
.eq-members-empty[hidden] {
    display: none !important;
}

.eq-editor-card,
.eq-members-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 16px 18px;
    min-height: 0;
}

.eq-editor-card {
    overflow-y: auto;
}

.eq-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.eq-editor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.eq-editor-title > i {
    color: #4a75e4;
    font-size: 16px;
}

.eq-role-name-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    padding: 4px 0;
    outline: none;
}

.eq-role-name-input:focus {
    border-bottom: 1px solid rgba(74,117,228,0.5);
}

.eq-role-delete {
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.eq-role-delete:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
}

.eq-perm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.eq-perm-head h3 {
    margin: 0;
    font-size: 15px;
    color: #fff;
}

.eq-perm-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8a8a8a;
}

.eq-perm-actions {
    display: inline-flex;
    gap: 14px;
    flex-shrink: 0;
}

.eq-text-btn {
    border: none;
    background: transparent;
    color: #8a8a8a;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.eq-text-btn:hover {
    color: #4a75e4;
}

.eq-perm-section {
    margin-bottom: 16px;
}

.eq-perm-section-label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8a8a8a;
}

.eq-perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.eq-perm-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #0a0a0a;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    width: 100%;
}

.eq-perm-item.is-checked {
    background: rgba(74, 117, 228, 0.08);
    border-color: rgba(74, 117, 228, 0.35);
}

.eq-perm-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
    background: #121212;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    color: transparent;
    font-size: 11px;
}

.eq-perm-item.is-checked .eq-perm-check {
    background: #4a75e4;
    border-color: #4a75e4;
    color: #fff;
}

.eq-perm-meta strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.eq-perm-meta span {
    display: block;
    margin-top: 3px;
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.4;
}

.eq-perm-item.is-span-1 {
    grid-column: 1 / 2;
}

.eq-members-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eq-members-head h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eq-members-head i {
    color: #4a75e4;
}

.eq-members-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #0a0a0a;
}

.eq-members-search i {
    color: #666;
    font-size: 12px;
}

.eq-members-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.eq-members-empty {
    color: #6a6a6a;
    font-size: 13px;
    line-height: 1.45;
}

.eq-members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
}

.eq-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #121212;
    border: 1px solid var(--border-color);
}

.eq-member-item span {
    color: #fff;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eq-member-remove {
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
    padding: 4px;
}

.eq-member-remove:hover {
    color: #ff6b6b;
}

.eq-members-helper {
    margin: auto 0 0;
    font-size: 11px;
    color: #6a6a6a;
    line-height: 1.45;
}

.app-stage.equipe-mode .server-topbar {
    display: none;
}

.app-workspace.equipe-mode .players-panel {
    display: none;
}

@media (max-width: 1100px) {
    .eq-body {
        grid-template-columns: 1fr;
    }

    .eq-editor {
        grid-template-columns: 1fr;
    }

    .eq-roles-card {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .eq-perm-grid {
        grid-template-columns: 1fr;
    }

    .eq-perm-item.is-span-1 {
        grid-column: auto;
    }
}


/* Panel Logs — Resync contrast (override .btn-outline white-on-white) */
button.btn.btn-outline.plogs-resync-btn,
#plogs-resync-btn.plogs-resync-btn {
    background: #141414 !important;
    color: #ffffff !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
}
button.btn.btn-outline.plogs-resync-btn i,
#plogs-resync-btn.plogs-resync-btn i {
    color: #ffffff !important;
}
button.btn.btn-outline.plogs-resync-btn:hover,
#plogs-resync-btn.plogs-resync-btn:hover {
    background: #1c1c1c !important;
    color: #ffffff !important;
    border-color: #3a3a3a !important;
}


/* Panel Logs — Resync contrast (override .btn-outline white-on-white) */
button.btn.btn-outline.plogs-resync-btn,
#plogs-resync-btn.plogs-resync-btn {
    background: #141414 !important;
    color: #ffffff !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
}
button.btn.btn-outline.plogs-resync-btn i,
#plogs-resync-btn.plogs-resync-btn i {
    color: #ffffff !important;
}
button.btn.btn-outline.plogs-resync-btn:hover,
#plogs-resync-btn.plogs-resync-btn:hover {
    background: #1c1c1c !important;
    color: #ffffff !important;
    border-color: #3a3a3a !important;
}


/* ===== Configuration pages ===== */
#view-cfg-general.active-view,
#view-cfg-monde.active-view,
#view-cfg-images.active-view,
#view-cfg-couleur.active-view,
#view-cfg-theme.active-view,
#view-cfg-discord-rpc.active-view,
#view-cfg-loading.active-view,
#view-cfg-identifiants.active-view,
#view-cfg-ressources.active-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.main-content > #view-cfg-general.active-view,
.main-content > [id^="view-cfg-"].active-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cfg-general-page,
.cfg-shell-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
}

.cfg-general-page > *,
.cfg-shell-page > * {
    flex-shrink: 0;
}

.cfg-shell-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cfg-shell-top h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cfg-shell-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}

.cfg-shell-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 500;
}

.cfg-shell-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.cfg-shell-title p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}

.cfg-shell-empty {
    border: 1px dashed #2a2a2a;
    border-radius: 14px;
    background: #0a0a0a;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a6a6a;
    font-size: 14px;
}

.cfg-identity-banner {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #141416;
    overflow: hidden;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
}

.cfg-identity-strip {
    height: 58px;
    background: linear-gradient(90deg, #c084fc 0%, #7c3aed 32%, #4c1d95 62%, #1a1028 100%);
}

.cfg-identity-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding: 20px 28px 24px;
    min-height: 168px;
    box-sizing: border-box;
}

.cfg-identity-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.cfg-identity-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cfg-identity-avatar {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    background: #1c1c20;
    border: 1px solid #2a2a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    flex-shrink: 0;
}

.cfg-identity-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 6px;
}

.cfg-identity-heading strong,
#cfg-gen-banner-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cfg-connect-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.cfg-identity-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    color: #8a8a8a;
    font-size: 12px;
}

.cfg-flag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.cfg-flag svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.cfg-identity-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 292px;
    flex-shrink: 0;
}

.cfg-id-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfg-id-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cfg-id-row-head-line {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 7px;
}

.cfg-id-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8a8a8a;
    margin-bottom: 0;
}

.cfg-id-label i {
    font-size: 11px;
    color: #6a6a6a;
}

.cfg-id-value.muted {
    color: #6a6a6a;
    font-size: 12px;
}

.cfg-id-row-head strong {
    display: block;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
}

.cfg-res-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cfg-chip {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #cfcfcf;
    font-size: 11px;
}

.cfg-show-all {
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    color: #cfcfcf;
}

.cfg-show-all:hover {
    color: #fff;
    border-color: #3a3a3a;
}

.cfg-tag-line {
    height: 1px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    margin-top: 2px;
}

.cfg-warn-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #101010;
    color: #8a8a8a;
    font-size: 12px;
}

.cfg-warn-bar i {
    color: #4a75e4;
}

.cfg-details-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 8px 0 12px;
}

.cfg-details-head {
    padding: 10px 20px 6px;
}

.cfg-details-head h3 {
    margin: 0;
    font-size: 15px;
    color: #fff;
}

.cfg-details-head i {
    color: #4a75e4;
    margin-right: 6px;
}

.cfg-form-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.6fr);
    gap: 16px;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.cfg-form-row label {
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 500;
}

.cfg-form-row input,
.cfg-form-row select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
}

.cfg-form-row input:focus,
.cfg-form-row select:focus {
    outline: none;
    border-color: rgba(74,117,228,0.55);
}

.cfg-tags-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #0a0a0a;
    min-height: 42px;
}

.cfg-tags-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cfg-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(74,117,228,0.12);
    border: 1px solid rgba(74,117,228,0.35);
    color: #fff;
    font-size: 12px;
}

.cfg-tag-chip button {
    border: none;
    background: transparent;
    color: #cfcfcf;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cfg-tags-field input {
    flex: 1;
    min-width: 160px;
    border: none !important;
    background: transparent !important;
    padding: 4px 0 !important;
}

.cfg-mastodon-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cfg-toggle {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: #2a2a2a;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.cfg-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cfcfcf;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cfg-toggle.is-on {
    background: #4a75e4;
}

.cfg-toggle.is-on .cfg-toggle-knob {
    transform: translateX(18px);
    background: #fff;
}

.cfg-toggle-label {
    color: #8a8a8a;
    font-size: 13px;
    flex-shrink: 0;
}

.cfg-mastodon-field input {
    flex: 1;
}


.cfg-tooltip-section {
    padding: 8px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.cfg-tooltip-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8a8a8a;
    margin: 10px 0 12px;
}

.cfg-tooltip-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cfg-tooltip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cfg-tooltip-key {
    width: 140px;
    flex-shrink: 0;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.cfg-tooltip-url {
    flex: 1;
    min-width: 0;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
}

.cfg-tooltip-key:focus,
.cfg-tooltip-url:focus,
#cfg-gen-discord:focus {
    outline: none;
    border-color: rgba(74,117,228,0.7);
}

.cfg-tooltip-del {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #8a8a8a;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
}

.cfg-tooltip-del:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
}

.cfg-add-line {
    margin-top: 12px;
    border: none;
    background: transparent;
    color: #cfcfcf;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
}

.cfg-add-line:hover {
    color: #fff;
}

.cfg-form-row-aside .cfg-row-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cfg-request-btn {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cfg-request-btn:hover {
    background: #f3f3f3;
}

.cfg-save-bar {
    position: relative;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: 8px;
    padding: 16px 4px 18px;
    background: transparent;
    z-index: 1;
}

.cfg-save-bar[hidden] {
    display: none !important;
}

.cfg-save-alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #121212;
    color: #d6d6d6;
    font-size: 13px;
}

.cfg-save-alert i {
    color: #eab308;
}

.cfg-cancel-btn {
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cfg-save-btn {
    border: none;
    background: #4a75e4;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cfg-save-btn:hover,
.cfg-save-btn-main:hover {
    filter: brightness(1.06);
}

.cfg-save-btn-main {
    padding: 11px 18px;
}

.app-stage.cfg-mode .server-topbar {
    display: none;
}

.app-workspace.cfg-mode .players-panel {
    display: none;
}

.app-stage.cfg-mode .main-content > .view-section.active-view {
    padding-top: 18px;
}

/* Chevron down when Configuration submenu open */
.menu-item-toggle[aria-expanded="true"] .menu-chevron {
    transform: rotate(90deg);
}

@media (max-width: 980px) {
    .cfg-identity-body {
        grid-template-columns: 1fr;
    }

    .cfg-identity-right {
        grid-template-columns: 1fr;
    }

    .cfg-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* ===== Config Monde / Images / Couleur ===== */
.cfg-monde-page,
.cfg-images-page,
.cfg-couleur-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
}

.cfg-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 18px 20px;
    flex-shrink: 0;
}

.cfg-card-head {
    margin-bottom: 16px;
}

.cfg-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.cfg-card-head i {
    color: #4a75e4;
    margin-right: 8px;
}

.cfg-density-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cfg-density-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cfg-density-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cfg-density-label i {
    width: 18px;
    text-align: center;
    color: #8a8a8a;
}

.cfg-density-value {
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cfg-density-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #2a2a2a;
    outline: none;
    cursor: pointer;
}

.cfg-density-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a75e4;
    border: none;
    box-shadow: 0 0 0 3px rgba(74, 117, 228, 0.2);
    cursor: pointer;
}

.cfg-density-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a75e4;
    border: none;
    cursor: pointer;
}

.cfg-density-range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: #2a2a2a;
}

.cfg-save-row {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-bottom: 8px;
}

.cfg-save-row-in-card {
    margin-top: 20px;
    padding-bottom: 0;
}

.cfg-save-pill {
    background: #4a75e4;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
}

.cfg-save-pill:hover {
    background: #4a75e4;
    color: #fff;
}

/* Images */
.cfg-img-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cfg-img-row:last-child {
    margin-bottom: 0;
}

.cfg-img-preview {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.cfg-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfg-img-preview.has-image i {
    display: none;
}

.cfg-img-url {
    flex: 1;
    min-width: 0;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
}

.cfg-img-url:focus {
    outline: none;
    border-color: rgba(74, 117, 228, 0.55);
}

.cfg-img-dl {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #121212;
    color: #8a8a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.cfg-img-dl:hover {
    color: #fff;
    border-color: #3a3a3a;
}

.cfg-img-dropzone {
    margin-top: 8px;
    min-height: 160px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #555;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cfg-img-dropzone i {
    font-size: 22px;
    opacity: 0.55;
}

.cfg-img-dropzone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfg-img-dropzone.has-image i {
    display: none;
}

.cfg-img-dropzone.is-dragover {
    border-color: #4a75e4;
    background: rgba(74, 117, 228, 0.05);
}

/* Aperçu RageUI aux proportions du header en jeu (432 x 103, stretch, coins hauts arrondis). */
#cfg-img-rageui-drop.cfg-rageui-preview {
    min-height: 0;
    padding: 22px 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(74, 117, 228, 0.08), transparent 55%),
        #070707;
}
#cfg-img-rageui-drop .cfg-rageui-menu {
    width: 432px;
    max-width: 100%;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}
#cfg-img-rageui-drop .cfg-rageui-header {
    position: relative;
    width: 100%;
    aspect-ratio: 432 / 103;
    background: #101014;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
#cfg-img-rageui-drop .cfg-rageui-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
#cfg-img-rageui-drop .cfg-rageui-title {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: 1;
}
#cfg-img-rageui-drop.has-image .cfg-rageui-title {
    display: flex;
}
#cfg-img-rageui-drop .cfg-rageui-header i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 22px;
    opacity: 0.55;
    z-index: 1;
}
#cfg-img-rageui-drop.has-image .cfg-rageui-header i {
    display: none;
}
#cfg-img-rageui-drop .cfg-rageui-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35px;
    padding: 0 10px;
    background: rgba(16, 16, 16, 0.725);
    color: #f5f5f5;
    font-size: 12px;
}
#cfg-img-rageui-drop .cfg-rageui-item {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 13px;
}
#cfg-img-rageui-drop .cfg-rageui-item.is-on {
    background: rgba(255, 255, 255, 0.12);
}
#cfg-img-rageui-drop .cfg-rageui-bottom {
    height: 8px;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 0 0 8px 8px;
}


/* Couleur */
.cfg-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.cfg-color-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cfg-color-row > label {
    color: #cfcfcf;
    font-size: 14px;
    font-weight: 500;
}

.cfg-color-nui {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cfg-color-swatch-main {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.cfg-color-hex {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.cfg-fivem-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cfg-fivem-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.cfg-fivem-swatch.is-white {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}

.cfg-fivem-swatch.is-selected {
    box-shadow: 0 0 0 2px #121212, 0 0 0 4px #F4842D;
}

@media (max-width: 720px) {
    .cfg-img-row {
        flex-wrap: wrap;
    }

    .cfg-img-url {
        order: 3;
        flex: 1 1 100%;
    }

    .cfg-color-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfg-fivem-swatches {
        justify-content: flex-start;
    }
}


#cfg-color-nui-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


.cfg-img-block {
    margin-bottom: 16px;
}

.cfg-img-block:last-child {
    margin-bottom: 0;
}

.cfg-img-label {
    display: block;
    margin-bottom: 8px;
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 500;
}

/* ===== Nayrub Color Picker ===== */
.nayrub-color-picker {
    position: fixed;
    z-index: 10050;
    width: 272px;
    padding: 12px;
    border-radius: 14px;
    background: #0c0c0c;
    border: 1px solid #222;
    box-shadow: 0 18px 48px rgba(0,0,0,0.55);
    user-select: none;
    font-family: inherit;
}
.nayrub-color-picker[hidden] { display: none !important; }
.ncp-sv {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
    background: #f00;
}
.ncp-sv-white, .ncp-sv-black {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.ncp-sv-white {
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.ncp-sv-black {
    background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
.ncp-sv-thumb {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ncp-row-hue {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.ncp-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.12);
    background: #1E4DFF;
}
.ncp-hue-wrap {
    position: relative;
    flex: 1;
    height: 14px;
    display: flex;
    align-items: center;
}
.ncp-hue {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right,
        #ff0000 0%, #ffff00 17%, #00ff00 33%,
        #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}
.ncp-hue::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
    cursor: pointer;
}
.ncp-hue::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
    cursor: pointer;
}
.ncp-rgb-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.ncp-rgb-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ncp-rgb-field input {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #151515;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.ncp-rgb-field input:focus { border-color: #4a75e4; }
.ncp-rgb-field span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #8a8a8a;
}
.ncp-hex-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.ncp-hex-row > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #8a8a8a;
    flex-shrink: 0;
}
.ncp-hex-row input {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #151515;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    outline: none;
    text-transform: uppercase;
}
.ncp-hex-row input:focus { border-color: #4a75e4; }

/* ===== Config Theme ===== */
.cfg-theme-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 8px;
}
.cfg-theme-page:has(#cfg-theme-save-bar:not([hidden])) {
    padding-bottom: 12px;
}
.cfg-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}
.cfg-theme-row + .cfg-theme-row {
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 6px;
    padding-top: 14px;
}
.cfg-theme-row > label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.cfg-theme-select {
    min-width: 160px;
    height: 38px;
    padding: 0 34px 0 14px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #151515 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a8a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #fff;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
.cfg-theme-select:focus { border-color: #4a75e4; }
.cfg-theme-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
    flex-shrink: 0;
}
@media (max-width: 1100px) {
    .cfg-theme-main { grid-template-columns: 1fr; }
}
.cfg-theme-preview-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 14px;
    flex-shrink: 0;
}
.cfg-theme-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1f1f1f;
}
.cfg-theme-tab {
    background: none;
    border: none;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 2px 10px;
    cursor: pointer;
    position: relative;
}
.cfg-theme-tab.is-active {
    color: #fff;
}
.cfg-theme-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #4a75e4;
    border-radius: 2px 2px 0 0;
}
.cfg-theme-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    container-type: inline-size;
    container-name: theme-stage;
    background:
        linear-gradient(180deg, #4aa3ff 0%, #87ceeb 42%, #6b8f3c 42%, #5a7a32 100%);
}
.cfg-theme-stage-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}
.cfg-theme-stage-bg[hidden] { display: none !important; }
.cfg-theme-hud-layer,
.cfg-theme-inv-layer {
    position: absolute;
    inset: 0;
}
.cfg-theme-inv-layer {
    display: block;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
.cfg-theme-inv-layer.is-on {
    opacity: 1;
    visibility: visible;
}
.cfg-theme-inv-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color-scheme: light;
    pointer-events: none;
}
.cfg-theme-minimap {
    display: none;
    position: absolute;
    left: 1.6%;
    bottom: 2.2%;
    width: 13.8%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.18);
    background:
        radial-gradient(circle at 40% 55%, #2f6b3a 0 18%, transparent 19%),
        linear-gradient(135deg, #1a2a1a 0%, #243324 45%, #1c281c 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.cfg-theme-hud-stats {
    position: absolute;
    left: 142px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cfg-theme-hud-stat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.cfg-theme-hud-stat i {
    font-size: 11px;
}

/* sStatus HUD (BaseAkura) — scoped to theme preview */
.sstatus-hud {
    --server-color: #86ffef;
    --status-left: 15.95%;
    --status-bottom: 2.15%;
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.sstatus-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22cqw;
    position: absolute;
    left: var(--status-left, 15.95%);
    bottom: var(--status-bottom, 2.15%);
    width: auto;
    min-width: 0;
    pointer-events: none;
    z-index: 20;
}
.sstatus-hud .status-svg {
    width: 2.05cqw;
    height: 2.05cqw;
    margin-right: 0;
    flex-shrink: 0;
}
.sstatus-hud .status-circle,
.sstatus-hud .status-circlee {
    stroke: var(--server-color);
    stroke-width: 2.5px;
    fill: none;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.35s;
}
.sstatus-hud .bg-circle {
    fill: rgba(20, 22, 26, 0.55);
    stroke: none;
}
.sstatus-hud #sstatus-drug-hard {
    display: none;
}
@media (min-aspect-ratio: 21/9) {
    .sstatus-hud .status-svg {
        width: 1.55cqw;
        height: 1.55cqw;
    }
}

.cfg-theme-colors-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0e0e0e;
    padding: 18px 18px 14px;
    flex-shrink: 0;
}
.cfg-theme-colors-card > h3 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.cfg-theme-stat-block {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid #1c1c1c;
}
.cfg-theme-stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.cfg-theme-stat-head[hidden],
.cfg-theme-stat-block[hidden],
#cfg-theme-hud-colors-card[hidden],
#cfg-theme-inv-colors-card[hidden] {
    display: none !important;
}
#cfg-theme-inv-accent {
    width: 100%;
    flex: 1 1 auto;
}
.cfg-theme-stat-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.cfg-theme-mini-status {
    width: 34px;
    height: 34px;
    display: block;
    flex-shrink: 0;
}
.cfg-theme-mini-status .bg-circle {
    fill: #1c1d22;
    stroke: none;
}
.cfg-theme-mini-status .status-circle {
    fill: none;
    stroke-width: 2.6px;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
.cfg-theme-chips {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.cfg-theme-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #222;
    background: #0e0e0e;
    color: #fff;
    cursor: pointer;
    text-align: left;
}
.cfg-theme-chip:hover { border-color: #333; background: #161616; }
.cfg-theme-chip-swatch {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.cfg-theme-chip-swatch.is-light {
    border-color: rgba(255,255,255,0.35);
}
.cfg-theme-chip-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.cfg-theme-chip-meta strong {
    font-size: 12px;
    font-weight: 600;
    color: #ddd;
}
.cfg-theme-chip-meta span {
    font-size: 11px;
    color: #8a8a8a;
    font-variant-numeric: tabular-nums;
}
.cfg-theme-indiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 2px;
    margin-top: 2px;
    border-top: none;
}
.cfg-theme-indiv > span {
    color: #cfcfcf;
    font-size: 13px;
}

.cfg-rpc-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 16px;
}
.cfg-rpc-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}
@media (max-width: 1100px) {
    .cfg-rpc-main { grid-template-columns: 1fr; }
}
.cfg-rpc-card {
    padding: 20px 22px 24px;
}
.cfg-rpc-group + .cfg-rpc-group {
    margin-top: 22px;
}
.cfg-rpc-group h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.cfg-rpc-fields-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 720px) {
    .cfg-rpc-fields-2 { grid-template-columns: 1fr; }
}
.cfg-rpc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cfg-rpc-field label {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
}
.cfg-rpc-field input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 11px 12px;
    font: inherit;
    font-size: 13px;
}
.cfg-rpc-field input::placeholder {
    color: #555;
}
.cfg-rpc-field input:focus {
    outline: none;
    border-color: #333;
}
.cfg-rpc-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
}
.cfg-rpc-preview-label {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.cfg-rpc-discord {
    background: #1e1f22;
    border: 1px solid #2b2d31;
    border-radius: 12px;
    overflow: hidden;
}
.cfg-rpc-discord-banner {
    height: 64px;
    background: #7b82f6;
}
.cfg-rpc-discord-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}
.cfg-rpc-discord-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #5865f2;
    border: 6px solid #1e1f22;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
    box-sizing: content-box;
}
.cfg-rpc-avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.cfg-rpc-avatar-decoration {
    position: absolute;
    z-index: 2;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: contain;
    pointer-events: none;
}
.cfg-rpc-discord-avatar.has-photo .cfg-rpc-avatar-letter { display: none; }
.cfg-rpc-discord-banner.has-photo {
    background-size: cover !important;
    background-position: center !important;
}
.cfg-rpc-online {
    position: absolute;
    z-index: 3;
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #23a559;
    border: 4px solid #1e1f22;
    display: block;
    box-sizing: border-box;
}
.cfg-rpc-discord-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 4px;
    min-width: 0;
}
.cfg-rpc-discord-user strong {
    color: #f2f3f5;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}
.cfg-rpc-discord-user span {
    color: #b5bac1;
    font-size: 14px;
    font-weight: 400;
}
.cfg-rpc-discord-body {
    margin: 10px 12px 14px;
    padding: 12px;
    background: #111214;
    border-radius: 8px;
}
.cfg-rpc-discord-playing {
    color: #b5bac1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.cfg-rpc-discord-game {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cfg-rpc-discord-art {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.cfg-rpc-discord-large {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #2b2d31;
    display: block;
}
.cfg-rpc-discord-small {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    object-fit: cover;
    background: #2b2d31;
    border: 3px solid #111214;
    box-sizing: content-box;
}
.cfg-rpc-discord-game-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.cfg-rpc-discord-game-meta strong {
    color: #f2f3f5;
    font-size: 14px;
    font-weight: 600;
}
.cfg-rpc-discord-game-meta span {
    color: #b5bac1;
    font-size: 12px;
}
.cfg-rpc-discord-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cfg-rpc-no-btn {
    display: block;
    text-align: center;
    color: #dbdee1;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    background: #2b2d31;
    border-radius: 4px;
}
.cfg-rpc-discord-btn {
    background: #2b2d31;
    color: #fff;
    border-radius: 4px;
    padding: 8px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}
.cfg-rpc-save {
    border: none;
    background: #4a75e4;
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
.cfg-rpc-save:hover { filter: brightness(1.08); }

.cfg-load-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 16px;
}
.cfg-load-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}
@media (max-width: 1100px) {
    .cfg-load-main { grid-template-columns: 1fr; }
}
.cfg-load-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.cfg-load-card {
    padding: 18px 20px 20px;
}
.cfg-load-logo-card { padding-top: 15px; padding-bottom: 15px; }
.cfg-load-logo-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.cfg-load-logo-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4a75e4;
}
.cfg-load-logo-card .cfg-load-hint { margin-left: 26px; }
.cfg-load-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.cfg-load-card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.cfg-load-card-head h3 i {
    margin-right: 8px;
    color: #fff;
    font-size: 13px;
}
.cfg-load-mode {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cfg-load-mode-btn {
    border: none;
    background: transparent;
    color: #6a6a6a;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.cfg-load-mode-btn i { font-size: 13px; }
.cfg-load-mode-btn.is-active {
    color: #fff;
    background: #181818;
}
.cfg-load-card input[type="url"],
.cfg-load-card input[type="text"] {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 11px 12px;
    font: inherit;
    font-size: 13px;
}
.cfg-load-card input::placeholder { color: #555; }
.cfg-load-card input:focus {
    outline: none;
    border-color: #333;
}
.cfg-load-musics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cfg-load-music-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cfg-load-music-row input {
    flex: 1;
    min-width: 0;
    width: auto;
}
.cfg-load-add {
    border: none;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.cfg-load-add:hover { filter: brightness(0.94); }
.cfg-load-remove {
    border: none;
    background: #1a1a1a;
    color: #9a9a9a;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.cfg-load-remove:hover { color: #fff; background: #222; }
.cfg-load-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
}
.cfg-load-preview-label {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.cfg-load-preview {
    position: relative;
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.cfg-load-preview img,
.cfg-load-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}
.cfg-load-preview video[hidden],
.cfg-load-preview img[hidden] { display: none; }
.cfg-load-preview-empty {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #6a6a6a;
    font-size: 13px;
    background: #111;
}
.cfg-load-preview.is-empty .cfg-load-preview-empty { display: flex; }
.cfg-load-save {
    border: none;
    background: #4a75e4;
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
.cfg-load-save:hover { filter: brightness(1.08); }
/* Loading screen : import de fichiers MP4 / MP3 / image */
.cfg-load-import {
    border: 1px solid var(--border-color);
    background: #0a0a0a;
    color: #d6d6d6;
    border-radius: 999px;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.cfg-load-import i { font-size: 12px; }
.cfg-load-import:hover { color: #fff; border-color: #333; background: #141414; }
.cfg-load-import:disabled { opacity: 0.6; cursor: default; }
.cfg-load-file {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 4px 4px 4px 12px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}
.cfg-load-file[hidden] { display: none; }
.cfg-load-file-icon { color: #8a8a8a; font-size: 13px; flex-shrink: 0; }
.cfg-load-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
}
.cfg-load-file-play {
    border: none;
    background: #1a1a1a;
    color: #9a9a9a;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
}
.cfg-load-file-play:hover { color: #fff; background: #222; }
.cfg-load-file .cfg-load-remove { width: 32px; height: 32px; font-size: 18px; border-radius: 8px; }
.cfg-load-hint { margin: 10px 0 0; color: #6a6a6a; font-size: 12px; }
.cfg-load-card.is-dragover { outline: 1px dashed #4a75e4; outline-offset: -1px; }


.cfg-id-page,
.cfg-res-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 20px;
}
.cfg-id-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #3a1418;
    border: 1px solid #5a1e24;
    border-radius: 12px;
    padding: 14px 16px;
}
.cfg-id-alert i {
    color: #e05555;
    font-size: 16px;
    margin-top: 2px;
}
.cfg-id-alert strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
}
.cfg-id-alert p {
    margin: 4px 0 0;
    color: #d7a3a8;
    font-size: 13px;
}
.cfg-id-card {
    padding: 18px 20px 8px;
}
.cfg-id-card h3,
.cfg-res-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.cfg-id-card h3 i,
.cfg-res-card h3 i {
    margin-right: 8px;
    color: #fff;
    font-size: 13px;
}
.cfg-id-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #1a1a1a;
}
.cfg-id-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}
.cfg-id-row label i {
    width: 16px;
    color: #8a8a8a;
    text-align: center;
}
.cfg-id-row input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font: inherit;
    font-size: 13px;
    padding: 8px 0;
    min-width: 0;
}
.cfg-id-row input::placeholder { color: #555; }
.cfg-id-row input:focus { outline: none; }
.cfg-id-eye {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #7a7a7a;
    cursor: pointer;
    border-radius: 8px;
}
.cfg-id-eye:hover { color: #fff; background: #161616; }
.cfg-id-actions {
    display: flex;
    justify-content: flex-end;
}
.cfg-id-save {
    border: none;
    background: #4a75e4;
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.cfg-id-save:hover { filter: brightness(1.08); }
.cfg-res-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cfg-res-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cfg-res-toolbar button {
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cfg-res-toolbar button:hover { background: #161616; }
.cfg-res-sync {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0e0e0e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    color: #8a8a8a;
    font-size: 13px;
}
.cfg-res-sync i { color: #6a6a6a; }
.cfg-res-card { padding: 18px 20px 10px; }
.cfg-res-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 2px;
    border-top: 1px solid #1a1a1a;
}
.cfg-res-row-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cfg-res-row-meta strong {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.cfg-res-row-meta span {
    color: #6a6a6a;
    font-size: 12px;
}
@media (max-width: 820px) {
    .cfg-id-row {
        grid-template-columns: 1fr 40px;
        grid-template-rows: auto auto;
    }
    .cfg-id-row label { grid-column: 1 / 2; }
    .cfg-id-row input { grid-column: 1 / 2; }
    .cfg-id-eye { grid-column: 2; grid-row: 1 / span 2; }
    .cfg-res-head { flex-direction: column; }
}

.cfg-rst-schedule-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.cfg-rst-schedule-head h3,
.cfg-rst-list-card > h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cfg-rst-schedule-head h3 i,
.cfg-rst-list-card > h3 i {
    color: #4a75e4;
}
.cfg-rst-schedule-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8a8a;
}
.cfg-rst-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cfg-rst-time-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cfg-rst-time-wrap input[type="time"] {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #fff;
    padding: 10px 38px 10px 16px;
    font: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    width: 148px;
    color-scheme: dark;
}
.cfg-rst-time-wrap input[type="time"]:focus {
    outline: none;
    border-color: rgba(74, 117, 228, 0.55);
}
.cfg-rst-time-wrap input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(1);
    position: absolute;
    right: 12px;
}
.cfg-rst-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}
.cfg-rst-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid #1a1a1a;
}
.cfg-rst-row:first-child { border-top: none; }
.cfg-rst-row > i {
    color: #4a75e4;
    width: 16px;
    text-align: center;
}
.cfg-rst-row strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cfg-rst-row span {
    color: #7a7a7a;
    font-size: 13px;
    margin-right: auto;
}
.cfg-rst-trash {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6a6a6a;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cfg-rst-trash:hover { color: #eee; background: #171717; }
.cfg-rst-dirty {
    justify-content: center;
    position: sticky;
    bottom: 8px;
    margin-top: 4px;
}
.cfg-shop-tabs {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    border-bottom: 1px solid #1c1c1c;
}
.cfg-shop-tab {
    border: none;
    background: none;
    color: #4a75e4;
    padding: 8px 2px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid #4a75e4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cfg-shop-tab:not(.is-active) {
    color: #777;
    border-bottom-color: transparent;
}
.cfg-shop-tebex {
    margin-top: 16px;
}
.cfg-shop-tebex label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.cfg-shop-tebex input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    color: #fff;
    padding: 11px 14px;
    font: inherit;
    font-size: 13px;
}
.cfg-shop-tebex input:focus {
    outline: none;
    border-color: rgba(74, 117, 228, 0.55);
}
.cfg-shop-tebex input::placeholder { color: #5a5a5a; }
.cfg-shop-tebex p {
    margin: 8px 0 0;
    color: #777;
    font-size: 12px;
}
.cfg-shop-card[hidden] { display: none; }
.cfg-shop-tab i { font-size: 12px; }
.cfg-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.cfg-shop-card {
    background: #0c0c0c;
    border: 1px solid #1c1c1c;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    transition: border-color 0.15s ease;
}
.cfg-shop-card:hover,
.cfg-shop-card.is-over {
    border-color: #4a75e4;
}
.cfg-shop-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.cfg-shop-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid #191919;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    color: #3f3f3f;
}
.cfg-shop-preview .cfg-shop-empty {
    font-size: 22px;
    color: #3a3a3a;
}
.cfg-shop-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cfg-shop-preview.has-image .cfg-shop-empty { display: none; }
.cfg-shop-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cfg-shop-url {
    flex: 1;
    min-width: 0;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    color: #fff;
    padding: 11px 14px;
    font: inherit;
    font-size: 13px;
}
.cfg-shop-url:focus {
    outline: none;
    border-color: rgba(74, 117, 228, 0.55);
}
.cfg-shop-url::placeholder { color: #5a5a5a; }
@media (max-width: 1100px) {
    .cfg-shop-grid { grid-template-columns: 1fr; }
}

/* landing-theme-v1 — align public site with Espace Client */
.landing-page {
    background: #090909;
    color: #fff;
}
.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.landing-bg-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.landing-glow-a {
    animation: landingGlow 14s ease-in-out infinite;
}
.landing-glow-b {
    animation: landingGlow 18s ease-in-out infinite reverse;
}
@keyframes landingGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
.landing-page .landing-nav,
.landing-page .landing-content,
.landing-page .landing-footer {
    position: relative;
    z-index: 1;
}
.landing-page .landing-nav {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #1f1f1f;
    padding: 14px 32px;
}
.landing-page .nav-link {
    color: #8a8a8a;
    border-radius: 999px;
    padding: 8px 14px;
}
.landing-page .nav-link:hover {
    color: #fff;
    background: rgba(74, 117, 228, 0.12);
}
.landing-page .nav-link.active {
    color: #fff;
    background: rgba(74, 117, 228, 0.18);
    box-shadow: inset 0 0 0 1px rgba(74, 117, 228, 0.35);
}
.landing-page .nav-cart-btn {
    background: #121212;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    color: #d6d6d6;
}
.landing-page .nav-cart-btn:hover {
    background: rgba(74, 117, 228, 0.16);
    border-color: rgba(74, 117, 228, 0.45);
    color: #fff;
}
.landing-page .btn.btn-primary {
    background: #4a75e4;
    border: none;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
}
.landing-page .btn.btn-primary:hover {
    filter: brightness(1.08);
}
.landing-page .nav-client-btn {
    background: #4a75e4;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
}
.landing-page .nav-client-btn:hover {
    background: #4a75e4;
    filter: brightness(1.08);
    transform: none;
}
.landing-page .nav-discord-btn {
    background: #5865f2;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
}
.landing-page .nav-discord-btn:hover {
    background: #4752c4;
    transform: none;
}
.landing-page .landing-base,
.landing-page .landing-hero,
.landing-page .landing-preview-video,
.landing-page .landing-preview-gallery,
.landing-page .landing-scripts,
.landing-page .landing-services,
.landing-page .landing-patch-notes,
.landing-page .landing-faq,
.landing-page .landing-features {
    background: transparent;
}
.landing-page .base-category {
    color: #4a75e4;
    letter-spacing: 0.14em;
}
.landing-page .base-header h1,
.landing-page .services-header h2,
.landing-page .scripts-header h2,
.landing-page .preview-header h2,
.landing-page .patch-notes-header h2,
.landing-page .faq-header h2,
.landing-page .features-header h2 {
    letter-spacing: -0.03em;
}
.landing-page .base-header p,
.landing-page .services-header p,
.landing-page .scripts-header p,
.landing-page .preview-header p,
.landing-page .patch-notes-header p,
.landing-page .faq-header p {
    color: #8a8a8a;
}
.landing-page .base-product-card,
.landing-page .video-wrapper,
.landing-page .test-server-info,
.landing-page .service-card,
.landing-page .script-card,
.landing-page .preview-gallery-card,
.landing-page .faq-item,
.landing-page .patch-note-item,
.landing-page .feature-card {
    background: #0e0e0e;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.landing-page .base-product-card:hover,
.landing-page .service-card:hover,
.landing-page .script-card:hover,
.landing-page .preview-gallery-card:hover,
.landing-page .feature-card:hover {
    border-color: rgba(74, 117, 228, 0.45);
}
.landing-page .product-banner {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 50%, rgba(74, 117, 228, 0.22), #0c0c0c 58%);
    min-height: 220px;
}
.landing-page .banner-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.landing-page .banner-content {
    position: relative;
    z-index: 1;
}
.landing-page .banner-logo {
    background: linear-gradient(180deg, #fff 30%, #9db4f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-page .banner-text {
    color: #c5d0f0;
}
.landing-page .tag {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #cfcfcf;
}
.landing-page .tag.popular {
    background: rgba(74, 117, 228, 0.16);
    border-color: rgba(74, 117, 228, 0.35);
    color: #8eabf2;
}
.landing-page .highlight-badge {
    border-radius: 999px;
    padding: 5px 10px;
    letter-spacing: 0.04em;
}
.landing-page .highlight-badge.popular {
    background: #4a75e4;
    color: #fff;
}
.landing-page .highlight-badge.new {
    background: #1f8a62;
}
.landing-page .feature-item i {
    color: #4a75e4;
}
.landing-page .product-btn {
    background: #4a75e4;
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
}
.landing-page .video-placeholder {
    background:
        radial-gradient(circle at 50% 42%, rgba(74, 117, 228, 0.16), transparent 42%),
        linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
}
.landing-page .video-placeholder:hover {
    background:
        radial-gradient(circle at 50% 42%, rgba(74, 117, 228, 0.26), transparent 46%),
        linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}
.landing-page .video-placeholder > i {
    display: none;
}
.landing-page .video-play {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    display: block;
}
.landing-page .video-play svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(74, 117, 228, 0.35));
}
.landing-page .video-placeholder:hover .video-play svg {
    transform: scale(1.04);
}
.landing-page .video-actions {
    border-top: 1px solid #1f1f1f;
    background: #0c0c0c;
}
.landing-page .video-action-btn {
    background: #161616;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
}
.landing-page .video-action-btn:hover {
    background: rgba(74, 117, 228, 0.16);
    color: #fff;
}
.landing-page .connection-input {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    color: #d6d6d6;
}
.landing-page .copy-connection-btn {
    background: #4a75e4;
    border: none;
    border-radius: 999px;
}
.landing-page .service-category-btn {
    background: #121212;
    border: 1px solid #1f1f1f;
    color: #9a9a9a;
    border-radius: 999px;
}
.landing-page .service-category-btn:hover,
.landing-page .service-category-btn.active {
    background: rgba(74, 117, 228, 0.16);
    border-color: rgba(74, 117, 228, 0.45);
    color: #fff;
}
.landing-page .service-category {
    color: #4a75e4;
}
.landing-page .service-price,
.landing-page .product-price {
    color: #fff;
}
.landing-page .btn.btn-outline,
.landing-page .service-btn,
.landing-page .video-youtube-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #fff;
    border-radius: 999px;
}
.landing-page .btn.btn-outline:hover,
.landing-page .service-btn:hover,
.landing-page .video-youtube-btn:hover {
    border-color: #4a75e4;
    background: rgba(74, 117, 228, 0.12);
    color: #fff;
}

#section-services .services-header {
    margin-bottom: 48px;
}
#section-services .services-grid {
    max-width: 1320px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}
#section-services .service-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    gap: 0;
    border-radius: 18px;
}
#section-services .service-plan-media {
    height: 142px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(74, 117, 228, 0.3), transparent 65%),
        #101010;
}
#section-services .service-plan-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 43%;
}
#section-services .service-plan-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 22px 22px;
}
#section-services .service-title {
    margin: 0 0 8px;
    font-size: 21px;
}
#section-services .service-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}
#section-services .service-plan-price strong {
    color: #fff;
    font-size: clamp(22px, 2vw, 29px);
    letter-spacing: -0.04em;
}
#section-services .service-plan-price span {
    color: #999;
    font-size: 14px;
}
#section-services .service-plan-features {
    display: grid;
    gap: 13px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
#section-services .service-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #dedede;
    font-size: 14px;
    line-height: 1.45;
}
#section-services .service-plan-features li i {
    flex: 0 0 15px;
    margin-top: 3px;
    color: #4a75e4;
    font-size: 13px;
}
#section-services .service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    border: 0;
    border-radius: 10px;
    background: #f5f5f5;
    color: #111;
    font-weight: 600;
    text-decoration: none;
}
#section-services .service-btn:hover {
    background: #dce5ff;
    color: #111;
}

@media (max-width: 980px) {
    #section-services .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    #section-services .services-grid {
        max-width: 460px;
        grid-template-columns: minmax(0, 1fr);
    }
    #section-services .service-plan-media {
        height: 160px;
    }
}
.landing-page .feature-icon {
    color: #4a75e4;
    background: rgba(74, 117, 228, 0.12);
}
.landing-page .script-placeholder,
.landing-page .preview-placeholder {
    background:
        radial-gradient(circle at 50% 40%, rgba(74, 117, 228, 0.16), transparent 48%),
        #0a0a0a;
}
.landing-page .faq-question {
    color: #fff;
}
.landing-page .faq-answer {
    color: #8a8a8a;
}
.landing-page .patch-version {
    color: #4a75e4;
}
.landing-page .landing-footer {
    background: rgba(10, 10, 10, 0.92);
    border-top: 1px solid #1f1f1f;
}
.landing-page .footer-links a:hover {
    color: #4a75e4;
}

.landing-page > *:not(.landing-bg) {
    position: relative;
    z-index: 1;
}

/* landing-fit-v1 — first page fits the viewport; footer stays below */
.landing-page nav.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 12px 32px;
}
.landing-page .landing-content {
    padding-top: 68px;
}
.landing-page #section-base .landing-base {
    min-height: calc(100vh - 68px);
    padding: 16px 32px 18px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.landing-page #section-base .base-header {
    margin-bottom: 14px;
    flex: 0 0 auto;
}
.landing-page #section-base .base-category {
    margin-bottom: 6px;
    font-size: 11px;
}
.landing-page #section-base .base-header h1 {
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 6px;
}
.landing-page #section-base .base-header p {
    font-size: 14px;
    margin: 0 auto;
}
.landing-page #section-base .base-grid {
    flex: 1 1 auto;
    min-height: 0;
    gap: 18px;
    align-items: stretch;
    width: 100%;
}
.landing-page #section-base .base-product-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.landing-page #section-base .product-banner {
    min-height: 108px;
    max-height: 132px;
    padding: 18px 20px;
    flex: 0 0 auto;
}
.landing-page #section-base .banner-logo {
    font-size: 34px;
    margin-bottom: 4px;
}
.landing-page #section-base .banner-text {
    font-size: 15px;
}
.landing-page #section-base .product-tags {
    padding: 12px 20px 0;
    margin: 0;
}
.landing-page #section-base .product-highlight {
    padding: 8px 20px 0;
    margin: 0;
}
.landing-page #section-base .product-content {
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.landing-page #section-base .product-content h2 {
    margin: 0 0 6px;
    font-size: 20px;
}
.landing-page #section-base .product-content > p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
}
.landing-page #section-base .product-features {
    gap: 7px;
    margin-bottom: 12px;
}
.landing-page #section-base .feature-item {
    font-size: 13px;
    gap: 8px;
}
.landing-page #section-base .product-price {
    font-size: 22px;
    margin: auto 0 10px;
}
.landing-page #section-base .product-btn {
    padding: 10px 16px;
}
.landing-page #section-base .base-video-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    height: 100%;
}
.landing-page #section-base .video-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.landing-page #section-base .video-container {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 150px;
    height: auto;
    display: flex;
    flex-direction: column;
}
.landing-page #section-base .video-placeholder,
.landing-page #section-base .video-placeholder.video-large {
    flex: 1 1 auto;
    width: 100%;
    min-height: 150px;
    height: auto;
}
.landing-page #section-base .video-play {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
}
.landing-page #section-base .video-actions {
    padding: 8px 14px;
    flex: 0 0 auto;
}
.landing-page #section-base .test-server-info {
    padding: 14px 16px;
    flex: 0 0 auto;
}
.landing-page #section-base .test-server-header h3 {
    margin: 0 0 6px;
    font-size: 16px;
}
.landing-page #section-base .test-server-header p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
}
.landing-page #section-base .connection-wrapper {
    gap: 10px;
}
.landing-page #section-base .connection-input {
    padding: 10px 14px;
}
.landing-page #section-base .test-server-hint {
    margin: 8px 0 0;
    font-size: 12px;
}
@media (max-height: 820px) {
    .landing-page #section-base .landing-base {
        padding: 12px 28px 14px;
    }
    .landing-page #section-base .base-header {
        margin-bottom: 10px;
    }
    .landing-page #section-base .product-banner {
        min-height: 84px;
        max-height: 96px;
        padding: 12px 16px;
    }
    .landing-page #section-base .banner-logo {
        font-size: 28px;
    }
    .landing-page #section-base .video-play {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }
}

/* landing-banner-v1 — product header image fills unused card height */
.landing-page #section-base .product-banner {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 150px;
    max-height: none;
    padding: 0;
    background: #4a75e4;
}
.landing-page #section-base .banner-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.landing-page #section-base .banner-art,
.landing-page #section-base .banner-content {
    display: none;
}
.landing-page #section-base .product-content {
    flex: 0 0 auto;
}
.landing-page #section-base .product-price {
    margin: 12px 0 10px;
}
@media (max-height: 820px) {
    .landing-page #section-base .product-banner {
        min-height: 120px;
        max-height: none;
        padding: 0;
    }
}

/* landing-tune-v1 — shorter product header + centered nav categories */
.landing-page nav.landing-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.landing-page .nav-brand {
    justify-self: start;
}
.landing-page .nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.landing-page .nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.landing-page #section-base .base-grid {
    align-items: start;
}
.landing-page #section-base .base-product-card {
    height: auto;
    align-self: start;
}
.landing-page #section-base .product-banner {
    flex: 0 0 auto;
    height: 128px;
    min-height: 128px;
    max-height: 128px;
    padding: 0;
}
@media (max-height: 820px) {
    .landing-page #section-base .product-banner {
        height: 112px;
        min-height: 112px;
        max-height: 112px;
        padding: 0;
    }
}

/* scripts-page-v1 */
.landing-page #section-scripts .landing-scripts {
    min-height: calc(100vh - 68px);
    padding: 36px 32px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.landing-page #section-scripts .scripts-header {
    margin-bottom: 28px;
}
.landing-page #section-scripts .scripts-header h2 {
    font-size: clamp(28px, 3vw, 36px);
}
.landing-page #section-scripts .scripts-grid {
    gap: 22px;
    max-width: 1100px;
}
.landing-page #section-scripts .script-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0e0e0e;
    border: 1px solid #1f1f1f;
    border-radius: 18px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-page #section-scripts .script-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 117, 228, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.landing-page #section-scripts .script-card-featured {
    box-shadow: 0 16px 40px rgba(74, 117, 228, 0.08);
}
.landing-page #section-scripts .script-image {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.landing-page #section-scripts .script-image .highlight-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}
.landing-page #section-scripts .script-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 40%, rgba(74, 117, 228, 0.18), transparent 52%),
        #0a0a0a;
}
.landing-page #section-scripts .script-visual {
    width: 100%;
    height: 100%;
    display: block;
}
.landing-page #section-scripts .script-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.landing-page #section-scripts .script-content h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}
.landing-page #section-scripts .script-content > p {
    margin: 0;
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.5;
}
.landing-page #section-scripts .script-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 8px;
}
.landing-page #section-scripts .script-points span {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #cfcfcf;
    font-size: 12px;
    padding: 5px 10px;
}
.landing-page #section-scripts .script-link {
    color: #4a75e4;
    margin-top: auto;
    width: fit-content;
}
.landing-page #section-scripts .script-link:hover {
    color: #7b9aee;
}

/* preview-page-v1 */
.landing-page #section-preview .landing-preview-gallery {
    padding: 40px 32px 88px;
}
.landing-page #section-preview .preview-header {
    margin-bottom: 56px;
}
.landing-page #section-preview .preview-header h2 {
    font-size: clamp(28px, 3vw, 36px);
}
.landing-page #section-preview .preview-showcase {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 84px;
}
.landing-page #section-preview .preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}
.landing-page #section-preview .preview-row-alt {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.landing-page #section-preview .preview-row-alt .preview-media {
    order: 2;
}
.landing-page #section-preview .preview-row-alt .preview-copy {
    order: 1;
}
.landing-page #section-preview .preview-media {
    border-radius: 22px;
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid #1f1f1f;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 10;
}
.landing-page #section-preview .preview-visual {
    width: 100%;
    height: 100%;
    display: block;
}
.landing-page #section-preview .preview-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.landing-page #section-preview .preview-index {
    color: #4a75e4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.landing-page #section-preview .preview-index span {
    color: #6a6a6a;
    font-weight: 600;
}
.landing-page #section-preview .preview-copy h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 750;
    letter-spacing: -0.03em;
}
.landing-page #section-preview .preview-copy p {
    margin: 0 0 8px;
    color: #8a8a8a;
    font-size: 16px;
}
.landing-page #section-preview .preview-gallery-link {
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 2px;
}
.landing-page #section-preview .preview-gallery-link:hover {
    color: #4a75e4;
    border-bottom-color: #4a75e4;
}
@media (max-width: 860px) {
    .landing-page #section-preview .preview-row,
    .landing-page #section-preview .preview-row-alt {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .landing-page #section-preview .preview-row-alt .preview-media,
    .landing-page #section-preview .preview-row-alt .preview-copy {
        order: 0;
    }
}

/* landing-config-v1 : photos preview / scripts depuis config/landing.json */
.landing-page #section-preview .preview-media {
    position: relative;
}
.landing-page #section-preview .preview-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.landing-page #section-preview .preview-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 30% 25%, rgba(74, 117, 228, 0.28), transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(74, 117, 228, 0.14), transparent 50%),
        linear-gradient(135deg, #0f1424 0%, #0a0a0a 70%);
}
.landing-page #section-preview .preview-empty span {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}
.landing-page #section-preview .preview-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 8px;
}
.landing-page #section-preview .preview-thumb {
    width: 64px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    background: #0c0c0c;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.landing-page #section-preview .preview-thumb:hover,
.landing-page #section-preview .preview-thumb.active {
    opacity: 1;
    border-color: #4a75e4;
}
.landing-page #section-preview .preview-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.landing-page #section-scripts .script-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Dashboard : liste réelle des joueurs */
.players-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.players-row-id {
    color: #7a7a7a;
    min-width: 34px;
    font-variant-numeric: tabular-nums;
}
.players-row-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e6e6e6;
}
.players-row-uid {
    color: #7a7a7a;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Statistiques : graphiques et listes réels */
.stats-chart-svg {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 22px;
    bottom: 19px;
    width: calc(100% - 16px);
    height: calc(100% - 41px);
    overflow: visible;
}
.stats-chart-max {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 11px;
    color: #6a6a6a;
}
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 2px;
    overflow-y: auto;
}
.stats-list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.stats-list-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e6e6e6;
}
.stats-list-mid,
.stats-list-right {
    color: #7a7a7a;
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Aperçu Loading screen : bouton lecture / pause */
.cfg-load-preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 10, 12, 0.62);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.2s ease, transform 0.18s ease;
}
.cfg-load-preview-play[hidden] { display: none; }
.cfg-load-preview-play .fa-play { margin-left: 3px; }
.cfg-load-preview-play:hover,
.cfg-load-preview-play:focus-visible {
    background: #4a75e4;
    border-color: #4a75e4;
    transform: scale(1.06);
    outline: none;
}
.cfg-load-preview.is-playing .cfg-load-preview-play { opacity: 0; }
.cfg-load-preview.is-playing:hover .cfg-load-preview-play,
.cfg-load-preview.is-playing .cfg-load-preview-play:focus-visible { opacity: 1; }
.cfg-load-preview-yt {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* ===== Identity banner (Configuration > General) - FiveM server-info layout ===== */
/* Scoped so the later Identifiants .cfg-id-row grid (3 columns) no longer leaks into this banner. */
#cfg-identity-banner .cfg-identity-right .cfg-id-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 8px;
    padding: 0;
    border-top: none;
    min-width: 0;
}
#cfg-identity-banner .cfg-identity-right .cfg-id-row > * {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
}
#cfg-identity-banner .cfg-identity-right .cfg-id-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
#cfg-identity-banner .cfg-identity-right .cfg-id-row-head strong {
    margin-left: auto;
    text-align: right;
}
#cfg-identity-banner .cfg-identity-right .cfg-res-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
}
#cfg-identity-banner .cfg-identity-right .cfg-chip {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
#cfg-identity-banner .cfg-identity-right .cfg-show-all {
    white-space: nowrap;
    flex-shrink: 0;
}
#cfg-identity-banner .cfg-identity-right .cfg-tag-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    height: auto;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
}
#cfg-identity-banner .cfg-identity-right .cfg-tag-line:empty {
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    margin-top: 2px;
}
#cfg-identity-banner #cfg-gen-details-hint {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
#cfg-identity-banner #cfg-gen-details-hint .cfg-detail-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.4;
}
#cfg-identity-banner #cfg-gen-details-hint .cfg-detail-key {
    color: #8a8a8a;
    flex-shrink: 0;
}
#cfg-identity-banner #cfg-gen-details-hint .cfg-detail-value {
    color: #cfcfcf;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}
