/* ===========================
   FIVESTARS RP - STYLE CSS
   ===========================
   Theme: Cinema GTA (contraste + immersion)
   =========================== */

/* ===========================
   RESET & BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #e39b43;
    --accent-deep: #c97d26;
    --accent-soft: #f3c98f;

    --text-dark: #253142;
    --text-light: #677684;

    --bg-white: #ffffff;
    --bg-light: #ecf0f1;

    --cinema-dark: #0d1723;
    --cinema-mid: #152233;
    --cinema-blue: #223348;

    --shadow-soft: 0 12px 32px rgba(31, 46, 64, 0.10);
    --shadow-strong: 0 20px 44px rgba(31, 46, 64, 0.18);

    --border-radius: 12px;
    --transition: all 0.32s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 7% -10%, rgba(227, 155, 67, 0.26) 0%, rgba(227, 155, 67, 0) 34%),
        radial-gradient(circle at 98% 2%, rgba(20, 34, 51, 0.24) 0%, rgba(20, 34, 51, 0) 37%),
        radial-gradient(circle at 95% 92%, rgba(17, 27, 40, 0.16) 0%, rgba(17, 27, 40, 0) 32%),
        linear-gradient(180deg, #f6f9fc 0%, #edf3f8 44%, #e7edf3 100%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-soft));
    box-shadow: 0 6px 14px rgba(227, 155, 67, 0.25);
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-deep) 100%);
    box-shadow: 0 10px 24px rgba(227, 155, 67, 0.33);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #edaa58 0%, var(--accent-deep) 100%);
    box-shadow: 0 16px 28px rgba(227, 155, 67, 0.36);
}

.btn-secondary {
    color: var(--bg-white);
    background: linear-gradient(135deg, #2f4258 0%, #1f2c3b 100%);
    box-shadow: 0 10px 24px rgba(31, 44, 59, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #395068 0%, #1f2c3b 100%);
}

.btn-outline {
    color: var(--accent-color);
    border: 1.5px solid rgba(227, 155, 67, 0.72);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
}

.btn-outline:hover {
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-deep) 100%);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(125deg, rgba(13, 23, 35, 0.94) 0%, rgba(24, 37, 53, 0.84) 100%);
    border-bottom: 1px solid rgba(227, 155, 67, 0.24);
    box-shadow: 0 14px 30px rgba(13, 23, 35, 0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(247, 250, 253, 0.96);
}

.navbar-logo-text {
    letter-spacing: 0.01em;
}

.navbar-logo-badge {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(135deg, rgba(227, 155, 67, 0.34) 0%, rgba(201, 125, 38, 0.42) 100%);
    border: 1px solid rgba(227, 155, 67, 0.45);
    border-radius: 999px;
    padding: 3px 8px;
}

.navbar-logo img {
    height: 46px;
    width: auto;
    transform-origin: center;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
    animation: logoBreathe 5.2s ease-in-out infinite;
}

.navbar-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar-menu a {
    position: relative;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 500;
    color: rgba(245, 249, 252, 0.9);
    transition: var(--transition);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-soft));
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--accent-color);
    background: rgba(227, 155, 67, 0.1);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    transform: scaleX(1);
}

/* Bouton boutique navbar */
.navbar-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e39b43 0%, #f7c160 100%);
    color: #0d1723;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 14px rgba(227, 155, 67, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    flex-shrink: 0;
}

.navbar-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(227, 155, 67, 0.55);
    filter: brightness(1.08);
}

.navbar-shop-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(227, 155, 67, 0.3);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    border-radius: 2px;
    background: rgba(245, 249, 252, 0.95);
    transition: var(--transition);
}

.auth-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-login-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-loading {
    color: rgba(245, 249, 252, 0.9);
    font-size: 0.88rem;
}

.auth-login-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
}

.auth-login-btn-dev {
    border-color: rgba(227, 155, 67, 0.68);
    background: rgba(255, 255, 255, 0.88);
}

.auth-lock-icon {
    position: relative;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.auth-lock-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -9px;
    width: 8px;
    height: 7px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
}

.auth-user-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 4px 6px;
    border: 1px solid rgba(227, 155, 67, 0.28);
    background: rgba(255, 255, 255, 0.08);
    max-width: 320px;
}

.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.auth-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    overflow: hidden;
}

.auth-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(248, 251, 254, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-role-badge {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(227, 155, 67, 0.3);
    border-radius: 999px;
    width: fit-content;
    padding: 1px 7px;
    margin-top: 1px;
}

.auth-tag {
    display: none;
}

.auth-logout-btn {
    padding: 5px 9px;
    font-size: 0.68rem;
    color: rgba(248, 251, 254, 0.95);
    border-color: rgba(227, 155, 67, 0.6);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-logout-btn:hover {
    color: var(--bg-white);
}

.auth-admin-btn {
    padding: 5px 10px;
    font-size: 0.68rem;
    box-shadow: 0 8px 18px rgba(227, 155, 67, 0.28);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: 74px;
    padding: 150px 0 100px;
    text-align: center;
    color: var(--bg-white);
    background:
        radial-gradient(circle at 14% 16%, rgba(227, 155, 67, 0.54) 0%, rgba(227, 155, 67, 0) 34%),
        radial-gradient(circle at 84% 74%, rgba(227, 155, 67, 0.36) 0%, rgba(227, 155, 67, 0) 42%),
        linear-gradient(132deg, #09131f 0%, #162436 38%, #1b2d42 63%, #0f1928 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.05) 68%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.52) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.34;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, rgba(0, 0, 0, 0.03) 1px 2px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 24%, rgba(0, 0, 0, 0.25) 100%);
    animation: filmGrainDrift 9s steps(8, end) infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    position: relative;
    overflow: hidden;
    max-width: 240px;
    margin: 0 auto 30px;
    padding: 18px 22px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    animation: logoFloat 6.5s ease-in-out infinite;
}

.hero-logo::after {
    content: '';
    position: absolute;
    inset: -35% auto -35% -90%;
    width: 42%;
    transform: rotate(18deg);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0) 100%);
    animation: logoSweep 6.8s linear infinite;
}

.hero-logo img {
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
    animation: logoPulse 4.8s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    text-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   CARDS
   =========================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: linear-gradient(168deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-soft));
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 38%);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    border-radius: 16px;
    color: var(--accent-color);
    background: linear-gradient(150deg, rgba(227, 155, 67, 0.2), rgba(227, 155, 67, 0.08));
    box-shadow: inset 0 0 0 1px rgba(227, 155, 67, 0.24);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-description {
    color: var(--text-light);
    line-height: 1.7;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    filter: contrast(1.08) saturate(1.02);
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

/* ===========================
   TEAM CARDS
   =========================== */
.team-section {
    margin-bottom: 60px;
}

.team-section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-color);
    border: 1px solid rgba(227, 155, 67, 0.28);
    background: linear-gradient(145deg, rgba(227, 155, 67, 0.18), rgba(227, 155, 67, 0.05));
    box-shadow: 0 12px 22px rgba(227, 155, 67, 0.18);
}

.team-avatar-discord {
    width: 68px;
    height: 68px;
    padding: 2px;
    font-size: 1.6rem;
    background: #ffffff;
    border: 2px solid rgba(227, 155, 67, 0.55);
    box-shadow: 0 8px 14px rgba(13, 23, 35, 0.14);
}

.team-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.team-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-action-btn {
    border: 1px solid rgba(227, 155, 67, 0.65);
    background: rgba(227, 155, 67, 0.1);
    color: #9f5f1f;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.team-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(227, 155, 67, 0.2);
}

.team-action-btn.danger {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.45);
    background: rgba(180, 35, 24, 0.08);
}

.team-action-btn.danger:hover {
    background: rgba(180, 35, 24, 0.16);
}

.admin-toolbar {
    padding-top: 26px;
    padding-bottom: 26px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.grade-ids-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grade-ids-textarea {
    min-height: 140px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .grade-ids-grid {
        grid-template-columns: 1fr;
    }
}

.admin-hint {
    margin-top: 8px;
    color: var(--text-light);
    line-height: 1.6;
}


.sync-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
}

.sync-status.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.sync-status.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.sync-status p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.modal-note {
    margin-top: -2px;
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.92rem;
    text-align: center;
}

.team-empty-card {
    max-width: 640px;
    margin: 0 auto;
}

/* ===========================
   FORMS
   =========================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d8e0e8;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(227, 155, 67, 0.14);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-required {
    color: var(--accent-color);
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ===========================
   TABLES
   =========================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
    box-shadow: var(--shadow-soft);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.table-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.table-search {
    position: relative;
    max-width: 300px;
    flex: 1;
}

.table-search input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #d8e0e8;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.table-search::after {
    content: 'Ã°Å¸â€Â';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.table-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-light);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--bg-white);
    background: var(--accent-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(132deg, #1a2a3d 0%, #213549 100%);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.table th {
    font-weight: 600;
    color: rgba(246, 250, 253, 0.95);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(227, 155, 67, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ===========================
   MODALS
   =========================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: var(--shadow-strong);
    animation: modalSlideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #28a745;
}

.modal-icon.error {
    color: #dc3545;
}

.modal-icon.info {
    color: var(--accent-color);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.modal-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.admin-console-modal-content {
    max-width: 700px;
}

.admin-console-actions {
    display: grid;
    gap: 10px;
}

.admin-console-action {
    text-align: left;
    border: 1px solid rgba(37, 49, 66, 0.14);
    border-radius: 10px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-console-action strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.94rem;
    margin-bottom: 4px;
}

.admin-console-action span {
    display: block;
    color: var(--text-light);
    font-size: 0.84rem;
}

.admin-console-action:hover {
    border-color: rgba(227, 155, 67, 0.6);
    box-shadow: 0 8px 20px rgba(37, 49, 66, 0.1);
    transform: translateY(-1px);
}

.admin-console-empty {
    margin: 0;
    border: 1px dashed rgba(37, 49, 66, 0.24);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.admin-console-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.admin-console-link {
    border-radius: 999px;
    border: 1px solid rgba(227, 155, 67, 0.6);
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--accent-deep);
    background: rgba(255, 255, 255, 0.88);
}

.admin-console-link:hover {
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-deep) 100%);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    position: relative;
    overflow: hidden;
    padding: 35px 0 20px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(145deg, #131f2d 0%, #1f3144 58%, #162638 100%);
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 15%, rgba(227, 155, 67, 0.22) 0%, rgba(227, 155, 67, 0) 32%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-brand h3 {
    color: var(--bg-white);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===========================
   FEATURES / ABOUT / CTA
   =========================== */
.features {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about {
    position: relative;
    overflow: hidden;
    color: rgba(245, 249, 253, 0.94);
    background: linear-gradient(132deg, #111b28 0%, #1c2a3d 52%, #152231 100%);
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 30%, rgba(227, 155, 67, 0.24) 0%, rgba(227, 155, 67, 0) 28%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 42%);
}

.about .container {
    position: relative;
    z-index: 1;
}

.about .section-title {
    color: rgba(248, 251, 254, 0.98);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(229, 236, 244, 0.9);
    margin-bottom: 20px;
}

.cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 20px;
    color: var(--bg-white);
    background: linear-gradient(132deg, #e39b43 0%, #d4832e 52%, #c67226 100%);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.1) 74%, rgba(255, 255, 255, 0) 100%);
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===========================
   NEWS
   =========================== */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card .card-footer {
    margin-top: auto;
}

.news-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-light);
}

/* ===========================
   ARTICLE PAGE
   =========================== */
.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: var(--shadow-soft);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ===========================
   LEGAL PAGE
   =========================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    padding: 50px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: var(--shadow-soft);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.legal-content ul {
    list-style: disc;
    margin-left: 30px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ===========================
   ACTUALITÃƒâ€°S - ADMIN BAR
   =========================== */
.actualites-admin-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.actualites-loading,
.actualites-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===========================
   ACTUALITÃƒâ€°S - NEWS CARDS
   =========================== */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card > div:first-of-type {
    flex: 1;
}

.news-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-soft));
    flex-shrink: 0;
}

.news-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.news-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.news-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 1rem;
    min-width: auto;
}

.btn-danger {
    background: linear-gradient(140deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(140deg, #c82333 0%, #bd2130 100%);
}

/* ===========================
   MODAL ACTUALITÃƒâ€° - STYLE
   =========================== */
.modal-actualite-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-confirm-content {
    max-width: 500px;
}

.form-actualite {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(37, 49, 66, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(227, 155, 67, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* ===========================
   IMAGE UPLOAD
   =========================== */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-mode-toggle {
    display: flex;
    gap: 10px;
    background: var(--bg-light);
    padding: 5px;
    border-radius: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
}

.toggle-btn:hover {
    background: white;
    color: var(--text-dark);
}

.toggle-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.image-mode {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-mode input[type="text"] {
    padding: 12px 16px;
    border: 1px solid rgba(37, 49, 66, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.image-mode input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(227, 155, 67, 0.1);
}

.image-upload-container input[type="file"] {
    display: none;
}

.image-preview {
    width: 100%;
    max-width: 400px;
    height: 200px;
    border: 2px dashed rgba(37, 49, 66, 0.15);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-light);
    margin-top: 10px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview.empty {
    color: var(--text-light);
}

.image-preview.empty::before {
    content: 'Ã°Å¸â€“Â¼Ã¯Â¸Â Aucune image sÃƒÂ©lectionnÃƒÂ©e';
}

/* ===========================
   Ãƒâ€°DITEUR RICHE
   =========================== */
.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid rgba(37, 49, 66, 0.15);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 6px 12px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.editor-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent-color);
}

.editor-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.editor-separator {
    width: 1px;
    background: rgba(37, 49, 66, 0.15);
    margin: 0 5px;
}

.editor-color-picker {
    width: 40px;
    height: 32px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    border-radius: 4px;
    cursor: pointer;
}

.editor-content {
    min-height: 300px;
    padding: 16px;
    border: 1px solid rgba(37, 49, 66, 0.15);
    border-radius: 0 0 8px 8px;
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 400px;
}

.editor-content:focus {
    outline: none;
    border-color: var(--accent-color);
}

.editor-content:empty::before {
    content: attr(placeholder);
    color: #999;
}

.editor-content h2 {
    font-size: 1.5rem;
    margin: 15px 0 10px;
    font-weight: 600;
}

.editor-content h3 {
    font-size: 1.25rem;
    margin: 12px 0 8px;
    font-weight: 600;
}

.editor-content p {
    margin: 10px 0;
}

.editor-content ul,
.editor-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

.editor-content li {
    margin: 5px 0;
}

/* ===========================
   EMOJI MODAL
   =========================== */
.modal-emoji-content {
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
}

.emoji-categories {
    display: flex;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 2px solid var(--bg-light);
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.emoji-category-btn {
    padding: 8px 12px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-dark);
    flex: 1;
    min-width: 90px;
}

.emoji-category-btn:hover {
    background: var(--bg-light);
}

.emoji-category-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.emoji-grid-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
}

.emoji-category-content {
    display: none;
}

.emoji-category-content[style*="display: block"] {
    display: block !important;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.emoji-item {
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
    background: white;
}

.emoji-item:hover {
    background: var(--accent-soft);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(227, 155, 67, 0.3);
}

/* ===========================
   PRÃƒâ€°VISUALISATION
   =========================== */
.actualite-preview {
    pointer-events: none;
    margin-top: 10px;
}

.actualite-preview .card-description {
    max-height: 200px;
    overflow-y: auto;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .navbar-container {
        min-height: 70px;
        padding: 10px 16px;
    }

    .navbar-logo {
        font-size: 1.15rem;
    }

    .navbar-logo img {
        height: 40px;
    }

    .navbar-logo-badge {
        display: none;
    }

    .auth-area {
        margin-left: 0;
    }

    .auth-login-btn {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .auth-user-card {
        padding: 5px;
        gap: 6px;
    }

    .auth-meta {
        display: none;
    }

    .auth-logout-btn {
        display: none;
    }

    .auth-admin-btn {
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        padding: 30px;
        flex-direction: column;
        background: linear-gradient(160deg, rgba(13, 23, 35, 0.96) 0%, rgba(26, 40, 56, 0.95) 100%);
        border-top: 1px solid rgba(227, 155, 67, 0.24);
        box-shadow: 0 14px 28px rgba(37, 49, 66, 0.12);
        backdrop-filter: blur(10px);
        transition: var(--transition);
        gap: 14px;
    }

    .navbar-menu a {
        width: 100%;
        text-align: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-shop-btn {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        margin-top: 70px;
        padding: 120px 0 80px;
    }

    .hero-logo {
        max-width: 210px;
        padding: 14px 16px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-search {
        max-width: 100%;
    }

    .table-container {
        padding: 20px;
    }

    .team-actions {
        gap: 8px;
    }

    .team-action-btn {
        width: 100%;
    }

    .form-card,
    .modal-content,
    .article-content,
    .legal-content {
        padding: 30px 20px;
    }

    .article-title {
        font-size: 2rem;
    }

    /* Responsive actualitÃƒÂ©s */
    .image-mode-toggle {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
    }

    .emoji-categories {
        gap: 3px;
    }

    .emoji-category-btn {
        font-size: 0.75rem;
        padding: 6px 8px;
        min-width: auto;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .emoji-item {
        font-size: 1.5rem;
    }

    .modal-emoji-content {
        max-width: 95%;
    }
}

@media (max-width: 1050px) {
    .navbar-menu {
        gap: 18px;
    }

    .auth-name,
    .auth-tag {
        display: none;
    }

    .auth-role-badge {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .auth-login-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 0;
        border-radius: 9px;
    }

    .card {
        padding: 20px;
    }

    .table th,
    .table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ===========================
   LOADING & ANIMATIONS
   =========================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-light);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes filmGrainDrift {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 180px 220px, 0 0;
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes logoPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
    }
    50% {
        transform: scale(1.035);
        filter: drop-shadow(0 18px 28px rgba(227, 155, 67, 0.4));
    }
}

@keyframes logoSweep {
    0% {
        left: -90%;
    }
    100% {
        left: 150%;
    }
}

@keyframes logoBreathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
    }
    50% {
        transform: translateY(-2px) scale(1.035);
        filter: drop-shadow(0 10px 16px rgba(227, 155, 67, 0.36));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::after,
    .navbar-logo img,
    .hero-logo,
    .hero-logo::after,
    .hero-logo img,
    .card,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}

/* ===========================
   VOTES TOPSERVEURS PAGE
   =========================== */
.votes-section {
    padding: 60px 0;
}

/* --- Refonte unified-v3 --- */

/* Pills dans le hero */
body.site-premium-page.unified-v3 .votes-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

body.site-premium-page.unified-v3 .votes-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
}

body.site-premium-page.unified-v3 .votes-hero-pill strong {
    color: #ffffff;
    font-weight: 800;
}

body.site-premium-page.unified-v3 .votes-hero-pill--month {
    background: rgba(227, 155, 67, 0.15);
    border-color: rgba(227, 155, 67, 0.35);
    color: rgba(255, 235, 190, 0.95);
}

body.site-premium-page.unified-v3 .votes-hero-pill--top {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
    color: rgba(255, 240, 160, 0.95);
}

/* CTA row */
body.site-premium-page.unified-v3 .votes-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1e30 100%);
    border: 1px solid rgba(227, 155, 67, 0.25);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
}

body.site-premium-page.unified-v3 .votes-cta-block {
    flex: 1;
    min-width: 0;
}

body.site-premium-page.unified-v3 .votes-cta-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #e39b43;
    margin: 0 0 6px;
}

body.site-premium-page.unified-v3 .votes-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

body.site-premium-page.unified-v3 .votes-cta-desc {
    color: rgba(220, 232, 245, 0.75);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 540px;
}

body.site-premium-page.unified-v3 .votes-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 12px 28px;
}

body.site-premium-page.unified-v3 .votes-cta-deco {
    flex-shrink: 0;
    opacity: 0.18;
    font-size: 8rem;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

body.site-premium-page.unified-v3 .votes-cta-trophy {
    display: block;
}

/* Grille principale */
body.site-premium-page.unified-v3 .votes-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

body.site-premium-page.unified-v3 .module-card-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(37, 49, 66, 0.1);
}

/* Leaderboard */
body.site-premium-page.unified-v3 .leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.site-premium-page.unified-v3 .leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid rgba(37, 49, 66, 0.08);
}

body.site-premium-page.unified-v3 .leaderboard-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 100%);
    border-color: rgba(255, 215, 0, 0.35);
}

body.site-premium-page.unified-v3 .leaderboard-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.04) 100%);
    border-color: rgba(192, 192, 192, 0.35);
}

body.site-premium-page.unified-v3 .leaderboard-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12) 0%, rgba(205, 127, 50, 0.04) 100%);
    border-color: rgba(205, 127, 50, 0.3);
}

body.site-premium-page.unified-v3 .leaderboard-rank {
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 32px;
    text-align: center;
    color: #6b82a0;
}

body.site-premium-page.unified-v3 .leaderboard-item.rank-1 .leaderboard-rank,
body.site-premium-page.unified-v3 .leaderboard-item.rank-2 .leaderboard-rank,
body.site-premium-page.unified-v3 .leaderboard-item.rank-3 .leaderboard-rank {
    color: inherit;
}

body.site-premium-page.unified-v3 .leaderboard-info {
    flex: 1;
    min-width: 0;
}

body.site-premium-page.unified-v3 .leaderboard-pseudo {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.site-premium-page.unified-v3 .leaderboard-votes {
    font-size: 0.76rem;
    color: #6b82a0;
    margin-top: 1px;
}

/* Votes récents */
body.site-premium-page.unified-v3 .recent-votes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.site-premium-page.unified-v3 .recent-vote-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid rgba(37, 49, 66, 0.08);
}

body.site-premium-page.unified-v3 .recent-vote-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(227, 155, 67, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

body.site-premium-page.unified-v3 .recent-vote-info {
    flex: 1;
    min-width: 0;
}

body.site-premium-page.unified-v3 .recent-vote-pseudo {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a2a3a;
}

body.site-premium-page.unified-v3 .recent-vote-time {
    font-size: 0.75rem;
    color: #6b82a0;
}

body.site-premium-page.unified-v3 .recent-vote-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

@media (max-width: 760px) {
    body.site-premium-page.unified-v3 .votes-main-grid {
        grid-template-columns: 1fr;
    }

    body.site-premium-page.unified-v3 .votes-cta-row {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
    }

    body.site-premium-page.unified-v3 .votes-cta-deco {
        display: none;
    }

    body.site-premium-page.unified-v3 .votes-cta-desc {
        max-width: none;
    }
}



.vote-cta-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4883e 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(227, 155, 67, 0.25);
}

.vote-cta-content h2 {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.vote-cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-vote-primary {
    background: var(--bg-white);
    color: var(--accent-color);
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.btn-vote-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.votes-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vote-stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.vote-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vote-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.vote-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.vote-stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.votes-leaderboard-card,
.votes-recent-card {
    margin-bottom: 30px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(to right, rgba(227, 155, 67, 0.05), transparent);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: linear-gradient(to right, rgba(227, 155, 67, 0.1), transparent);
    transform: translateX(4px);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.15), transparent);
    border-left-color: #FFD700;
}

.leaderboard-item.rank-2 {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.15), transparent);
    border-left-color: #C0C0C0;
}

.leaderboard-item.rank-3 {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.15), transparent);
    border-left-color: #CD7F32;
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.rank-1 .leaderboard-rank {
    color: #FFD700;
}

.rank-2 .leaderboard-rank {
    color: #C0C0C0;
}

.rank-3 .leaderboard-rank {
    color: #CD7F32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-pseudo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.leaderboard-votes {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.recent-votes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.recent-vote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.recent-vote-item:hover {
    background: rgba(227, 155, 67, 0.08);
    transform: scale(1.02);
}

.recent-vote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.recent-vote-info {
    flex: 1;
    min-width: 0;
}

.recent-vote-pseudo {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-vote-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.recent-vote-badge {
    font-size: 1.2rem;
    color: #28a745;
    flex-shrink: 0;
}

.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.error-state {
    color: #dc3545;
}

@media (max-width: 768px) {
    .vote-cta-card {
        padding: 30px 20px;
    }

    .vote-cta-content h2 {
        font-size: 1.5rem;
    }

    .vote-cta-content p {
        font-size: 1rem;
    }

    .votes-stats-grid {
        grid-template-columns: 1fr;
    }

    .recent-votes-list {
        grid-template-columns: 1fr;
        max-height: 500px;
    }

    .leaderboard-rank {
        min-width: 40px;
        font-size: 1.2rem;
    }

    .leaderboard-pseudo {
        font-size: 1rem;
    }
}

/* ===========================
   SCROLL TO TOP BUTTON
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    font-size: 1.5rem;
    color: var(--bg-white);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-deep) 100%);
    box-shadow: 0 4px 15px rgba(227, 155, 67, 0.3);
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #edaa58 0%, var(--accent-deep) 100%);
}

.scroll-top.active {
    display: flex;
}


/* ===========================
   HOME PAGE - HERO SECTION
   =========================== */
.hero-home {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1723 0%, #1a2332 50%, #0f1a2a 100%);
    overflow: hidden;
    padding: 60px 0;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(227, 155, 67, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(227, 155, 67, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0px, transparent 1px, transparent 2px, rgba(0,0,0,.03) 3px),
        repeating-linear-gradient(90deg, rgba(0,0,0,.03) 0px, transparent 1px, transparent 2px, rgba(0,0,0,.03) 3px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-home-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e39b43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hero-home-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Server Status Card */
.server-status-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.server-status-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.player-count {
    color: #e39b43;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: auto;
}

.server-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-online {
    background: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.status-online::before {
    background: #28a745;
}

.status-offline {
    background: #dc3545;
    box-shadow: 0 0 10px #dc3545;
}

.status-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.server-name {
    color: #e39b43;
    font-weight: 600;
    font-size: 1.1rem;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.server-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.server-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(227, 155, 67, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.stat-info {
    flex: 1;
}

.stat-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.server-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-connect-server {
    position: relative;
    flex: 1 1 100%;
    min-width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4883e 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(227, 155, 67, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-connect-server::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-connect-server:hover::before {
    width: 400px;
    height: 400px;
}

.btn-connect-server:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 155, 67, 0.4);
}

.btn-connect-server:active {
    transform: translateY(-1px);
}

.btn-connect-server .btn-icon {
    font-size: 1.2rem;
    z-index: 1;
}

.btn-join,
.btn-whitelist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
}

.btn-join {
    background: linear-gradient(135deg, #e39b43 0%, #c97d26 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(227, 155, 67, 0.3);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 155, 67, 0.4);
}

.btn-whitelist {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whitelist:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1rem;
}

.hero-scroll-hint {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Stats Section */
.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(227, 155, 67, 0.14);
    border: 1px solid rgba(227, 155, 67, 0.24);
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.stats-intro,
.features-intro {
    text-align: center;
    margin-bottom: 34px;
}

.stats-intro .section-title,
.features-intro .section-title {
    margin-bottom: 0;
}

.stats-intro .section-title::after,
.features-intro .section-title::after {
    margin-top: 14px;
}

.stats-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(227, 155, 67, 0.1) 0%, rgba(227, 155, 67, 0) 40%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.stat-card {
    text-align: left;
    padding: 24px;
    background: linear-gradient(168deg, #ffffff 0%, #f7faff 100%);
    border-radius: 16px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    box-shadow: 0 12px 30px rgba(17, 27, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-soft));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(17, 27, 39, 0.12);
    border-color: rgba(227, 155, 67, 0.35);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-card-icon {
    font-size: 1.45rem;
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(227, 155, 67, 0.2), rgba(227, 155, 67, 0.06));
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(37, 49, 66, 0.06);
    border: 1px solid rgba(37, 49, 66, 0.12);
    color: rgba(37, 49, 66, 0.75);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-card-value {
    font-size: clamp(1.8rem, 3.2vw, 2.3rem);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stat-card-label {
    color: var(--text-light);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.about-main {
    background: linear-gradient(140deg, #18263a 0%, #223853 52%, #1f3148 100%);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 38px rgba(13, 23, 35, 0.22);
}

.about-main .section-title {
    color: #ffffff;
}

.section-title-left {
    text-align: left;
}

.section-title-left::after {
    margin-left: 0;
    margin-right: 0;
    background: linear-gradient(90deg, #ffd9ae, #e39b43);
    box-shadow: none;
}

.about-main-text {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    margin-bottom: 22px;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-highlight {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.about-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    box-shadow: 0 10px 26px rgba(17, 27, 39, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 30px rgba(17, 27, 39, 0.11);
    border-color: rgba(227, 155, 67, 0.35);
}

.about-card-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-deep));
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about-card-text {
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* Features Section */
.features-section {
    background:
        radial-gradient(circle at 90% 0%, rgba(227, 155, 67, 0.08) 0%, rgba(227, 155, 67, 0) 38%),
        #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    padding: 26px;
    border-radius: 16px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    box-shadow: 0 12px 30px rgba(17, 27, 39, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(17, 27, 39, 0.12);
    border-color: rgba(227, 155, 67, 0.35);
}

.feature-card-icon {
    font-size: 1.4rem;
    margin-bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(227, 155, 67, 0.2), rgba(227, 155, 67, 0.06));
}

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card-description {
    color: var(--text-light);
    line-height: 1.65;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0d1723 0%, #1a2332 50%, #0f1a2a 100%);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(227, 155, 67, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(227, 155, 67, 0.15) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 16px 40px;
    background: linear-gradient(135deg, #e39b43 0%, #c97d26 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(227, 155, 67, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(227, 155, 67, 0.5);
}

.btn-cta-secondary {
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .server-status-card {
        padding: 20px;
    }

    .server-stats {
        grid-template-columns: 1fr;
    }

    .server-actions {
        gap: 8px;
    }

    .btn-connect-server {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-connect-server .btn-icon {
        font-size: 1rem;
    }

    .btn-join,
    .btn-whitelist {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .stats-intro,
    .features-intro {
        margin-bottom: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 18px 14px;
    }

    .stat-card-value {
        font-size: 1.6rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-main {
        padding: 24px;
    }

    .section-title-left {
        text-align: center;
    }

    .section-title-left::after {
        margin-left: auto;
        margin-right: auto;
    }

    .about-content-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   MODULE PAGES (MAP / STATS / GALERIE)
   =========================== */
.module-hero {
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.module-hero-map {
    background:
        radial-gradient(circle at 14% 12%, rgba(227, 155, 67, 0.32) 0%, rgba(227, 155, 67, 0) 40%),
        linear-gradient(128deg, #101f30 0%, #1d3046 52%, #273e58 100%);
}

.module-hero-stats {
    background:
        radial-gradient(circle at 85% 10%, rgba(227, 155, 67, 0.34) 0%, rgba(227, 155, 67, 0) 42%),
        linear-gradient(130deg, #0f1827 0%, #18283c 46%, #243b57 100%);
}

.module-hero-gallery {
    background:
        radial-gradient(circle at 25% 12%, rgba(227, 155, 67, 0.3) 0%, rgba(227, 155, 67, 0) 45%),
        linear-gradient(135deg, #121d2d 0%, #1f2f45 50%, #2b425c 100%);
}

.module-card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(37, 49, 66, 0.09);
    background: linear-gradient(165deg, #ffffff 0%, #f6f9fc 100%);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.module-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.module-card-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Contact */
.contact-hero {
    padding: 138px 0 88px;
}

.contact-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(227, 155, 67, 0.42);
    background: rgba(227, 155, 67, 0.2);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-hero .hero-title {
    max-width: 760px;
    margin: 0 auto 18px;
}

.contact-hero .hero-subtitle {
    max-width: 760px;
    margin-bottom: 30px;
}

.contact-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-hero-actions .btn {
    min-width: 190px;
}

.contact-hub-section {
    background: linear-gradient(180deg, #edf3f8 0%, #f8fbfe 100%);
    padding-top: 72px;
    padding-bottom: 72px;
}

.contact-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.contact-form-card {
    padding: 28px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form-submit {
    width: 100%;
}

.contact-form-note {
    margin-top: 2px;
    color: var(--text-light);
    font-size: 0.84rem;
}

.contact-hub-side {
    display: grid;
    gap: 14px;
}

.contact-quick-card {
    border-radius: 14px;
    border: 1px solid rgba(37, 49, 66, 0.1);
    background: linear-gradient(168deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: grid;
    gap: 12px;
}

.contact-quick-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(227, 155, 67, 0.25), rgba(227, 155, 67, 0.08));
    box-shadow: inset 0 0 0 1px rgba(227, 155, 67, 0.26);
}

.contact-quick-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-quick-text {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.93rem;
}

.contact-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-quick-actions .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.contact-response-card {
    padding: 20px;
}

.contact-response-card .module-card-title {
    margin-bottom: 12px;
}

.contact-response-list {
    display: grid;
    gap: 10px;
}

.contact-response-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-response-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-deep));
    box-shadow: 0 0 0 4px rgba(227, 155, 67, 0.15);
}

.contact-faq-section {
    background: #ffffff;
}

.contact-faq-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-faq-item {
    border: 1px solid rgba(37, 49, 66, 0.1);
    border-radius: 14px;
    background: linear-gradient(168deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 10px 24px rgba(17, 27, 39, 0.06);
    overflow: hidden;
}

.contact-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    padding-right: 44px;
    color: var(--text-dark);
    font-weight: 650;
    position: relative;
}

.contact-faq-item summary::-webkit-details-marker {
    display: none;
}

.contact-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-deep);
    background: rgba(227, 155, 67, 0.16);
}

.contact-faq-item[open] summary::after {
    content: '-';
}

.contact-faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--text-light);
    line-height: 1.65;
}

/* Map */
.map-section {
    padding-top: 70px;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.map-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.map-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(37, 49, 66, 0.14);
    background: rgba(255, 255, 255, 0.9);
}

.map-zoom-controls .btn {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.map-zoom-value {
    min-width: 58px;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.map-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.map-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(37, 49, 66, 0.12);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    background: #fff;
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.map-canvas-card {
    padding: 16px;
}

.rp-map-canvas {
    --map-background-image: none;
    position: relative;
    height: 580px;
    border-radius: 14px;
    border: 1px solid rgba(37, 49, 66, 0.13);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
    background:
        radial-gradient(circle at 18% 25%, rgba(67, 160, 71, 0.22) 0%, rgba(67, 160, 71, 0) 32%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.18) 0%, rgba(76, 175, 80, 0) 30%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 1px,
            rgba(26, 61, 45, 0.03) 1px,
            rgba(26, 61, 45, 0.03) 48px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 1px,
            rgba(26, 61, 45, 0.03) 1px,
            rgba(26, 61, 45, 0.03) 48px
        ),
        linear-gradient(140deg, rgba(38, 71, 63, 0.88) 0%, rgba(46, 93, 77, 0.86) 45%, rgba(54, 107, 86, 0.84) 100%);
}

.rp-map-canvas.is-panning {
    cursor: grabbing;
}

.rp-map-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--map-native-size, 4096px);
    height: var(--map-native-size, 4096px);
    transform-origin: 0 0;
    will-change: transform;
}

.rp-map-image-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--map-background-image);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.rp-map-markers-layer {
    position: absolute;
    inset: 0;
    --map-marker-zoom-scale: 1;
}

.rp-map-canvas:not(.has-background-image) .rp-map-image-layer {
    background-image: none;
}

.map-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    padding: 20px;
    text-align: center;
}

.map-marker {
    position: absolute;
    width: 170px;
    height: 170px;
    transform: translate(-50%, -50%) scale(var(--map-marker-zoom-scale, 1));
    transform-origin: center center;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.map-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.map-marker:hover,
.map-marker.active {
    transform: translate(-50%, -50%) scale(calc(var(--map-marker-zoom-scale, 1) * 1.15));
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.36);
}

.map-marker-job {
    background: #2f80ed;
}

.map-marker-shop {
    background: #27ae60;
}

.map-marker-poi {
    background: #8e44ad;
}

.map-marker-event {
    background: #e67e22;
}

.map-legend {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-pill {
    border-radius: 999px;
    padding: 6px 11px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.legend-job {
    background: #2f80ed;
}

.legend-shop {
    background: #27ae60;
}

.legend-poi {
    background: #8e44ad;
}

.legend-event {
    background: #e67e22;
}

.map-info-card {
    min-height: 400px;
}

.map-selected-empty {
    border: 1px dashed rgba(37, 49, 66, 0.25);
    border-radius: 12px;
    padding: 18px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.map-selected-content {
    border-radius: 12px;
    background: #fff9f0;
    border: 1px solid rgba(227, 155, 67, 0.3);
    padding: 16px;
}

.map-selected-content h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.map-selected-type {
    color: var(--accent-deep);
    margin-bottom: 8px;
    font-weight: 600;
}

.map-help-text {
    margin-top: 18px;
    color: var(--text-light);
    font-size: 0.88rem;
}

.map-editor-panel {
    margin-top: 18px;
    border-top: 1px solid rgba(37, 49, 66, 0.12);
    padding-top: 16px;
}

.map-editor-notice {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 14px;
    border: 1px solid rgba(37, 49, 66, 0.14);
    background: #f7fafc;
    color: var(--text-dark);
}

.map-editor-notice.is-info {
    border-color: rgba(37, 49, 66, 0.2);
    background: #f6f9fc;
}

.map-editor-notice.is-success {
    border-color: rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.1);
    color: #1b7f4c;
}

.map-editor-notice.is-error {
    border-color: rgba(231, 76, 60, 0.32);
    background: rgba(231, 76, 60, 0.1);
    color: #b43428;
}

.map-editor-notice.is-warn {
    border-color: rgba(230, 126, 34, 0.35);
    background: rgba(230, 126, 34, 0.13);
    color: #ad5a17;
}

.map-marker-form {
    display: grid;
    gap: 10px;
}

.map-icon-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.map-icon-key-hint {
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.82rem;
}

.map-marker-coordinates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.map-editor-hint {
    color: var(--text-light);
    font-size: 0.85rem;
}

.map-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-editor-actions .btn {
    padding: 9px 12px;
    font-size: 0.84rem;
}

/* Stats */
.stats-page-section {
    padding-top: 70px;
}

.stats-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.stats-snapshot-list {
    display: grid;
    gap: 10px;
}

.stats-snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(37, 49, 66, 0.1);
    background: #ffffff;
    border-radius: 10px;
    padding: 11px 14px;
    gap: 12px;
}

.stats-snapshot-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stats-snapshot-item strong {
    color: var(--text-dark);
    font-size: 1.02rem;
}

.stats-online {
    color: #2f9e44 !important;
}

.stats-offline {
    color: #d64545 !important;
}

.stats-peaks-list {
    display: grid;
    gap: 10px;
}

.stats-peak-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    background: #f8fbfe;
}

.stats-peak-item strong {
    color: var(--text-dark);
}

.stats-peak-item span,
.stats-peak-item small {
    color: var(--text-light);
}

.stats-peak-empty {
    color: var(--text-light);
    border: 1px dashed rgba(37, 49, 66, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.stats-chart-card {
    margin-bottom: 22px;
}

.stats-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stats-range-buttons {
    display: flex;
    gap: 8px;
}

.stats-range-btn {
    border: 1px solid rgba(37, 49, 66, 0.2);
    background: #fff;
    color: var(--text-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.stats-range-btn:hover,
.stats-range-btn.active {
    border-color: var(--accent-color);
    background: rgba(227, 155, 67, 0.15);
    color: var(--accent-deep);
}

.stats-chart-wrap {
    width: 100%;
    min-height: 320px;
}

#statsChartCanvas {
    width: 100%;
    height: 320px;
    display: block;
}

.stats-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.stats-shot-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(37, 49, 66, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-shot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.stats-shot-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.stats-empty {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   GALERIE COMMUNAUTAIRE
   =========================== */

.gallery-section {
    padding-top: 20px;
}

/* --- Controls bar --- */
.gallery-controls-bar {
    margin-bottom: 18px;
}

.gallery-toolbar {
    padding: 14px 16px;
}

.gallery-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.gallery-tag-btn {
    border: 1px solid rgba(37, 49, 66, 0.22);
    background: #fff;
    color: var(--text-dark);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--transition);
}

.gallery-tag-btn:hover,
.gallery-tag-btn.active {
    border-color: var(--accent-color);
    background: rgba(227, 155, 67, 0.16);
    color: var(--accent-deep);
}

/* --- Slider vedette --- */
.gallery-slider-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    aspect-ratio: 21 / 9;
    min-height: 200px;
    background: #0c1522;
    box-shadow: 0 18px 44px rgba(13, 23, 35, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery-slider-track {
    position: absolute;
    inset: 0;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.62s ease;
    cursor: pointer;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-slide-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 15, 25, 0.78) 100%);
    padding: 36px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.gallery-slide-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-slide-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(227, 155, 67, 0.9);
    color: #fff;
    border-radius: 999px;
    padding: 5px 11px;
}

.gallery-slide-author {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.gallery-slide-zoom {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Slider prev/next */
.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(8, 15, 26, 0.68);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gallery-slider-btn:hover {
    background: rgba(227, 155, 67, 0.88);
    border-color: rgba(227, 155, 67, 0.6);
}

.gallery-slider-prev { left: 14px; }
.gallery-slider-next { right: 14px; }

/* Slider dots */
.gallery-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
}

.gallery-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    padding: 0;
}

.gallery-slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Badge "diaporama" */
.gallery-slider-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(8, 15, 26, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 10px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* --- Grid head --- */
.gallery-grid-head {
    margin-bottom: 16px;
}

.gallery-grid-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 0 0 5px;
}

.gallery-grid-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: var(--text-dark);
    line-height: 1.15;
}

/* --- Grid --- */
.community-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-auto-rows: 200px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(37, 49, 66, 0.1);
    box-shadow: 0 8px 20px rgba(37, 49, 66, 0.1);
    cursor: pointer;
    background: #d7e2ee;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(37, 49, 66, 0.18);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 24, 39, 0.84) 100%);
    padding: 24px 10px 10px;
    transition: opacity 0.22s ease;
}

.gallery-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gallery-item-tags span {
    font-size: 0.73rem;
    font-weight: 600;
    color: #fff;
    background: rgba(227, 155, 67, 0.82);
    border-radius: 999px;
    padding: 4px 8px;
}

/* Zoom icon on hover */
.gallery-item-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
}

.gallery-load-more-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Toggle "Voir toutes les photos" */
.gallery-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 22px 0 0;
}

.gallery-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1.5px solid rgba(37, 49, 66, 0.22);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(37, 49, 66, 0.08);
}

.gallery-toggle-btn:hover {
    background: rgba(227, 155, 67, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-deep);
    box-shadow: 0 6px 20px rgba(227, 155, 67, 0.18);
}

.gallery-toggle-btn--open {
    background: rgba(227, 155, 67, 0.14);
    border-color: var(--accent-color);
    color: var(--accent-deep);
}

.gallery-toggle-icon {
    font-size: 1rem;
}

.gallery-toggle-chevron {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.22s ease;
}

.gallery-grid-section {
    margin-top: 28px;
}

.gallery-empty {
    color: var(--text-light);
    padding: 18px 0;
}

/* ===========================
   MODAL LIGHTBOX
   =========================== */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 22, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.gallery-modal-content {
    position: relative;
    width: min(100%, 1020px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #0c1828;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 1;
}

/* Close */
.gallery-modal-close {
    position: absolute;
    right: 13px;
    top: 11px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(8, 15, 26, 0.72);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease;
}

.gallery-modal-close:hover {
    background: rgba(227, 155, 67, 0.82);
}

/* Prev / Next */
.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(8, 15, 26, 0.68);
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gallery-modal-nav:hover {
    background: rgba(227, 155, 67, 0.88);
    border-color: rgba(227, 155, 67, 0.6);
}

.gallery-modal-prev { left: 14px; }
.gallery-modal-next { right: 14px; }

/* Stage (image container) */
.gallery-modal-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080e1a;
    overflow: hidden;
}

#galleryModalImage {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.22s ease;
}

/* Footer */
.gallery-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 15, 26, 0.6);
    flex-shrink: 0;
}

.gallery-modal-meta {
    min-width: 0;
    flex: 1;
}

.gallery-modal-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.gallery-modal-tags span {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(227, 155, 67, 0.82);
}

.gallery-modal-author {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.gallery-modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gallery-modal-counter {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.84rem;
    white-space: nowrap;
}

.gallery-modal-fullscreen-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.gallery-modal-fullscreen-btn:hover {
    background: rgba(227, 155, 67, 0.72);
}

/* Fullscreen state */
.gallery-modal.is-fullscreen,
.gallery-modal:fullscreen,
.gallery-modal:-webkit-full-screen {
    padding: 0;
}

.gallery-modal.is-fullscreen .gallery-modal-content,
.gallery-modal:fullscreen .gallery-modal-content,
.gallery-modal:-webkit-full-screen .gallery-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
}

.gallery-modal.is-fullscreen #galleryModalImage,
.gallery-modal:fullscreen #galleryModalImage,
.gallery-modal:-webkit-full-screen #galleryModalImage {
    max-height: calc(100vh - 70px);
}

/* ===========================
   ROULETTE RP STYLES
   =========================== */

.roulette-hero {
    padding: 124px 0 72px;
}

.roulette-hero-kicker {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: inline-block;
}

.roulette-section {
    background: linear-gradient(180deg, #f8fbfe 0%, #edf3f8 100%);
    padding: 56px 0 72px;
}

.roulette-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
}

.roulette-panel,
.roulette-result-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #dfe8f1;
}

.roulette-filter-head h2 {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.roulette-filter-head p {
    margin: 0;
    color: var(--text-light);
}

.roulette-filter-grid {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.roulette-filter-btn {
    width: 100%;
    border: 1px solid #d3deea;
    background: #ffffff;
    color: #233247;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.roulette-filter-btn:hover,
.roulette-filter-btn.active {
    border-color: var(--accent-color);
    background: rgba(227, 155, 67, 0.12);
    color: var(--accent-deep);
}

.roulette-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roulette-actions .btn {
    width: 100%;
}

.roulette-meta {
    margin: 12px 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.roulette-result-card {
    position: relative;
    overflow: hidden;
}

.roulette-result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(227, 155, 67, 0.16), transparent 40%);
}

.roulette-result-card.is-generating {
    animation: roulette-card-pop 0.45s ease;
}

@keyframes roulette-card-pop {
    0% { transform: scale(0.985); opacity: 0.75; }
    60% { transform: scale(1.01); opacity: 1; }
    100% { transform: scale(1); }
}

.roulette-result-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.roulette-category-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(227, 155, 67, 0.14);
    border: 1px solid rgba(227, 155, 67, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.roulette-result-kicker {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.roulette-result-head h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
    color: var(--text-dark);
}

.roulette-single-wrap {
    border: 1px solid #dde7f0;
    border-radius: 12px;
    background: #f8fbfe;
    padding: 12px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.roulette-spin-track {
    display: none;
    gap: 8px;
}

.roulette-spin-track.is-active {
    display: grid;
}

.roulette-spin-track span {
    border: 1px solid rgba(227, 155, 67, 0.28);
    background: rgba(227, 155, 67, 0.1);
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 0.82rem;
    color: #4b5e74;
    font-weight: 600;
    transform: translateX(0) scale(0.98);
    opacity: 0.45;
}

.roulette-spin-track.is-active span {
    animation: roulette-chip-jump 0.62s ease-in-out infinite;
}

.roulette-spin-track.is-active span:nth-child(2) {
    animation-delay: 0.08s;
}

.roulette-spin-track.is-active span:nth-child(3) {
    animation-delay: 0.16s;
}

.roulette-spin-track.is-active span:nth-child(4) {
    animation-delay: 0.24s;
}

.roulette-spin-track.is-active span:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes roulette-chip-jump {
    0%,
    100% {
        transform: translateX(0) scale(0.98);
        opacity: 0.45;
    }

    50% {
        transform: translateX(6px) scale(1);
        opacity: 1;
    }
}

.roulette-single-result {
    min-height: 194px;
    border: 1px solid #dbe7f3;
    border-radius: 10px;
    background: #ffffff;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.roulette-single-result.is-hidden {
    display: none;
}

.roulette-single-result.is-revealed {
    animation: roulette-result-reveal 0.42s ease;
}

@keyframes roulette-result-reveal {
    0% {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.roulette-selected-type {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-deep);
    font-weight: 700;
}

.roulette-selected-value {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.02rem;
    white-space: pre-line;
}

.roulette-actions .btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

/* ===========================
   BUSINESS CARD STYLES
   =========================== */

.cards-hero {
    padding: 124px 0 72px;
}

.cards-hero-kicker {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: inline-block;
}

.cards-section {
    background: linear-gradient(180deg, #f8fbfe 0%, #edf3f8 100%);
    padding: 56px 0 72px;
}

.cards-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
}

.cards-editor-panel,
.cards-preview-panel {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid #dfe8f1;
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.cards-panel-title {
    margin: 0 0 14px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.cards-template-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.cards-template-chip {
    border: 1px solid #d3deea;
    border-radius: 999px;
    background: #ffffff;
    color: #233247;
    padding: 6px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cards-template-chip:hover,
.cards-template-chip.active {
    border-color: var(--accent-color);
    background: rgba(227, 155, 67, 0.14);
    color: var(--accent-deep);
}

.cards-color-group {
    margin-bottom: 16px;
}

.cards-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cards-color-label {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-light);
}

.cards-upload-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-light);
}

.cards-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cards-export-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
}

.cards-export-format {
    margin: 0;
}

.cards-status {
    min-height: 1.3em;
    font-size: 0.84rem;
    color: var(--text-light);
}

.cards-status.is-success {
    color: #1a7f41;
}

.cards-status.is-error {
    color: #c1352c;
}

.cards-preview-shell {
    background: linear-gradient(135deg, rgba(227, 155, 67, 0.14), rgba(34, 51, 72, 0.08));
    border-radius: 12px;
    padding: 14px;
}

.business-card {
    --card-accent: #e39b43;
    min-height: 250px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 12px 1fr;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(13, 23, 35, 0.26);
}

.business-card-accent {
    background: var(--card-accent);
}

.business-card-main {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.business-card-identity {
    display: flex;
    gap: 12px;
    align-items: center;
}

.business-card-logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.business-card-identity h3 {
    margin: 0;
    font-size: 1.25rem;
}

.business-card-identity p {
    margin: 4px 0 0;
    opacity: 0.9;
}

.business-card-details {
    display: grid;
    gap: 8px;
}

.business-card-details p {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.92rem;
}

.business-card--executive {
    color: #ffffff;
    background: linear-gradient(135deg, #223348 0%, #0d1723 100%);
}

.business-card--urban {
    color: #ffffff;
    background: linear-gradient(135deg, #2b2d31 0%, #1a1f26 100%);
}

.business-card--night {
    color: #f4f7fb;
    background: linear-gradient(135deg, #10151f 0%, #212b3a 100%);
}

.business-card--classic {
    color: #13253a;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%);
    border-color: #d7e3ef;
}

.business-card--classic .business-card-logo {
    background: #ffffff;
    border-color: #d7e3ef;
}

/* ===========================
   FLYER CREATOR STYLES
   =========================== */

.flyers-hero {
    padding: 124px 0 72px;
}

.flyers-hero-kicker {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: inline-block;
}

.flyers-hero-pills {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flyers-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(227, 155, 67, 0.4);
    background: rgba(227, 155, 67, 0.1);
    color: #fbe4c3;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.flyers-section {
    background: #f0f4f8;
    padding: 48px 0 72px;
}

.flyers-workspace {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- Editor ---- */
.flyers-editor {
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37,49,66,0.07);
    display: flex;
    flex-direction: column;
}

.flyers-section-block {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
}

.flyers-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flyers-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

/* Template cards */
.flyers-tpl-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.flyers-tpl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: 2px solid #e0e8f2;
    border-radius: 9px;
    padding: 7px 3px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: inherit;
    text-align: center;
    line-height: 1.3;
}

.flyers-tpl-card:hover { border-color: var(--accent-color); transform: translateY(-2px); color: var(--text-dark); }
.flyers-tpl-card.active { border-color: var(--accent-color); background: rgba(227,155,67,0.06); color: var(--text-dark); }

.flyers-tpl-thumb {
    width: 30px;
    height: 40px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.flyers-tpl-thumb--annonce    { background: #1a2535; }
.flyers-tpl-thumb--evenement  { background: linear-gradient(160deg, #2a1800, #6a3200); }
.flyers-tpl-thumb--recrutement{ background: #0d1a2e; }
.flyers-tpl-thumb--vente      { background: #0d2818; }
.flyers-tpl-thumb--combat     { background: #1a0000; }

.ftt-bar  { position:absolute;left:0;top:0;bottom:0;width:3px;background:#e39b43; }
.ftt-lines{ position:absolute;top:8px;left:6px;right:3px;height:2px;background:rgba(255,255,255,0.4);box-shadow:0 5px 0 rgba(255,255,255,0.2),0 10px 0 rgba(255,255,255,0.12); }
.ftt-diamond{ position:absolute;top:50%;left:50%;width:11px;height:11px;background:#e39b43;transform:translate(-50%,-50%) rotate(45deg); }
.ftt-circle { position:absolute;top:50%;left:50%;width:16px;height:16px;border:2px solid #60a5fa;border-radius:50%;transform:translate(-50%,-50%); }
.ftt-tag    { position:absolute;top:0;right:0;border-top:17px solid #e39b43;border-left:17px solid transparent; }
.ftt-cross  { position:absolute;top:9px;left:50%;transform:translateX(-50%);width:11px;height:2px;background:#ef4444;box-shadow:0 5px 0 #ef4444; }

/* Palette presets */
.flyers-palettes { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px; }

.flyers-palette-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid #dce7f1;
    background: #fff;
    border-radius: 999px;
    padding: 3px 9px 3px 4px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.14s;
    line-height: 1;
}

.flyers-palette-btn:hover { border-color: var(--accent-color); }
.flyers-palette-btn.active { border-color: var(--accent-color); background: rgba(227,155,67,0.07); }
.flyers-palette-dot { width:11px;height:11px;border-radius:50%;flex-shrink:0; }

/* Color row */
.flyers-color-row  { display:flex;gap:20px; }
.flyers-color-item { display:flex;flex-direction:column;align-items:center;gap:5px; }

.flyers-color-swatch {
    width: 40px;
    height: 40px;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    box-shadow: 0 0 0 2px #e0e8f2;
    transition: box-shadow 0.14s;
}
.flyers-color-swatch:hover { box-shadow: 0 0 0 3px var(--accent-color); }

.flyers-color-label {
    font-size: 0.62rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Font picker */
.flyers-font-row { display:flex;gap:6px; }

.flyers-font-btn {
    flex: 1;
    border: 1.5px solid #dce7f1;
    background: #fff;
    border-radius: 8px;
    padding: 7px 4px;
    cursor: pointer;
    font-size: 0.76rem;
    color: var(--text-dark);
    transition: border-color 0.14s;
    text-align: center;
    font-family: inherit;
}
.flyers-font-btn:hover  { border-color: var(--accent-color); }
.flyers-font-btn.active { border-color: var(--accent-color); background: rgba(227,155,67,0.07); font-weight: 700; }

/* Image mode tabs */
.flyers-img-mode-tabs { display:flex;gap:4px;margin-bottom:10px; }

.flyers-mode-tab {
    flex: 1;
    border: 1.5px solid #dce7f1;
    background: #fff;
    border-radius: 8px;
    padding: 6px 4px;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: border-color 0.14s;
    text-align: center;
    font-family: inherit;
}
.flyers-mode-tab:hover  { border-color: var(--accent-color); }
.flyers-mode-tab.active { border-color: var(--accent-color); background: rgba(227,155,67,0.07); }

/* Upload */
.flyers-upload-area {
    border: 2px dashed #dce7f1;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #f8fbfe;
}
.flyers-upload-area:hover { border-color: var(--accent-color); background: rgba(227,155,67,0.04); }

.flyers-upload-icon { font-size: 1.7rem; margin-bottom: 5px; }
.flyers-upload-text { font-size: 0.82rem; color: var(--text-dark); font-weight: 600; margin: 0; }
.flyers-upload-hint { font-size: 0.68rem; color: var(--text-light); margin: 2px 0 0; }

/* URL zone */
.flyers-img-url-zone { display:flex;gap:6px;align-items:stretch; }
.flyers-img-url-zone input { flex:1; }

.flyers-url-load-btn {
    background: var(--accent-color);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.14s;
    white-space: nowrap;
}
.flyers-url-load-btn:hover { opacity: 0.85; }

/* Image controls */
.flyers-img-controls { margin-top:12px;padding-top:12px;border-top:1px solid #edf2f7; }

.flyers-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e8f2;
    outline: none;
    cursor: pointer;
    appearance: none;
}
.flyers-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}
.flyers-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

.flyers-remove-img {
    margin-top: 7px;
    width: 100%;
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 8px;
    padding: 6px;
    font-size: 0.76rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.14s;
}
.flyers-remove-img:hover { background: #fff5f5; }

/* Icon strip */
.flyers-icon-strip { display:flex;flex-wrap:wrap;gap:5px;margin-top:7px; }

.flyers-icon-btn {
    border: 1px solid #e0e8f2;
    background: #fff;
    border-radius: 7px;
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    transition: border-color 0.13s, transform 0.13s;
}
.flyers-icon-btn:hover { border-color: var(--accent-color); transform: translateY(-2px); }

/* Actions */
.flyers-actions {
    padding: 13px 18px 17px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flyers-btn-full { width: 100%; }

/* Preview side */
.flyers-preview-wrap { display:flex;flex-direction:column;gap:12px; }

.flyers-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flyers-preview-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flyers-format-btns { display:flex;gap:4px; }

.flyers-fmt-btn {
    border: 1.5px solid #dce7f1;
    background: #fff;
    border-radius: 7px;
    width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: border-color 0.14s;
    font-family: inherit;
}
.flyers-fmt-btn.active { border-color: var(--accent-color); color: var(--accent-color); }

.flyers-preview-stage {
    background: linear-gradient(150deg, #1a2535 0%, #253142 55%, #1a1a2e 100%);
    border-radius: 14px;
    padding: 36px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 640px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(37,49,66,0.18);
}

#flyerPreview {
    user-select: none;
    transition: cursor 0.15s;
}

.flyer-preview { display:flex;justify-content:center;width:100%; }

.flyer-container {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    width: 400px;
    flex-shrink: 0;
}

.flyers-preview-tip {
    font-size: 0.74rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

/* ===========================
   TOOLS PAGE STYLES
   =========================== */

.tools-hero {
    padding: 124px 0 72px;
}

.tools-hero-kicker {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: inline-block;
}

.tools-hero-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(227, 155, 67, 0.38);
    background: rgba(227, 155, 67, 0.1);
    color: #fbe4c3;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tools-section {
    background: linear-gradient(180deg, #f8fbfe 0%, #edf3f8 100%);
    padding: 56px 0 72px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.tools-intro-card {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
    border: 1px solid #dde7f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tools-intro-kicker {
    margin: 0 0 6px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    font-weight: 600;
}

.tools-intro-title {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.tools-intro-text {
    margin: 0;
    color: var(--text-light);
}

.tools-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(227, 155, 67, 0.12);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.tools-card-label {
    align-self: flex-start;
    margin-bottom: 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    background: rgba(227, 155, 67, 0.12);
    border: 1px solid rgba(227, 155, 67, 0.24);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
}

.tools-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-color);
}

.tools-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tools-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.tools-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.tools-card-points {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    align-self: stretch;
}

.tools-card-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.tools-card:hover .tools-card-link {
    color: var(--accent-deep);
}

/* ===========================
   STREAMERS PAGE Ã¢â‚¬â€ REDESIGN
   =========================== */

/* --- Section --- */
.streamers-section {
    padding: 20px 0 72px;
}

/* --- Barre d'outils --- */
.streamers-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.streamers-bar-meta {
    font-size: 0.84rem;
    color: var(--text-light);
    margin: 0;
}

.streamers-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.streamers-search-input {
    border-radius: 999px;
    border: 1px solid rgba(37, 49, 66, 0.2);
    background: #fff;
    color: var(--text-dark);
    padding: 9px 16px;
    font-size: 0.85rem;
    font-family: inherit;
    width: 220px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.streamers-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(227, 155, 67, 0.12);
}

.streamers-search-input::placeholder { color: #9aaabb; }

.streamers-refresh-btn {
    font-size: 0.84rem;
    padding: 9px 16px;
}

.streamers-edit-btn {
    font-size: 0.84rem;
    padding: 9px 18px;
}

/* --- Grille --- */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.streamers-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 16px 0;
    grid-column: 1 / -1;
}

/* --- Carte streamer --- */
.st-card {
    border-radius: 16px;
    border: 1px solid rgba(37, 49, 66, 0.12);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(37, 49, 66, 0.07);
}

.st-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(37, 49, 66, 0.14);
}

.st-card--self {
    border-color: rgba(227, 155, 67, 0.5);
    box-shadow: 0 8px 24px rgba(227, 155, 67, 0.18);
}

/* Banner / avatar area */
.st-card-banner {
    position: relative;
    height: 90px;
    background: linear-gradient(135deg, #0d1723 0%, #1e3047 60%, #2a4567 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 14px 0;
}

.st-card-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    position: relative;
    bottom: -24px;
    flex-shrink: 0;
}

.st-self-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(227, 155, 67, 0.92);
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
}

.st-platform-dots {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 5px;
}

.st-platform-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.st-platform-dot--twitch  { background: #9146ff; }
.st-platform-dot--kick    { background: #53fc18; }
.st-platform-dot--youtube { background: #ff0000; }
.st-platform-dot--tiktok  { background: #010101; }
.st-platform-dot--discord { background: #5865f2; }

/* Live badge */
.st-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
    pointer-events: none;
    z-index: 5;
}

.st-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1;    transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Card body */
.st-card-body {
    padding: 30px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.st-card-name {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-card-tag {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-card-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.st-role-badge {
    border-radius: 999px;
    border: 1px solid #dbe5ef;
    background: #f3f7fc;
    color: #5a6c7f;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 600;
}

.st-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.st-link-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(37,49,66,0.18);
    background: #f0f4f8;
    color: #3a4a5c;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.13s ease, transform 0.13s ease;
}

.st-link-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.st-link-btn--twitch  { background: #9146ff; border-color: #9146ff; color: #fff; }
.st-link-btn--kick    { background: #53fc18; border-color: #53fc18; color: #0e1c11; }
.st-link-btn--youtube { background: #ff0000; border-color: #ff0000; color: #fff; }
.st-link-btn--tiktok  { background: #010101; border-color: #ee1d52;  color: #fff; }
.st-link-btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }

.st-no-links { color: var(--text-light); font-size: 0.82rem; }

/* ===========================
   MODAL LIENS STREAMERS
   =========================== */

.st-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.st-modal.open { display: flex; }

.st-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 22, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.st-modal-content {
    position: relative;
    width: min(100%, 520px);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(37, 49, 66, 0.14);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
    z-index: 1;
    padding: 28px 26px 24px;
}

.st-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(37, 49, 66, 0.18);
    border-radius: 50%;
    background: #f5f8fb;
    color: var(--text-dark);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.st-modal-close:hover { background: rgba(227, 155, 67, 0.18); }

.st-modal-header { margin-bottom: 22px; }

.st-modal-kicker {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 0 0 5px;
}

.st-modal-title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.st-modal-lead {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Form fields */
.st-links-form { display: flex; flex-direction: column; gap: 0; }

.st-links-fields {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.st-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.st-field-row:hover {
    background: #f8fbfe;
    border-color: rgba(37,49,66,0.08);
}

.st-field-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    background: #9aaabb;
}

.st-twitch  { background: #9146ff; }
.st-kick    { background: #3d9e0e; }
.st-youtube { background: #ff0000; }
.st-tiktok  { background: #010101; }
.st-discord { background: #5865f2; }

.st-field-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.st-field-body label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
}

.st-field-body input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d2dfeb;
    background: #fff;
    color: var(--text-dark);
    padding: 8px 10px;
    font-size: 0.84rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-field-body input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(227, 155, 67, 0.12);
}

/* Modal footer */
.st-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(37, 49, 66, 0.1);
}

/* Status message */
.st-status {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    color: var(--text-light);
    flex: 1;
}

.st-status--success { color: #2f7a53; }
.st-status--warn    { color: #8e6022; }
.st-status--error   { color: #a73943; }
.st-status--info    { color: #35597c; }

/* Bot block */
.st-divider {
    border: none;
    border-top: 1px solid rgba(37, 49, 66, 0.1);
    margin: 20px 0 16px;
}

.st-bot-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.st-bot-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0 0 12px;
    line-height: 1.5;
}

.st-bot-status { margin-top: 10px; }

/* Responsive */
@media (max-width: 640px) {
    .streamers-bar { flex-direction: column; align-items: stretch; }
    .streamers-bar-actions { flex-direction: column; }
    .streamers-search-input { width: 100%; }
    .streamers-refresh-btn,
    .streamers-edit-btn { width: 100%; justify-content: center; }
    .streamers-grid { grid-template-columns: 1fr; }
    .st-modal-content { padding: 22px 16px 18px; }
}

.tools-premium-head {
    margin: 12px 0 20px;
    max-width: 760px;
}


@media (max-width: 992px) {
    .contact-hub-grid,
    .contact-faq-grid,
    .map-layout,
    .stats-top-grid {
        grid-template-columns: 1fr;
    }

    .rp-map-canvas {
        height: 500px;
    }

    .flyers-container {
        grid-template-columns: 1fr;
    }

    .roulette-layout,
    .cards-layout,
    .streamers-layout {
        grid-template-columns: 1fr;
    }

    .roulette-single-wrap {
        min-height: 200px;
    }

    .cards-export-row {
        grid-template-columns: 1fr;
    }

    .tools-intro-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tools-premium-grid,
    .concept-layout,
    .concept-grid-2 {
        grid-template-columns: 1fr;
    }

    .concept-card-wide {
        grid-column: auto;
    }

    .hub-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-streamers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .module-card {
        padding: 18px;
    }

    .contact-hero {
        padding: 116px 0 72px;
    }

    .contact-hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 360px;
        margin: 0 auto;
    }

    .contact-hero-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .contact-hub-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .contact-form-card,
    .contact-quick-card,
    .contact-response-card {
        padding: 18px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .map-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .map-filter-group {
        justify-content: flex-start;
    }

    .map-toolbar-actions {
        justify-content: space-between;
    }

    .map-icon-picker-grid {
        grid-template-columns: 1fr;
    }

    .map-zoom-controls {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    .rp-map-canvas {
        height: 420px;
    }

    .stats-shot-item img {
        height: 120px;
    }

    .community-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .roulette-section {
        padding: 40px 0 56px;
    }

    .roulette-hero {
        padding: 96px 0 56px;
    }

    .roulette-panel,
    .roulette-result-card {
        padding: 18px;
    }

    .cards-section {
        padding: 40px 0 56px;
    }

    .streamers-section {
        padding: 40px 0 56px;
    }

    .cards-hero {
        padding: 96px 0 56px;
    }

    .streamers-hero {
        padding: 96px 0 56px;
    }

    .cards-editor-panel,
    .cards-preview-panel {
        padding: 20px;
    }

    .business-card {
        min-height: 220px;
    }

    .flyers-section {
        padding: 40px 0 56px;
    }

    .flyers-hero {
        padding: 96px 0 56px;
    }

    .flyers-hero-pills {
        gap: 8px;
    }

    .flyers-hero-pill {
        font-size: 0.72rem;
    }

    .flyers-workspace {
        grid-template-columns: 1fr;
    }

    .flyers-preview-stage {
        min-height: 520px;
        padding: 24px 16px;
    }

    .flyer-container {
        width: 100%;
        max-width: 380px;
    }

    .tools-hero {
        padding: 96px 0 56px;
    }

    .tools-section {
        padding: 40px 0 56px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }

    .tools-card {
        padding: 20px 16px;
    }

    .tools-hero-badges {
        gap: 8px;
    }

    .tools-hero-badge {
        font-size: 0.72rem;
    }

    .tools-card-icon {
        font-size: 2.4rem;
    }

    .streamers-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .tools-open-btn {
        max-width: none;
    }

    .concept-hero {
        padding: 96px 0 56px;
    }

    .concept-section {
        padding: 40px 0 56px;
    }

    .concept-card {
        padding: 20px;
    }

    .hub-hero {
        padding: 96px 0 56px;
    }

    .hub-section {
        padding: 40px 0 56px;
    }

    .hub-shell {
        padding: 16px;
    }
}

@media (max-width: 520px) {
    .contact-faq-item summary {
        font-size: 0.95rem;
    }

    .community-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal {
        padding: 8px;
    }

    .roulette-result-head h2 {
        font-size: 1.15rem;
    }

    .roulette-single-result {
        min-height: 165px;
        padding: 14px 12px;
    }

    .cards-template-chips {
        gap: 6px;
    }

    .cards-template-chip {
        font-size: 0.74rem;
        padding: 5px 9px;
    }

    .business-card-main {
        padding: 14px;
    }

    .business-card-logo {
        width: 48px;
        height: 48px;
    }

    .business-card-identity h3 {
        font-size: 1.05rem;
    }

    .flyers-preview-stage {
        padding: 14px 8px;
        min-height: 460px;
    }

    .flyer-container {
        width: 100%;
        max-width: 320px;
    }

    .flyers-icon-strip { gap: 5px; }
    .flyers-icon-btn { width: 29px; height: 29px; }

    .tools-intro-card {
        padding: 16px;
    }

    .tools-intro-title {
        font-size: 1.05rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tools-card {
        padding: 16px;
    }

    .tools-card-icon {
        font-size: 2rem;
    }

    .tools-card-title {
        font-size: 1rem;
    }

    .tools-card-desc {
        font-size: 0.85rem;
    }

    .streamers-grid {
        grid-template-columns: 1fr;
    }

    .streamers-card {
        padding: 12px;
    }

    .streamers-avatar {
        width: 46px;
        height: 46px;
    }

    .concept-kicker {
        font-size: 0.72rem;
    }

    .concept-grid-2 > div {
        padding: 12px;
    }

    .concept-chip-grid span {
        font-size: 0.74rem;
        padding: 5px 9px;
    }

    .hub-hero-stats {
        gap: 6px;
    }

    .hub-hero-stats span {
        font-size: 0.72rem;
    }

    .hub-gallery-grid {
        grid-template-columns: 1fr;
    }

    .hub-streamers-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   TACTICAL PLANNER
   =========================== */

.tp-hero {
    padding: 36px 0 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f1c2d 100%);
    border-bottom: 1px solid rgba(227,155,67,0.2);
}
.tp-hero h1 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 8px;
}
.tp-hero p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.tp-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 620px;
    background: #0b1120;
}

/* Mode plein ecran (tactical-planner.html) */
.tp-fullscreen .tp-app {
    height: 100vh;
}

/* Ã¢â‚¬â€ Topbar Ã¢â‚¬â€ */
.tp-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #0f1827;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.tp-topbar-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.12);
    margin: 0 4px;
}
.tp-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.tp-topbar-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}
.tp-topbar-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.tp-topbar-btn.accent, .tp-topbar-btn-accent {
    background: rgba(227,155,67,0.12);
    border-color: rgba(227,155,67,0.35);
    color: #e39b43;
}
.tp-topbar-btn.accent:hover, .tp-topbar-btn-accent:hover {
    background: rgba(227,155,67,0.22);
    border-color: #e39b43;
    color: #f5bc6e;
}
.tp-topbar-select {
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
}
.tp-topbar-select:focus { outline: none; }
.tp-topbar-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    margin-left: auto;
}
.tp-zoom-label {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    font-variant-numeric: tabular-nums;
}

/* Ã¢â‚¬â€ Workspace Ã¢â‚¬â€ */
.tp-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Ã¢â‚¬â€ Sidebars Ã¢â‚¬â€ */
.tp-sidebar-left,
.tp-sidebar-right {
    width: 190px;
    flex-shrink: 0;
    background: #0f1827;
    border-right: 1px solid rgba(255,255,255,0.07);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tp-sidebar-right {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.07);
}

.tp-sidebar-section {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tp-sidebar-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    margin: 0 0 8px;
    font-weight: 600;
}

/* Ã¢â‚¬â€ Tool buttons Ã¢â‚¬â€ */
.tp-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.tp-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    font-size: 0.65rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.tp-tool-btn span:first-child {
    font-size: 1.1rem;
}
.tp-tool-btn:hover, .tp-tool-btn.active {
    background: rgba(227,155,67,0.14);
    border-color: rgba(227,155,67,0.4);
    color: #e39b43;
}

/* Ã¢â‚¬â€ Pion buttons Ã¢â‚¬â€ */
.tp-pions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.tp-pion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    font-size: 0.65rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.tp-pion-btn span:first-child {
    font-size: 1.1rem;
}
.tp-pion-btn:hover, .tp-pion-btn.active {
    background: rgba(59,130,246,0.14);
    border-color: rgba(59,130,246,0.4);
    color: #60a5fa;
}

/* Ã¢â‚¬â€ Color swatches Ã¢â‚¬â€ */
.tp-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tp-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.1s, border-color 0.1s;
}
.tp-swatch:hover, .tp-swatch.active {
    transform: scale(1.2);
    border-color: #fff;
}
.tp-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.tp-color-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.tp-color-picker {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
}

/* Ã¢â‚¬â€ Range sliders Ã¢â‚¬â€ */
.tp-range-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.tp-range-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}
.tp-range-row label span {
    color: rgba(255,255,255,0.8);
}
.tp-range {
    width: 100%;
    accent-color: #e39b43;
    cursor: pointer;
}

/* Ã¢â‚¬â€ Layer toggles Ã¢â‚¬â€ */
.tp-layer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    user-select: none;
}
.tp-layer-toggle input[type="checkbox"] {
    accent-color: #e39b43;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Ã¢â‚¬â€ Element list Ã¢â‚¬â€ */
.tp-elem-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 220px;
    overflow-y: auto;
}
.tp-elem-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.12s;
}
.tp-elem-item:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
}
.tp-elem-item-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}
.tp-elem-empty {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    font-style: italic;
    padding: 4px 0;
}

/* Ã¢â‚¬â€ Grid toggle Ã¢â‚¬â€ */
.tp-grid-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    user-select: none;
    padding: 3px 0;
}
.tp-grid-toggle input {
    accent-color: #e39b43;
    cursor: pointer;
}

/* Ã¢â‚¬â€ Canvas zone Ã¢â‚¬â€ */
.tp-canvas-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #111827;
}
#tpCanvas {
    display: block;
    flex: 1;
    cursor: crosshair;
}

/* Ã¢â‚¬â€ Note editor overlay Ã¢â‚¬â€ */
.tp-note-editor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a2535;
    border: 1px solid rgba(227,155,67,0.4);
    border-radius: 10px;
    padding: 14px;
    z-index: 30;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.tp-note-editor p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}
#tpNoteInput {
    width: 100%;
    box-sizing: border-box;
    height: 80px;
    resize: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    padding: 8px;
    font-family: inherit;
    font-size: 0.85rem;
}
#tpNoteInput:focus { outline: none; border-color: rgba(227,155,67,0.5); }
.tp-note-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.tp-note-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.tp-note-btn:hover { background: rgba(255,255,255,0.14); }
.tp-note-btn.primary {
    background: rgba(227,155,67,0.18);
    border-color: rgba(227,155,67,0.45);
    color: #e39b43;
}
.tp-note-btn.primary:hover { background: rgba(227,155,67,0.3); }

/* Ã¢â‚¬â€ Status bar Ã¢â‚¬â€ */
.tp-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 12px;
    background: #0b1120;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
}
.tp-status span { color: rgba(255,255,255,0.65); }

/* Ã¢â‚¬â€ Legend Ã¢â‚¬â€ */
.tp-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tp-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
}
.tp-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Ã¢â‚¬â€ Back link Ã¢â‚¬â€ */
.tp-back-link,
.tp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s;
    border-color: rgba(255,255,255,0.15) !important;
}
.tp-back-link:hover,
.tp-back-btn:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,0.35) !important;
}

/* ===========================
   IDENTITY FORGE
   =========================== */

.if-hero {
    padding: 36px 0 24px;
    text-align: center;
    background: linear-gradient(135deg, #0d1117 0%, #1a0a28 100%);
    border-bottom: 1px solid rgba(192,132,252,0.2);
}
.if-hero h1 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 8px;
}
.if-hero p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.if-section {
    padding: 40px 0 60px;
    background: #0a0d14;
    min-height: calc(100vh - 260px);
}

.if-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* Ã¢â‚¬â€ Controls column Ã¢â‚¬â€ */
.if-controls {
    background: #0f1421;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 80px;
}

.if-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.if-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.if-keyword-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
}
.if-keyword-input:focus {
    outline: none;
    border-color: rgba(192,132,252,0.5);
}
.if-keyword-input::placeholder {
    color: rgba(255,255,255,0.25);
}

.if-generate-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: opacity 0.15s, transform 0.1s;
}
.if-generate-btn:hover { opacity: 0.88; }
.if-generate-btn:active { transform: scale(0.98); }

.if-regen-block {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.if-regen-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-align: left;
}
.if-regen-btn:hover {
    background: rgba(192,132,252,0.12);
    border-color: rgba(192,132,252,0.35);
    color: #c084fc;
}

.if-sep {
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.if-size-block {
    display: none;
}
.if-size-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.if-size-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}
.if-size-range {
    width: 100%;
    accent-color: #a855f7;
    cursor: pointer;
}

.if-orient-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.if-orient-btn {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.if-orient-btn:hover, .if-orient-btn.active {
    background: rgba(168,85,247,0.14);
    border-color: rgba(168,85,247,0.4);
    color: #a855f7;
}

.if-export-block {
    display: none;
    flex-direction: column;
    gap: 6px;
}
.if-export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    border: 1px solid transparent;
}
.if-export-btn:hover { opacity: 0.82; }
.if-export-btn.png {
    background: rgba(227,155,67,0.15);
    border-color: rgba(227,155,67,0.4);
    color: #e39b43;
}
.if-export-btn.svg {
    background: rgba(192,132,252,0.15);
    border-color: rgba(192,132,252,0.4);
    color: #c084fc;
}

/* Ã¢â‚¬â€ Result column Ã¢â‚¬â€ */
.if-result {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.if-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 20px;
    color: rgba(255,255,255,0.25);
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 16px;
}
.if-empty-icon {
    font-size: 3rem;
    opacity: 0.5;
}
.if-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.if-identity {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.if-identity-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.if-style-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(168,85,247,0.14);
    border: 1px solid rgba(168,85,247,0.4);
    border-radius: 20px;
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.if-block {
    background: #0f1421;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 18px 20px;
}
.if-block-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    margin: 0 0 12px;
}

/* Ã¢â‚¬â€ Palette Ã¢â‚¬â€ */
.if-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.if-swatch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}
.if-swatch {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.15s, border-color 0.15s;
}
.if-swatch:hover {
    transform: scale(1.08);
    border-color: rgba(255,255,255,0.35);
}
.if-swatch-hex {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Courier New', monospace;
}
.if-swatch-picker {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Ã¢â‚¬â€ Logo stage Ã¢â‚¬â€ */
.if-logo-stage {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
#ifLogoCanvas {
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(168,85,247,0.25);
    display: block;
}

/* Ã¢â‚¬â€ Slogan Ã¢â‚¬â€ */
.if-slogan {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* Ã¢â‚¬â€ Vibe tags Ã¢â‚¬â€ */
.if-vibe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}
.if-vibe-tag {
    padding: 5px 13px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===========================
   RESPONSIVE Ã¢â‚¬â€ Tactical & IF
   =========================== */

@media (max-width: 1100px) {
    .tp-sidebar-left,
    .tp-sidebar-right {
        width: 160px;
    }
    .if-layout {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 900px) {
    .tp-sidebar-right {
        display: none;
    }
    .if-layout {
        grid-template-columns: 1fr;
    }
    .if-controls {
        position: static;
    }
}

@media (max-width: 680px) {
    .tp-sidebar-left {
        display: none;
    }
    .tp-app {
        height: auto;
        min-height: 500px;
    }
    #tpCanvas {
        min-height: 420px;
    }
    .if-palette {
        justify-content: center;
    }
}

.btn-wrap-soon {
  position: relative;
  display: inline-block;
}

.btn-wrap-soon button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.6);
}

.soon-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #e39b43;
  color: #0d1117;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* ===========================
   TOOLS PAGE Ã¢â‚¬â€ HUMAN REDESIGN
   =========================== */

.tools-block-head {
    margin-bottom: 24px;
}

.tools-block-head--mt {
    margin-top: 52px;
}

.tools-block-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    background: rgba(227, 155, 67, 0.1);
    border: 1px solid rgba(227, 155, 67, 0.28);
    border-radius: 999px;
    padding: 3px 11px;
    margin-bottom: 10px;
}

.tools-block-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.tools-block-sub {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Top row (icon + status badge) inside featured cards */
.tools-card-toprow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.tools-card-toprow .tools-card-icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.tools-card-badge-new {
    background: rgba(80, 185, 130, 0.14);
    border: 1px solid rgba(80, 185, 130, 0.36);
    color: #2e7a53;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tools-card-badge-wip {
    background: rgba(100, 140, 200, 0.13);
    border: 1px solid rgba(100, 140, 200, 0.32);
    color: #35597c;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tools-card-coming {
    opacity: 0.78;
}

/* ===========================
   2026 UI REFRESH (NAV + HOME + FOOTER)
   =========================== */

/* --- Navbar --- */
.navbar {
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 14px 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar-container {
    max-width: 1260px;
    min-height: 78px;
    padding: 10px 14px 10px 20px;
    border-radius: 18px;
    border: 1px solid rgba(227, 155, 67, 0.26);
    background:
        linear-gradient(130deg, rgba(13, 23, 35, 0.96) 0%, rgba(30, 47, 67, 0.9) 100%);
    box-shadow: 0 18px 34px rgba(13, 23, 35, 0.34);
    position: relative;
}

.navbar-logo {
    gap: 10px;
    min-width: fit-content;
}

.navbar-logo img {
    height: 42px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.navbar-logo-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 2px;
}

.navbar-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(247, 250, 253, 0.97);
}

.navbar-logo-sub {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(227, 155, 67, 0.88);
}

.navbar-menu {
    margin-left: auto;
    padding: 5px;
    border-radius: 13px;
    border: 1px solid rgba(227, 155, 67, 0.2);
    background: rgba(255, 255, 255, 0.04);
    gap: 4px;
}

.navbar-menu a {
    padding: 9px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(246, 250, 253, 0.9);
}

.navbar-menu a::after {
    display: none;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(227, 155, 67, 0.84), rgba(201, 125, 38, 0.9));
    box-shadow: 0 8px 16px rgba(227, 155, 67, 0.28);
}

.navbar-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(227, 155, 67, 0.35);
    background: rgba(255, 255, 255, 0.05);
    flex-direction: column;
    gap: 4px;
}

.navbar-toggle span {
    width: 18px;
    height: 2px;
}

.navbar .auth-area {
    margin-left: 10px;
}

.navbar .auth-user-card {
    border-radius: 14px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(227, 155, 67, 0.28);
}

.navbar .auth-role-badge {
    background: rgba(227, 155, 67, 0.35);
}

/* --- Home page redesign --- */
.home-premium {
    overflow: hidden;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 170px 0 48px;
    min-height: auto;
    background: linear-gradient(135deg, #0f1c2d 0%, #1b2d43 52%, #142436 100%);
}

.home-hero-visuals {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.4px);
    opacity: 0.4;
    animation: homeFloat 11s ease-in-out infinite;
}

.home-orb-a {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -60px;
    background: radial-gradient(circle, rgba(227, 155, 67, 0.48) 0%, rgba(227, 155, 67, 0) 68%);
}

.home-orb-b {
    width: 320px;
    height: 320px;
    right: -90px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(227, 155, 67, 0.34) 0%, rgba(227, 155, 67, 0) 72%);
    animation-delay: -5.5s;
}

.home-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: center;
}

.home-hero-copy > * {
    opacity: 0;
    transform: translateY(24px);
    animation: homeRise 0.65s ease forwards;
}

.home-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.home-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.home-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.home-hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(227, 155, 67, 0.48);
    background: rgba(227, 155, 67, 0.16);
    color: rgba(255, 241, 224, 0.94);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.home-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.9rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-wrap: balance;
}

.home-hero-title span {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    letter-spacing: 0;
    font-weight: 600;
    color: rgba(227, 155, 67, 0.94);
}

.home-hero-text {
    margin: 16px 0 0;
    max-width: 620px;
    color: rgba(236, 243, 248, 0.84);
    font-size: 1rem;
    line-height: 1.75;
}

.home-hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-btn-main,
.home-btn-alt {
    min-width: 220px;
}

.home-btn-alt {
    color: #f5f9fc;
    border-color: rgba(227, 155, 67, 0.58);
    background: rgba(255, 255, 255, 0.06);
}

.home-btn-alt:hover {
    color: #ffffff;
    border-color: rgba(227, 155, 67, 0.88);
    background: rgba(227, 155, 67, 0.2);
}

.home-hero-notes {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 600px;
}

.home-hero-notes li {
    color: rgba(244, 249, 253, 0.88);
    font-size: 0.84rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    padding: 8px 10px;
}

.home-live-board {
    border-radius: 22px;
    border: 1px solid rgba(227, 155, 67, 0.25);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(9px);
    padding: 24px;
    box-shadow: 0 24px 48px rgba(6, 12, 18, 0.42);
}

.home-live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-live-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(227, 155, 67, 0.2);
    border: 1px solid rgba(227, 155, 67, 0.42);
    color: rgba(255, 245, 231, 0.95);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-live-pill--offline {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: rgba(255, 200, 200, 0.95);
}

.home-live-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(242, 248, 252, 0.9);
    font-size: 0.83rem;
}

.home-live-label {
    margin: 18px 0 4px;
    color: rgba(230, 238, 247, 0.74);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-live-value {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-live-value.server-offline-value {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: #dc3545;
}

.home-live-server {
    margin: 8px 0 0;
    color: rgba(237, 243, 249, 0.74);
    font-size: 0.9rem;
}

.home-live-server .server-name {
    color: rgba(227, 155, 67, 0.97);
    font-weight: 700;
}

.home-live-actions {
    margin-top: 18px;
    display: grid;
    gap: 9px;
}

.home-live-actions .btn-connect-server,
.home-live-actions .btn-whitelist {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
}

.home-live-actions .btn-connect-server {
    min-width: 0;
    box-shadow: 0 10px 20px rgba(227, 155, 67, 0.34);
}

.home-live-actions .btn-whitelist {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 249, 253, 0.95);
    padding: 10px 16px;
}

.home-live-actions .btn-whitelist:hover {
    background: rgba(255, 255, 255, 0.16);
}

.home-section-head {
    margin-bottom: 30px;
}

.home-section-head-left {
    text-align: left;
}

.home-section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    color: var(--text-dark);
    line-height: 1.12;
}

.home-section-subtitle {
    margin: 10px 0 0;
    color: var(--text-light);
    max-width: 640px;
}

/* --- Home Trust Bar (inside hero) --- */
.home-trust-grid {
    position: relative;
    z-index: 2;
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(227, 155, 67, 0.12);
}

.home-trust-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2px;
}

.home-trust-item span:not(.home-trust-icon) {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ===== V2 Ã¢â‚¬â€ Numbers Row (inside hero) ===== */
.home-v2-numbers-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 38px 24px;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.home-v2-num {
    flex: 1;
    text-align: center;
    padding: 0 14px;
}

.home-v2-num-val {
    display: block;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f0c278 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-v2-num-lbl {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.home-v2-num-sep {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent 0%, rgba(227, 155, 67, 0.35) 50%, transparent 100%);
    flex-shrink: 0;
}

/* ===== V2 Ã¢â‚¬â€ Universe Section ===== */
.home-v2-universe {
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
    padding: 80px 0 64px;
}

.home-v2-universe-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.home-v2-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--cinema-dark);
    margin: 14px 0 0;
    letter-spacing: -0.02em;
}

.home-v2-title-left {
    text-align: left;
}

.home-v2-lead {
    margin: 16px 0 0;
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--text-light);
}

.home-v2-lead-left {
    text-align: left;
}

.home-v2-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-v2-pillar {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 32px 28px 28px;
    background: linear-gradient(155deg, #152233 0%, #1c3045 52%, #162a3e 100%);
    border: 1px solid rgba(227, 155, 67, 0.16);
    box-shadow: 0 18px 40px rgba(11, 19, 28, 0.22);
    color: rgba(241, 247, 252, 0.92);
    transition: transform 0.35s, box-shadow 0.35s;
}

.home-v2-pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(11, 19, 28, 0.32);
}

.home-v2-pillar-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 155, 67, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.home-v2-pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-deep));
    box-shadow: 0 6px 18px rgba(227, 155, 67, 0.3);
}

.home-v2-pillar h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.home-v2-pillar p {
    margin: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(230, 240, 248, 0.72);
}

.home-v2-pillar-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-v2-pillar-tags li {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(227, 155, 67, 0.14);
    border: 1px solid rgba(227, 155, 67, 0.28);
    color: rgba(255, 237, 212, 0.88);
}

/* ===== V2 Ã¢â‚¬â€ Gameplay Section ===== */
.home-v2-gameplay {
    background:
        radial-gradient(circle at 92% 8%, rgba(227, 155, 67, 0.08) 0%, transparent 40%),
        #fff;
    padding: 80px 0 72px;
}

.home-v2-gameplay-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}

.home-v2-gameplay-left {
    position: sticky;
    top: 110px;
}

.home-v2-gameplay-cta {
    margin-top: 28px;
}

.home-v2-gameplay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.home-v2-gp-card {
    border-radius: 18px;
    padding: 26px 22px;
    background: linear-gradient(160deg, #fafcfe 0%, #f2f6fb 100%);
    border: 1px solid rgba(37, 49, 66, 0.10);
    box-shadow: 0 10px 28px rgba(17, 27, 39, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-v2-gp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(17, 27, 39, 0.12);
}

.home-v2-gp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.4rem;
    margin-bottom: 16px;
    background: linear-gradient(145deg, rgba(227, 155, 67, 0.18), rgba(227, 155, 67, 0.05));
}

.home-v2-gp-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cinema-dark);
}

.home-v2-gp-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-light);
}

/* ===== V2 Ã¢â‚¬â€ Path / Timeline ===== */
.home-v2-path {
    background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
    padding: 80px 0 72px;
}

.home-v2-path-head {
    text-align: center;
    margin-bottom: 48px;
}

.home-v2-timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    gap: 0;
}

.home-v2-timeline-line {
    position: absolute;
    left: 23px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color) 0%, rgba(227, 155, 67, 0.12) 100%);
    border-radius: 999px;
}

.home-v2-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 22px 0;
}

.home-v2-step-dot {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-deep));
    box-shadow: 0 6px 20px rgba(227, 155, 67, 0.32);
}

.home-v2-step-body h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--cinema-dark);
}

.home-v2-step-body p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-light);
}

.home-v2-step-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.home-v2-step-link:hover {
    color: var(--accent-deep);
}

/* ===== V2 Ã¢â‚¬â€ Final CTA ===== */
.home-v2-final {
    background: linear-gradient(180deg, #f4f8fc 0%, #edf3f8 100%);
    padding: 8px 0 96px;
}

.home-v2-final-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 28px;
    padding: clamp(36px, 5vw, 58px) clamp(24px, 4vw, 48px);
    background:
        radial-gradient(circle at 10% 10%, rgba(227, 155, 67, 0.22) 0%, transparent 44%),
        linear-gradient(140deg, #111d2d 0%, #1d3147 56%, #16273a 100%);
    border: 1px solid rgba(227, 155, 67, 0.2);
    box-shadow: 0 24px 52px rgba(12, 20, 30, 0.3);
    color: rgba(243, 248, 252, 0.95);
}

.home-v2-final-glow {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 155, 67, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-v2-final-card .section-kicker {
    background: rgba(227, 155, 67, 0.18);
    border-color: rgba(227, 155, 67, 0.35);
    color: rgba(255, 237, 212, 0.94);
}

.home-v2-final-card h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0 0;
    letter-spacing: -0.01em;
}

.home-v2-final-text {
    max-width: 520px;
    margin: 16px auto 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(230, 240, 248, 0.72);
}

.home-v2-final-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.home-v2-final-btn {
    min-height: 48px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 600;
}

/* ===== V2 Ã¢â‚¬â€ Responsive ===== */
@media (max-width: 1000px) {
    .home-v2-gameplay-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-v2-gameplay-left {
        position: static;
        text-align: center;
    }

    .home-v2-title-left {
        text-align: center;
    }

    .home-v2-lead-left {
        text-align: center;
    }

    .home-v2-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .home-v2-numbers-row {
        flex-direction: column;
        gap: 18px;
        padding: 28px 20px;
    }

    .home-v2-num-sep {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(227, 155, 67, 0.3) 50%, transparent 100%);
    }

    .home-v2-gameplay-grid {
        grid-template-columns: 1fr;
    }

    .home-v2-universe,
    .home-v2-gameplay,
    .home-v2-path {
        padding: 56px 0 48px;
    }

    .home-v2-final {
        padding-bottom: 64px;
    }

    .home-v2-final-card {
        border-radius: 20px;
    }

    .home-v2-timeline {
        max-width: 100%;
    }

    .home-v2-timeline-line {
        left: 19px;
    }

    .home-v2-step {
        grid-template-columns: 40px 1fr;
        gap: 14px;
    }

    .home-v2-step-dot {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

.home-cta-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3.3vw, 2.7rem);
    color: #ffffff;
    line-height: 1.08;
}

.home-cta-card p {
    margin: 14px auto 0;
    max-width: 760px;
    color: rgba(232, 241, 248, 0.82);
}

.home-cta-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-cta-actions .btn {
    min-width: 220px;
}

.home-cta-actions .btn-outline {
    border-color: rgba(227, 155, 67, 0.55);
    color: rgba(249, 252, 255, 0.94);
    background: rgba(255, 255, 255, 0.06);
}

.home-cta-actions .btn-outline:hover {
    background: rgba(227, 155, 67, 0.18);
}

/* --- Footer redesign --- */
.footer {
    padding: 56px 0 24px;
}

.footer-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand h3 {
    margin-bottom: 6px;
}

.footer-brand p {
    color: rgba(237, 244, 250, 0.72);
    max-width: 520px;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.footer-cta {
    min-width: 210px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.footer-col {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
}

.footer-col h4 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 0.96rem;
}

.footer-links {
    display: grid;
    gap: 7px;
}

.footer-links a {
    color: rgba(240, 246, 251, 0.76);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 0;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* --- Keyframes --- */
@keyframes homeRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeFloat {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-12px) translateX(8px);
    }
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .navbar {
        padding: 8px 10px 0;
    }

    .navbar-container {
        min-height: 70px;
        padding: 10px 12px;
    }

    .navbar-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        margin-left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(13, 23, 35, 0.98), rgba(31, 46, 64, 0.96));
        border: 1px solid rgba(227, 155, 67, 0.25);
        box-shadow: 0 16px 30px rgba(13, 23, 35, 0.36);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu a {
        width: 100%;
        border-radius: 10px;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar .auth-area {
        margin-left: auto;
        margin-right: 8px;
    }

    .navbar .auth-name,
    .navbar .auth-role-badge,
    .navbar .auth-tag {
        display: none;
    }

    .navbar .auth-user-card {
        padding: 4px;
        gap: 5px;
    }

    .navbar .auth-avatar {
        width: 26px;
        height: 26px;
    }

    .home-hero {
        min-height: auto;
        padding-top: 146px;
    }

    .home-hero-grid,
    .home-story-layout {
        grid-template-columns: 1fr;
    }

    .home-hero-notes {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .home-numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-features-grid,
    .home-path-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .navbar-logo img {
        height: 34px;
    }

    .navbar-logo-sub {
        display: none;
    }

    .home-hero {
        padding-top: 130px;
        padding-bottom: 72px;
    }

    .home-hero-title {
        line-height: 1.03;
    }

    .home-hero-actions,
    .home-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-btn-main,
    .home-btn-alt,
    .home-cta-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .home-numbers-grid {
        grid-template-columns: 1fr;
    }

    .home-story-main,
    .home-story-card,
    .home-path-card {
        padding: 18px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-cta {
        width: 100%;
        min-width: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===========================
   GLOBAL PAGE HARMONIZATION
   =========================== */

body.site-premium-page {
    color: var(--text-dark);
}

.site-main-shell {
    position: relative;
    display: grid;
    gap: 18px;
    padding-bottom: 28px;
}

body.site-premium-page:not(.home-premium-page) .site-main-shell > .hero {
    width: min(1260px, calc(100% - 28px));
    margin: 86px auto 0;
    padding: 118px 0 76px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 58px rgba(13, 23, 35, 0.30);
}

body.site-premium-page:not(.home-premium-page) .site-main-shell > .section {
    padding: 36px 0 18px;
}

body.site-premium-page:not(.home-premium-page) .site-main-shell > .section > .container {
    max-width: 1240px;
}

body.site-premium-page .card,
body.site-premium-page .module-card,
body.site-premium-page .table-container,
body.site-premium-page .contact-quick-card,
body.site-premium-page .vote-stat-card,
body.site-premium-page .tools-card,
body.site-premium-page .hub-shell {
    border-radius: 16px;
    border: 1px solid rgba(37, 49, 66, 0.10);
    box-shadow: 0 14px 34px rgba(26, 39, 54, 0.14);
}

body.site-premium-page .btn {
    border-radius: 12px;
}

body.site-premium-page .btn-primary,
body.site-premium-page .btn-outline,
body.site-premium-page .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Tactical planner as integrated page */
.tactical-page-shell > .hero {
    margin-bottom: 0;
}

.tactical-page-section {
    padding-top: 14px;
}

.tactical-page-section .container {
    max-width: 1320px;
}

.tactical-page-section .tp-app {
    height: min(82vh, 900px);
    min-height: 620px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 44px rgba(11, 17, 32, 0.45);
}

@media (max-width: 1000px) {
    body.site-premium-page:not(.home-premium-page) .site-main-shell > .hero {
        width: calc(100% - 20px);
        border-radius: 22px;
        padding: 110px 0 70px;
    }

    .tactical-page-section .tp-app {
        height: min(78vh, 820px);
    }
}

@media (max-width: 700px) {
    body.site-premium-page:not(.home-premium-page) .site-main-shell > .hero {
        width: calc(100% - 14px);
        border-radius: 18px;
        margin-top: 82px;
        padding: 104px 0 66px;
    }

    body.site-premium-page:not(.home-premium-page) .site-main-shell > .section {
        padding-top: 22px;
    }

    .tactical-page-section .tp-app {
        min-height: 500px;
        height: 72vh;
    }
}

/* ==========================================================
   SPLASH SCREEN
   ========================================================== */

.fs-splash-open { overflow: hidden; }

/* --- Overlay principal --- */
.fs-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060d16;
    animation: fsSplashIn 0.4s ease both;
    -webkit-user-select: none;
    user-select: none;
}

.fs-splash--out {
    animation: fsSplashOut 0.55s ease forwards !important;
    pointer-events: none;
}

/* --- Décorations fond --- */
.fs-splash-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.fs-splash-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fs-splash-orb-a {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227,155,67,0.22) 0%, transparent 70%);
    top: -180px;
    left: -200px;
    animation: fsSplashOrbDrift 7s ease-in-out infinite alternate;
}

.fs-splash-orb-b {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,142,247,0.18) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: fsSplashOrbDrift 9s ease-in-out infinite alternate-reverse;
}

.fs-splash-orb-c {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(139,92,246,0.13) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fsSplashOrbDrift 11s ease-in-out infinite alternate;
}

.fs-splash-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 52px 52px;
}

.fs-splash-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.07) 3px,
        rgba(0,0,0,0.07) 4px
    );
    pointer-events: none;
}

/* --- Contenu centré --- */
.fs-splash-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 40px 28px;
    animation: fsSplashContentIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Logo + anneau pulsé --- */
.fs-splash-logo-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-splash-logo-wrap::before,
.fs-splash-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1.5px solid rgba(227, 155, 67, 0.65);
    animation: fsSplashRing 2.4s ease-out infinite;
}

.fs-splash-logo-wrap::after {
    animation-delay: 1.2s;
}

.fs-splash-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation:
        fsSplashLogoIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        fsSplashLogoPulse 2.6s ease-in-out 0.75s infinite;
}

/* --- Titres --- */
.fs-splash-titles {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fs-splash-name {
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.fs-splash-name span {
    color: #e39b43;
}

.fs-splash-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

/* --- Séparateur doré shimmer --- */
.fs-splash-sep {
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e39b43, transparent);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.fs-splash-sep::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 230, 160, 0.9), transparent);
    animation: fsSplashSepShimmer 2.2s ease-in-out infinite;
}

/* --- Pills staggered --- */
.fs-splash-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fs-splash-pill {
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(16px);
    animation: fsSplashPillIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fs-splash-pill:nth-child(1) { animation-delay: 0.55s; }
.fs-splash-pill:nth-child(2) { animation-delay: 0.75s; }
.fs-splash-pill:nth-child(3) { animation-delay: 0.95s; }

.fs-splash-pill--gold {
    background: rgba(227, 155, 67, 0.1);
    border-color: rgba(227, 155, 67, 0.32);
    color: #f7c97e;
}

/* --- Keyframes --- */
@keyframes fsSplashIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fsSplashOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.04); }
}

@keyframes fsSplashContentIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fsSplashLogoIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-8deg);
        filter: drop-shadow(0 0 0px rgba(227, 155, 67, 0));
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 16px rgba(227, 155, 67, 0.55));
    }
}

@keyframes fsSplashLogoPulse {
    0%,  100% { filter: drop-shadow(0 0 10px rgba(227, 155, 67, 0.4)); }
    50%        { filter: drop-shadow(0 0 28px rgba(227, 155, 67, 0.9)); }
}

@keyframes fsSplashRing {
    0%   { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes fsSplashOrbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(50px, 35px) scale(1.12); }
}

@keyframes fsSplashSepShimmer {
    0%   { transform: translateX(-250%); }
    100% { transform: translateX(350%); }
}

@keyframes fsSplashPillIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Mobile */
@media (max-width: 480px) {
    .fs-splash-logo-wrap { width: 84px; height: 84px; }
    .fs-splash-logo      { width: 72px; height: 72px; }
    .fs-splash-pills     { gap: 8px; }
    .fs-splash-pill      { font-size: 0.73rem; padding: 5px 13px; }
}

/* === FIN SPLASH SCREEN === */


/* ----- Hero kicker inside hero (uniform) ----- */
body.site-premium-page .hero .section-kicker {
    background: rgba(227, 155, 67, 0.18);
    border: 1px solid rgba(227, 155, 67, 0.38);
    color: #f0c278;
    font-size: 0.82rem;
    margin-bottom: 18px;
}

/* ----- Hero subtitle refinement ----- */
body.site-premium-page:not(.home-premium-page) .hero .hero-subtitle {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

/* ----- Hero badges / pills / stats (uniform) ----- */
body.site-premium-page .hero .hub-hero-stats,
body.site-premium-page .hero .tools-hero-badges,
body.site-premium-page .hero .flyers-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

body.site-premium-page .hero .hub-hero-stats span,
body.site-premium-page .hero .tools-hero-badge,
body.site-premium-page .hero .flyers-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
}

/* ----- CTA sections bottom (uniform) ----- */
body.site-premium-page .cta {
    background: linear-gradient(135deg, #0d1723 0%, #162a40 50%, #0f1e2f 100%);
    border-radius: 22px;
    width: min(1220px, calc(100% - 28px));
    margin: 8px auto 0;
    padding: 56px 32px;
    text-align: center;
    color: var(--bg-white);
    box-shadow: 0 18px 44px rgba(11, 17, 32, 0.35);
}

body.site-premium-page .cta .cta-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 14px;
}

body.site-premium-page .cta .cta-text {
    max-width: 600px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

/* ----- Legal content (article/mentions) ----- */
body.site-premium-page .legal-content {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 42px 38px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    box-shadow: 0 10px 28px rgba(26, 39, 54, 0.10);
    line-height: 1.75;
}

body.site-premium-page .legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--cinema-dark);
}

body.site-premium-page .legal-content h2:first-child {
    margin-top: 0;
}

/* ----- Article page ----- */
body.site-premium-page .article-header {
    margin-bottom: 28px;
}

body.site-premium-page .article-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--cinema-dark);
}

body.site-premium-page .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--text-light);
}

body.site-premium-page .article-image {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 12px 28px rgba(26, 39, 54, 0.14);
}

body.site-premium-page .article-content {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 38px 34px;
    border: 1px solid rgba(37, 49, 66, 0.08);
    box-shadow: 0 10px 28px rgba(26, 39, 54, 0.10);
    line-height: 1.75;
}

body.site-premium-page .article-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--cinema-dark);
}

/* ----- Uniform form inputs ----- */
body.site-premium-page .form-input,
body.site-premium-page .form-select,
body.site-premium-page .form-textarea,
body.site-premium-page input[type="text"],
body.site-premium-page input[type="url"],
body.site-premium-page input[type="email"],
body.site-premium-page textarea,
body.site-premium-page select {
    border-radius: 12px;
    border: 1px solid rgba(37, 49, 66, 0.16);
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.site-premium-page .form-input:focus,
body.site-premium-page .form-select:focus,
body.site-premium-page .form-textarea:focus,
body.site-premium-page input:focus,
body.site-premium-page textarea:focus,
body.site-premium-page select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(227, 155, 67, 0.18);
    outline: none;
}

/* ----- Uniform modals ----- */
body.site-premium-page .modal-content {
    border-radius: 20px;
    box-shadow: 0 24px 54px rgba(11, 17, 32, 0.45);
}

/* ----- Section titles inside content (uniform) ----- */
body.site-premium-page .section-title,
body.site-premium-page .module-card-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ----- Loading states ----- */
body.site-premium-page .loading-state,
body.site-premium-page .actualites-loading,
body.site-premium-page .hub-loading {
    text-align: center;
    color: var(--text-light);
    padding: 48px 20px;
    font-size: 0.95rem;
}

/* ----- Admin toolbar (equipe, actualites) ----- */
body.site-premium-page .admin-toolbar {
    border-radius: 16px;
    padding: 22px 26px;
}

/* ----- Vote CTA card ----- */
body.site-premium-page .vote-cta-card {
    border-radius: 18px;
    border: 1px solid rgba(37, 49, 66, 0.10);
    box-shadow: 0 14px 34px rgba(26, 39, 54, 0.14);
}

/* ----- Responsive additions ----- */
@media (max-width: 700px) {
    body.site-premium-page .hero .section-kicker {
        font-size: 0.74rem;
        margin-bottom: 14px;
    }

    body.site-premium-page:not(.home-premium-page) .hero .hero-subtitle {
        font-size: 1rem;
    }

    body.site-premium-page .cta {
        width: calc(100% - 14px);
        border-radius: 18px;
        padding: 40px 20px;
    }

    body.site-premium-page .legal-content,
    body.site-premium-page .article-content {
        padding: 26px 20px;
        border-radius: 14px;
    }

    body.site-premium-page .article-image {
        border-radius: 14px;
    }
}

/* ===========================
   UNIFIED STYLE V3 (GLOBAL)
   =========================== */
body.site-premium-page.unified-v3 .site-main-shell {
    gap: 16px;
}

body.site-premium-page.unified-v3 .site-main-shell > .hero {
    position: relative;
    overflow: hidden;
    margin-top: 84px;
    padding: 78px 0 50px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(13, 23, 35, 0.26);
    background:
        radial-gradient(circle at 9% 15%, rgba(227, 155, 67, 0.22) 0%, rgba(227, 155, 67, 0) 34%),
        radial-gradient(circle at 86% 9%, rgba(18, 31, 47, 0.35) 0%, rgba(18, 31, 47, 0) 44%),
        linear-gradient(154deg, #142236 0%, #1e3047 48%, #263f5a 100%);
}

body.site-premium-page.unified-v3 .site-main-shell > .hero::before,
body.site-premium-page.unified-v3 .site-main-shell > .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body.site-premium-page.unified-v3 .site-main-shell > .hero::before {
    width: 240px;
    height: 240px;
    right: 6%;
    top: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(227, 155, 67, 0.28), rgba(227, 155, 67, 0));
}

body.site-premium-page.unified-v3 .site-main-shell > .hero::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -180px;
    background: radial-gradient(circle at center, rgba(227, 155, 67, 0.16), rgba(227, 155, 67, 0));
}

body.site-premium-page.unified-v3 .site-main-shell > .hero .container {
    text-align: left;
    max-width: 1160px;
    position: relative;
    z-index: 1;
}

body.site-premium-page.unified-v3 .site-main-shell > .hero .section-kicker {
    margin-bottom: 14px;
}

body.site-premium-page.unified-v3 .site-main-shell > .hero .hero-title {
    margin: 0 0 12px;
    max-width: 780px;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4.5vw, 3.3rem);
}

body.site-premium-page.unified-v3 .site-main-shell > .hero .hero-subtitle {
    margin: 0;
    max-width: 760px;
    font-size: 1.02rem;
    line-height: 1.66;
    color: rgba(255, 255, 255, 0.91);
}

body.site-premium-page.unified-v3 .site-main-shell > .hero .hero-buttons,
body.site-premium-page.unified-v3 .site-main-shell > .hero .contact-hero-actions,
body.site-premium-page.unified-v3 .site-main-shell > .hero .hub-hero-stats,
body.site-premium-page.unified-v3 .site-main-shell > .hero .tools-hero-badges,
body.site-premium-page.unified-v3 .site-main-shell > .hero .flyers-hero-pills {
    justify-content: center;
}

/* Badge "en live" dans le hero : rouge si > 0 */
body.site-premium-page.unified-v3 .hero .hub-hero-stats span:last-child {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.35);
    color: #ff8080;
}

body.site-premium-page.unified-v3 .hero .hub-hero-stats span:last-child strong {
    color: #ff6060;
}

body.site-premium-page.unified-v3 .site-main-shell > .section:not(.home-hero) {
    padding-top: 10px;
}

body.site-premium-page.unified-v3 .site-main-shell > .section > .container {
    max-width: 1240px;
}

body.site-premium-page.unified-v3 .card:not(.home-live-board),
body.site-premium-page.unified-v3 .module-card,
body.site-premium-page.unified-v3 .table-container,
body.site-premium-page.unified-v3 .contact-quick-card,
body.site-premium-page.unified-v3 .tools-card,
body.site-premium-page.unified-v3 .hub-shell {
    border-radius: 14px;
    border: 1px dashed rgba(37, 49, 66, 0.2);
    background: linear-gradient(171deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 20px rgba(26, 39, 54, 0.08);
}

body.site-premium-page.unified-v3 .card::before {
    height: 3px;
}

body.site-premium-page.unified-v3 .card:hover,
body.site-premium-page.unified-v3 .module-card:hover,
body.site-premium-page.unified-v3 .tools-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(26, 39, 54, 0.13);
}

body.site-premium-page.unified-v3 .cards-grid {
    gap: 16px;
}

body.site-premium-page.unified-v3 .module-card-title,
body.site-premium-page.unified-v3 .section-title,
body.site-premium-page.unified-v3 .table-title {
    letter-spacing: -0.01em;
}

body.site-premium-page.unified-v3 .admin-toolbar {
    border-style: dashed;
}

body.site-premium-page.unified-v3 .sync-status {
    border-radius: 10px;
    border-left-width: 3px;
}

body.site-premium-page.unified-v3 .cta {
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(227, 155, 67, 0.2) 0%, rgba(227, 155, 67, 0) 42%),
        linear-gradient(150deg, #17263a 0%, #22354d 62%, #2a425f 100%);
}

body.site-premium-page.unified-v3 .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(227, 155, 67, 0.22);
}

/* ----- Unified v3 page-specific accents ----- */
body.site-premium-page.unified-v3 .actualites-admin-bar {
    border-radius: 12px;
    border: 1px dashed rgba(37, 49, 66, 0.22);
    background: linear-gradient(170deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 8px 18px rgba(26, 39, 54, 0.08);
}

body.site-premium-page.unified-v3 .actualites-loading,
body.site-premium-page.unified-v3 .actualites-empty {
    border-radius: 12px;
    border: 1px dashed rgba(37, 49, 66, 0.2);
    background: linear-gradient(172deg, #ffffff 0%, #f7fbff 100%);
}

body.site-premium-page.unified-v3 .contact-hub-grid {
    gap: 16px;
}

body.site-premium-page.unified-v3 .contact-quick-card,
body.site-premium-page.unified-v3 .contact-response-card {
    border-left: 4px solid rgba(227, 155, 67, 0.55);
}

body.site-premium-page.unified-v3 .contact-faq-item {
    border-radius: 12px;
    border: 1px dashed rgba(37, 49, 66, 0.2);
    box-shadow: 0 6px 14px rgba(26, 39, 54, 0.07);
}

body.site-premium-page.unified-v3 .tools-block-head {
    border-left: 4px solid rgba(227, 155, 67, 0.55);
    padding-left: 14px;
    margin-bottom: 18px;
}

body.site-premium-page.unified-v3 .tools-premium-grid,
body.site-premium-page.unified-v3 .tools-grid {
    gap: 14px;
}

body.site-premium-page.unified-v3 .tools-card-static,
body.site-premium-page.unified-v3 .tools-card {
    border: 1px dashed rgba(37, 49, 66, 0.2);
    box-shadow: 0 8px 18px rgba(26, 39, 54, 0.08);
}

body.site-premium-page.unified-v3 .tools-card-static:nth-child(odd),
body.site-premium-page.unified-v3 .tools-grid .tools-card:nth-child(odd) {
    transform: rotate(-0.28deg);
}

body.site-premium-page.unified-v3 .tools-card-static:nth-child(even),
body.site-premium-page.unified-v3 .tools-grid .tools-card:nth-child(even) {
    transform: rotate(0.25deg);
}

body.site-premium-page.unified-v3 .tools-card-static:hover,
body.site-premium-page.unified-v3 .tools-grid .tools-card:hover {
    transform: rotate(0deg) translateY(-3px);
}

body.site-premium-page.unified-v3 .gallery-toolbar {
    border: 1px dashed rgba(37, 49, 66, 0.2);
}

body.site-premium-page.unified-v3 .gallery-slider-wrap {
    box-shadow: 0 18px 44px rgba(13, 23, 35, 0.28);
    border: 1px solid rgba(227, 155, 67, 0.18);
}

body.site-premium-page.unified-v3 .community-gallery-grid {
    gap: 14px;
}

body.site-premium-page.unified-v3 .gallery-item {
    border-radius: 12px;
    border: 1px dashed rgba(37, 49, 66, 0.22);
    box-shadow: 0 8px 18px rgba(26, 39, 54, 0.08);
}

body.site-premium-page.unified-v3 .gallery-item:hover {
    transform: translateY(-3px);
}

body.site-premium-page.unified-v3 .gallery-modal-content {
    border-radius: 18px;
    border: 1px solid rgba(227, 155, 67, 0.22);
}

/* ----- Unified v3 hub page rework ----- */
body.site-premium-page.unified-v3 .hub-hero {
    padding: 86px 0 56px;
    text-align: center;
}

/* Nav cards */
body.site-premium-page.unified-v3 .hub-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

body.site-premium-page.unified-v3 .hub-nav-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid rgba(37, 49, 66, 0.13);
    background: linear-gradient(155deg, #ffffff 0%, #f4f8fd 100%);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

body.site-premium-page.unified-v3 .hub-nav-card:hover {
    box-shadow: 0 12px 32px rgba(37, 49, 66, 0.14);
    transform: translateY(-3px);
    border-color: rgba(227, 155, 67, 0.4);
}

body.site-premium-page.unified-v3 .hub-nav-card-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

body.site-premium-page.unified-v3 .hub-nav-card-body {
    flex: 1;
    min-width: 0;
}

body.site-premium-page.unified-v3 .hub-nav-card-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e39b43;
    margin: 0 0 4px;
}

body.site-premium-page.unified-v3 .hub-nav-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 6px;
}

body.site-premium-page.unified-v3 .hub-nav-card-desc {
    font-size: 0.84rem;
    color: #6b82a0;
    margin: 0 0 10px;
    line-height: 1.5;
}

body.site-premium-page.unified-v3 .hub-nav-card-count {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(227, 155, 67, 0.14);
    color: #a0650a;
    border-radius: 999px;
    padding: 3px 10px;
}

body.site-premium-page.unified-v3 .hub-nav-card-arrow {
    font-size: 1.3rem;
    color: #c4d0dc;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.site-premium-page.unified-v3 .hub-nav-card:hover .hub-nav-card-arrow {
    transform: translateX(4px);
    color: #e39b43;
}

/* Live section */
body.site-premium-page.unified-v3 .hub-live-section {
    background: linear-gradient(155deg, #ffffff 0%, #f4f8fd 100%);
    border: 1px solid rgba(37, 49, 66, 0.12);
    border-radius: 16px;
    padding: 24px;
}

body.site-premium-page.unified-v3 .hub-live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

body.site-premium-page.unified-v3 .hub-live-dot-anim {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
    animation: livePulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

body.site-premium-page.unified-v3 .hub-live-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}

body.site-premium-page.unified-v3 .hub-live-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.site-premium-page.unified-v3 .hub-live-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: rgba(220, 38, 38, 0.04);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

body.site-premium-page.unified-v3 .hub-live-card:hover {
    background: rgba(220, 38, 38, 0.08);
}

body.site-premium-page.unified-v3 .hub-live-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(220, 38, 38, 0.35);
}

body.site-premium-page.unified-v3 .hub-live-info {
    flex: 1;
    min-width: 0;
}

body.site-premium-page.unified-v3 .hub-live-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}

body.site-premium-page.unified-v3 .hub-live-title-text {
    font-size: 0.8rem;
    color: #4a6080;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.site-premium-page.unified-v3 .hub-live-viewers {
    font-size: 0.76rem;
    color: #dc2626;
    font-weight: 600;
    margin: 2px 0 0;
}

body.site-premium-page.unified-v3 .hub-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

body.site-premium-page.unified-v3 .hub-live-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1.4s ease-in-out infinite;
}

@media (max-width: 700px) {
    body.site-premium-page.unified-v3 .hub-nav-grid {
        grid-template-columns: 1fr;
    }
}


body.site-premium-page.unified-v3 .hub-hero-note {
    border-radius: 16px;
    border: 1px solid rgba(227, 155, 67, 0.3);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 14px 30px rgba(13, 23, 35, 0.22);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.site-premium-page.unified-v3 .hub-hero-note-kicker {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(227, 155, 67, 0.94);
    font-weight: 700;
}

body.site-premium-page.unified-v3 .hub-hero-note-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    line-height: 1.2;
}

body.site-premium-page.unified-v3 .hub-hero-note-text {
    margin: 0;
    color: rgba(240, 246, 251, 0.88);
    line-height: 1.62;
}

body.site-premium-page.unified-v3 .hub-hero-note-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.site-premium-page.unified-v3 .hub-hero-note-actions .btn {
    min-width: 0;
}

body.site-premium-page.unified-v3 .hub-section {
    padding-top: 26px;
}

body.site-premium-page.unified-v3 .hub-shell {
    border-radius: 18px;
    border: 1px solid rgba(37, 49, 66, 0.14);
    background: linear-gradient(172deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 16px 34px rgba(37, 49, 66, 0.1);
}

body.site-premium-page.unified-v3 .hub-shell-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 14px;
}

body.site-premium-page.unified-v3 .hub-shell-kicker {
    margin: 0 0 4px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    font-weight: 700;
}

body.site-premium-page.unified-v3 .hub-shell-title {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(1.2rem, 2.3vw, 1.52rem);
    line-height: 1.2;
}

body.site-premium-page.unified-v3 .hub-shell-lead {
    margin: 0;
    max-width: 460px;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

body.site-premium-page.unified-v3 .hub-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid #dde8f1;
    border-radius: 12px;
    background: #eff5fa;
    padding: 6px;
}

body.site-premium-page.unified-v3 .hub-tab {
    gap: 7px;
    justify-content: center;
    min-width: 146px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    margin-bottom: 0;
    font-size: 0.88rem;
}

body.site-premium-page.unified-v3 .hub-tab:hover {
    background: #f8fbff;
    border-color: #d7e2ec;
}

body.site-premium-page.unified-v3 .hub-tab.active {
    color: #2a1d0e;
    border-color: rgba(227, 155, 67, 0.45);
    background: linear-gradient(150deg, rgba(227, 155, 67, 0.26), rgba(227, 155, 67, 0.12));
}

body.site-premium-page.unified-v3 .hub-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    font-size: 0.95rem;
    line-height: 1;
}

body.site-premium-page.unified-v3 .hub-panel-head {
    margin-bottom: 16px;
}

body.site-premium-page.unified-v3 .hub-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.site-premium-page.unified-v3 .hub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.site-premium-page.unified-v3 .hub-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(37, 49, 66, 0.12);
    box-shadow: 0 10px 20px rgba(37, 49, 66, 0.11);
    aspect-ratio: 16 / 10;
    min-height: 0;
    background: #0d1723;
}

body.site-premium-page.unified-v3 .hub-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

body.site-premium-page.unified-v3 .hub-gallery-item:hover img {
    transform: scale(1.04);
}

body.site-premium-page.unified-v3 .hub-gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 18px 10px 9px;
    background: linear-gradient(180deg, rgba(13, 23, 35, 0) 0%, rgba(13, 23, 35, 0.7) 100%);
}

body.site-premium-page.unified-v3 .hub-gallery-tag {
    font-size: 0.7rem;
    background: rgba(21, 34, 51, 0.9);
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
}

body.site-premium-page.unified-v3 .hub-streamers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.site-premium-page.unified-v3 .hub-streamer-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(37, 49, 66, 0.12);
    background: linear-gradient(155deg, #ffffff 0%, #f3f8fd 100%);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.site-premium-page.unified-v3 .hub-streamer-card:hover {
    box-shadow: 0 6px 20px rgba(37, 49, 66, 0.14);
    transform: translateY(-2px);
}

body.site-premium-page.unified-v3 .hub-streamer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(227, 155, 67, 0.35);
}

body.site-premium-page.unified-v3 .hub-streamer-info {
    flex: 1;
    min-width: 0;
}

body.site-premium-page.unified-v3 .hub-streamer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.site-premium-page.unified-v3 .hub-streamer-tag {
    font-size: 0.75rem;
    color: #6b82a0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.site-premium-page.unified-v3 .hub-streamer-dots {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

body.site-premium-page.unified-v3 .hub-streamer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

body.site-premium-page.unified-v3 .hub-streamer-dot[data-platform="twitch"]  { background: #9146ff; }
body.site-premium-page.unified-v3 .hub-streamer-dot[data-platform="kick"]    { background: #53fc18; }
body.site-premium-page.unified-v3 .hub-streamer-dot[data-platform="youtube"] { background: #ff0000; }
body.site-premium-page.unified-v3 .hub-streamer-dot[data-platform="tiktok"]  { background: #010101; }
body.site-premium-page.unified-v3 .hub-streamer-dot[data-platform="discord"] { background: #5865f2; }

@media (max-width: 980px) {
    body.site-premium-page.unified-v3 .hub-hero-layout {
        grid-template-columns: 1fr;
    }

    body.site-premium-page.unified-v3 .hub-shell-top,
    body.site-premium-page.unified-v3 .hub-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.site-premium-page.unified-v3 .hub-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.site-premium-page.unified-v3 .hub-streamers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.site-premium-page.unified-v3 .hub-tabs {
        display: flex;
        width: 100%;
    }

    body.site-premium-page.unified-v3 .hub-tab {
        min-width: 0;
        flex: 1;
    }

    body.site-premium-page.unified-v3 .hub-gallery-grid,
    body.site-premium-page.unified-v3 .hub-streamers-grid {
        grid-template-columns: 1fr;
    }

    body.site-premium-page.unified-v3 .hub-hero-note-actions {
        flex-direction: column;
    }

    body.site-premium-page.unified-v3 .hub-hero-note-actions .btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    body.site-premium-page.unified-v3 .site-main-shell > .hero {
        margin-top: 76px;
        padding: 66px 0 36px;
        border-radius: 14px;
    }

    body.site-premium-page.unified-v3 .site-main-shell > .hero::before,
    body.site-premium-page.unified-v3 .site-main-shell > .hero::after {
        display: none;
    }

    body.site-premium-page.unified-v3 .cta {
        border-radius: 16px;
    }

    body.site-premium-page.unified-v3 .tools-card-static,
    body.site-premium-page.unified-v3 .tools-grid .tools-card {
        transform: none !important;
    }
}

/* ===========================
   EQUIPE PAGE REFORGE V3
   =========================== */
body.site-premium-page.equipe-page .site-main-shell {
    gap: 16px;
}

body.site-premium-page.equipe-page .site-main-shell > .hero.equipe-hero {
    margin-top: 84px;
    padding: 78px 0 50px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(13, 23, 35, 0.26);
}

body.site-premium-page.equipe-page .equipe-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 9% 15%, rgba(227, 155, 67, 0.22) 0%, rgba(227, 155, 67, 0) 34%),
        radial-gradient(circle at 86% 9%, rgba(18, 31, 47, 0.35) 0%, rgba(18, 31, 47, 0) 44%),
        linear-gradient(154deg, #142236 0%, #1e3047 48%, #263f5a 100%);
}

body.site-premium-page.equipe-page .equipe-hero::before,
body.site-premium-page.equipe-page .equipe-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body.site-premium-page.equipe-page .equipe-hero::before {
    width: 240px;
    height: 240px;
    right: 6%;
    top: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(227, 155, 67, 0.28), rgba(227, 155, 67, 0));
}

body.site-premium-page.equipe-page .equipe-hero::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -180px;
    background: radial-gradient(circle at center, rgba(227, 155, 67, 0.16), rgba(227, 155, 67, 0));
}

body.site-premium-page.equipe-page .equipe-hero .container {
    text-align: left;
    max-width: 1160px;
    position: relative;
    z-index: 1;
}

body.site-premium-page.equipe-page .equipe-hero .hero-title {
    margin: 0 0 12px;
    max-width: 760px;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4.5vw, 3.3rem);
}

body.site-premium-page.equipe-page .equipe-hero .hero-subtitle {
    margin: 0;
    max-width: 760px;
    font-size: 1.02rem;
    line-height: 1.66;
    color: rgba(255, 255, 255, 0.91);
}

body.site-premium-page.equipe-page .equipe-hero-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 9px;
}

body.site-premium-page.equipe-page .equipe-hero-badge {
    padding: 7px 12px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.79rem;
    font-weight: 600;
}

body.site-premium-page.equipe-page .equipe-hero-badge:nth-child(odd) {
    transform: rotate(-0.4deg);
}

body.site-premium-page.equipe-page .equipe-hero-badge:nth-child(even) {
    transform: rotate(0.35deg);
}

body.site-premium-page.equipe-page #equipeSection {
    padding-top: 4px;
}

body.site-premium-page.equipe-page .equipe-layout-head {
    margin-bottom: 12px;
    display: grid;
    gap: 8px;
    padding: 2px 0 8px 14px;
    border-left: 4px solid rgba(227, 155, 67, 0.58);
}

body.site-premium-page.equipe-page .equipe-layout-head .section-kicker {
    margin-bottom: 3px;
}

body.site-premium-page.equipe-page .equipe-layout-head .module-card-title {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

body.site-premium-page.equipe-page .equipe-layout-head .module-card-subtitle {
    margin: 0;
    max-width: 780px;
    font-size: 0.93rem;
}

body.site-premium-page.equipe-page .equipe-layout-note {
    width: fit-content;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(227, 155, 67, 0.28);
    background: rgba(227, 155, 67, 0.1);
    color: var(--accent-deep);
    font-size: 0.76rem;
}

body.site-premium-page.equipe-page .equipe-layout-note strong {
    margin-right: 6px;
    font-size: 0.72rem;
}

body.site-premium-page.equipe-page .equipe-departments-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.site-premium-page.equipe-page .team-dynamic {
    display: grid;
    gap: 24px;
}

body.site-premium-page.equipe-page .team-section {
    --dept-color: var(--accent-color);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.site-premium-page.equipe-page .team-section[data-department="Staff"] {
    --dept-color: #c97d26;
}

body.site-premium-page.equipe-page .team-section[data-department="LSPD"] {
    --dept-color: #2f80ed;
}

body.site-premium-page.equipe-page .team-section[data-department="EMS"] {
    --dept-color: #e74c3c;
}

body.site-premium-page.equipe-page .team-section[data-department="Gouvernement"] {
    --dept-color: #2d9b5f;
}

body.site-premium-page.equipe-page .team-section-title {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cinema-dark);
    font-size: 1.34rem;
    font-weight: 700;
}

body.site-premium-page.equipe-page .team-section-title::after {
    content: '';
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: var(--dept-color);
}

body.site-premium-page.equipe-page .team-section .cards-grid {
    position: relative;
    display: grid;
    gap: 13px;
    padding-left: 28px;
}

body.site-premium-page.equipe-page .team-section .cards-grid::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 6px;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--dept-color), rgba(37, 49, 66, 0.18));
}

body.site-premium-page.equipe-page .team-card {
    position: relative;
    margin: 0;
    text-align: left;
    border-radius: 13px;
    border: 1px solid rgba(37, 49, 66, 0.14);
    border-left: 4px solid var(--dept-color);
    background: linear-gradient(171deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 20px rgba(26, 39, 54, 0.08);
    padding: 14px 14px 13px 94px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.site-premium-page.equipe-page .team-card::before,
body.site-premium-page.equipe-page .team-card::after {
    display: none;
}

body.site-premium-page.equipe-page .team-card:hover {
    transform: translateX(3px) translateY(-1px);
    box-shadow: 0 14px 26px rgba(26, 39, 54, 0.13);
}

body.site-premium-page.equipe-page .team-card:nth-child(even) {
    background: linear-gradient(173deg, #ffffff 0%, #f5f9fe 100%);
}

body.site-premium-page.equipe-page .team-avatar {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 64px;
    height: 64px;
    margin: 0;
    font-size: 1.7rem;
    border: 1px solid rgba(37, 49, 66, 0.14);
    background: linear-gradient(145deg, rgba(227, 155, 67, 0.16), rgba(227, 155, 67, 0.05));
    box-shadow: 0 8px 16px rgba(227, 155, 67, 0.12);
    z-index: 1;
}

body.site-premium-page.equipe-page .team-avatar-discord {
    width: 64px;
    height: 64px;
    padding: 2px;
}

body.site-premium-page.equipe-page .team-name {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.32;
}

body.site-premium-page.equipe-page .team-role {
    margin: 4px 0 7px;
    display: inline-block;
    padding: 1px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--dept-color);
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.site-premium-page.equipe-page .team-description {
    margin: 0;
    color: var(--text-light);
    font-size: 0.89rem;
    line-height: 1.58;
}

body.site-premium-page.equipe-page .team-actions {
    margin-top: 11px;
    justify-content: flex-start;
    gap: 8px;
}

body.site-premium-page.equipe-page .team-action-btn {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.75rem;
}

body.site-premium-page.equipe-page .team-empty-card {
    max-width: 620px;
}

body.site-premium-page.equipe-page #equipeAdminPanel .admin-toolbar {
    border-radius: 12px;
    border: 1px dashed rgba(37, 49, 66, 0.22);
    background: linear-gradient(172deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 8px 18px rgba(26, 39, 54, 0.08);
}

body.site-premium-page.equipe-page .admin-actions .btn {
    padding: 9px 14px;
    font-size: 0.8rem;
}

body.site-premium-page.equipe-page .sync-status {
    border-radius: 10px;
    border-left-width: 3px;
}

body.site-premium-page.equipe-page .equipe-cta {
    margin-top: 2px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(227, 155, 67, 0.2) 0%, rgba(227, 155, 67, 0) 42%),
        linear-gradient(150deg, #17263a 0%, #22354d 62%, #2a425f 100%);
}

body.site-premium-page.equipe-page #equipeEditorModal .modal-content {
    max-width: 560px;
    border: 1px solid rgba(227, 155, 67, 0.22);
}

body.site-premium-page.equipe-page #gradeMappingModal .modal-content {
    max-width: 760px;
    border: 1px solid rgba(227, 155, 67, 0.22);
}

body.site-premium-page.equipe-page #equipeDeleteModal .modal-content {
    max-width: 520px;
}

body.site-premium-page.equipe-page #gradeMappingModal .modal-actions,
body.site-premium-page.equipe-page #equipeDeleteModal .modal-actions {
    justify-content: flex-end;
}

body.site-premium-page.equipe-page .grade-ids-textarea {
    min-height: 152px;
}

@media (max-width: 760px) {
    body.site-premium-page.equipe-page .site-main-shell > .hero.equipe-hero {
        margin-top: 76px;
        padding: 66px 0 36px;
        border-radius: 14px;
    }

    body.site-premium-page.equipe-page .equipe-hero-badge {
        transform: none !important;
    }

    body.site-premium-page.equipe-page .equipe-layout-head {
        border-left-width: 3px;
        padding-left: 10px;
        gap: 7px;
    }

    body.site-premium-page.equipe-page .team-section .cards-grid {
        padding-left: 0;
    }

    body.site-premium-page.equipe-page .team-section .cards-grid::before {
        display: none;
    }

    body.site-premium-page.equipe-page .team-card {
        padding: 13px 12px 12px 82px;
    }

    body.site-premium-page.equipe-page .team-avatar,
    body.site-premium-page.equipe-page .team-avatar-discord {
        left: 12px;
        top: 12px;
        width: 56px;
        height: 56px;
    }

    body.site-premium-page.equipe-page #gradeMappingModal .modal-content,
    body.site-premium-page.equipe-page #equipeEditorModal .modal-content,
    body.site-premium-page.equipe-page #equipeDeleteModal .modal-content {
        padding: 24px 18px;
    }

    body.site-premium-page.equipe-page #gradeMappingModal .modal-actions,
    body.site-premium-page.equipe-page #equipeDeleteModal .modal-actions {
        flex-direction: column-reverse;
    }
}

/* ===========================
   GALERIE Ã¢â‚¬â€ RESPONSIVE
   =========================== */

@media (max-width: 900px) {
    .gallery-slider-wrap {
        aspect-ratio: 16 / 7;
    }

    .community-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 170px;
    }
}

@media (max-width: 640px) {
    .gallery-slider-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .gallery-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .gallery-slider-prev { left: 8px; }
    .gallery-slider-next { right: 8px; }

    .gallery-item--wide {
        grid-column: span 1;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .community-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 9px;
    }

    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .gallery-modal-prev { left: 6px; }
    .gallery-modal-next { right: 6px; }

    #galleryModalImage {
        max-height: 65vh;
    }
}

/* ==========================================================
   MUR D'ACCÈS - PAGE OUTILS
   ========================================================== */

.oa-wall {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080f1a;
}

.oa-wall--loading {
    background: #080f1a;
}

.oa-wall--out {
    animation: oaWallOut 0.4s ease forwards;
    pointer-events: none;
}

.oa-wall-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
}

/* Spinner (chargement) */
.oa-wall-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e39b43;
    border-radius: 50%;
    animation: oaWallSpin 0.8s linear infinite;
}

.oa-wall-loading-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Contenu accès refusé */
.oa-wall-icon {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(227, 155, 67, 0.4));
}

.oa-wall-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.oa-wall-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.oa-wall-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.oa-wall-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.oa-wall-back {
    margin: 0;
    font-size: 0.8rem;
}

.oa-wall-back a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.15s;
}

.oa-wall-back a:hover {
    color: rgba(255, 255, 255, 0.65);
}

@keyframes oaWallSpin {
    to { transform: rotate(360deg); }
}

@keyframes oaWallOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* === FIN MUR D'ACCÈS === */
