:root {
    --bg-main: #0f1326;
    --bg-surface: #171d38;
    --bg-card: rgba(27, 34, 66, 0.88);
    --bg-card-hover: rgba(36, 45, 86, 0.96);
    --border-light: rgba(255, 255, 255, 0.12);
    --text-main: #f8faff;
    --text-muted: #a7b4d8;

    --blue: #2ec6f7;
    --blue-dark: #0088cc;
    --green: #41e79e;
    --green-dark: #1db974;
    --gold: #ffca28;
    --gold-dark: #e59400;
    --pink: #ff4785;
    --purple: #a855f7;
    --cosmic: #ff3366;
    --danger: #ff4d4f;

    /* Raretés Canards */
    --r-commun: #95a5a6;
    --r-rare: #3498db;
    --r-epique: #9b59b6;
    --r-legendaire: #f1c40f;
    --r-cosmique: #ff3366;
    --r-secret: #00f5d4;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(46, 198, 247, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(255, 202, 40, 0.14) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(255, 71, 133, 0.12) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Décorations lumineuses */
.bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
}

.blob-blue { width: 380px; height: 380px; background: var(--blue); top: -80px; left: -100px; }
.blob-yellow { width: 320px; height: 320px; background: var(--gold); top: 180px; right: -80px; }
.blob-pink { width: 350px; height: 350px; background: var(--pink); bottom: -80px; left: 25%; }
.blob-green { width: 280px; height: 280px; background: var(--green); bottom: 15%; right: 10%; }

/* Bandeau Hors Ligne */
.offline-banner {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.offline-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.offline-banner code {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: var(--font-mono);
}

.btn-mini {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 19, 38, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border-light);
    padding: 12px 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid var(--blue);
    box-shadow: 0 4px 14px rgba(46, 198, 247, 0.35);
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
}

.status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.offline { background: var(--danger); }

.brand-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}

.brand-duck {
    display: inline-block;
    animation: floatDuck 2.6s ease-in-out infinite;
}

@keyframes floatDuck {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(8deg); }
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--blue);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.nav-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-pill:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.nav-pill.active {
    background: linear-gradient(135deg, var(--blue), #0095ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 198, 247, 0.35);
}

.nav-pill-highlight {
    border: 1px dashed rgba(255, 202, 40, 0.5);
}

.pill-count {
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 7px;
    border-radius: 999px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid var(--border-light);
}

.status-pill.online {
    background: rgba(65, 231, 158, 0.14);
    color: var(--green);
    border-color: rgba(65, 231, 158, 0.4);
}

.status-pill.offline {
    background: rgba(255, 77, 79, 0.14);
    color: #ff8587;
    border-color: rgba(255, 77, 79, 0.4);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Boutons Ludiques 3D Arcade */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.play-vocal-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.5);
    transform: none !important;
}

.btn-lg {
    padding: 13px 22px;
    font-size: 1.04rem;
    border-radius: 16px;
}

.btn-sm {
    padding: 7px 13px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), #0077ff);
    color: #fff;
    box-shadow: 0 5px 0 #0051b3, 0 8px 20px rgba(46, 198, 247, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #1a1300;
    box-shadow: 0 5px 0 #b27b00, 0 8px 20px rgba(255, 202, 40, 0.35);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.btn-outline {
    background: rgba(46, 198, 247, 0.1);
    color: var(--blue);
    border: 2px solid rgba(46, 198, 247, 0.45);
}

.btn-danger {
    background: linear-gradient(135deg, #ff5e62, #e52d27);
    color: #fff;
    box-shadow: 0 4px 0 #9b1512;
}

.btn-user {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    padding: 8px 15px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 71, 133, 0.3);
}

/* Sections & Onglets */
.main-content {
    padding-top: 32px;
    padding-bottom: 64px;
}

.tab-section {
    display: none;
    animation: fadeInTab 0.28s ease-out;
}

.tab-section.active {
    display: block;
}

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

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 52px;
}

.hero-copy {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 202, 40, 0.14);
    border: 1px solid rgba(255, 202, 40, 0.4);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.8vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.text-gradient-blue {
    background: linear-gradient(90deg, #2ec6f7, #41e79e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(90deg, #ffe066, #ff9f1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-pink {
    background: linear-gradient(90deg, #ff6b9d, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.06rem;
    margin-bottom: 24px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.stat-chip {
    background: rgba(15, 19, 38, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-chip-icon {
    font-size: 1.5rem;
}

.stat-chip-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.stat-chip-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Mini-Machine Gacha dans le Hero */
.hero-gacha-card {
    background: linear-gradient(165deg, rgba(32, 41, 82, 0.95), rgba(20, 26, 54, 0.98));
    border: 2px solid rgba(255, 202, 40, 0.45);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.gacha-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gacha-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.gacha-Command-badge {
    font-family: var(--font-mono);
    background: rgba(46, 198, 247, 0.2);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
}

.gacha-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
}

.gacha-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.gacha-stage {
    background: rgba(12, 15, 30, 0.75);
    border: 2px solid var(--r-commun);
    border-radius: 20px;
    padding: 22px 16px;
    text-align: center;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.gacha-stage.rarity-commun { border-color: var(--r-commun); box-shadow: inset 0 0 25px rgba(149, 165, 166, 0.15); }
.gacha-stage.rarity-rare { border-color: var(--r-rare); box-shadow: inset 0 0 30px rgba(52, 152, 219, 0.28); }
.gacha-stage.rarity-epique { border-color: var(--r-epique); box-shadow: inset 0 0 35px rgba(155, 89, 182, 0.35); }
.gacha-stage.rarity-legendaire { border-color: var(--r-legendaire); box-shadow: inset 0 0 40px rgba(241, 196, 15, 0.4); }
.gacha-stage.rarity-cosmique { border-color: var(--r-cosmique); box-shadow: inset 0 0 45px rgba(255, 51, 102, 0.5); }

.gacha-rarity-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.gacha-duck-emoji {
    font-size: 4.3rem;
    line-height: 1.1;
    margin: 6px 0;
    display: inline-block;
}

.gacha-duck-emoji.pop {
    animation: gachaPop 0.45s cubic-bezier(0.18, 1.4, 0.4, 1);
}

@keyframes gachaPop {
    0% { transform: scale(0.3) rotate(-20deg); }
    70% { transform: scale(1.2) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}

.gacha-duck-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.gacha-duck-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    min-height: 2.6em;
}

.gacha-odds-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.odd-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

/* Section En-têtes */
.section-head {
    text-align: center;
    margin-bottom: 32px;
}

.section-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--blue);
    background: rgba(46, 198, 247, 0.12);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    margin-bottom: 6px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* Cartes des 4 Univers */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card.card-blue:hover { border-color: var(--blue); }
.feature-card.card-gold:hover { border-color: var(--gold); }
.feature-card.card-pink:hover { border-color: var(--pink); }
.feature-card.card-green:hover { border-color: var(--green); }

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Bandeau Donation */
.support-card {
    background: linear-gradient(135deg, rgba(35, 44, 88, 0.9), rgba(48, 28, 74, 0.9));
    border: 2px solid rgba(255, 202, 40, 0.35);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.support-gif {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.support-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 6px 0 8px;
}

.support-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.support-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Leaderboards */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.lb-tab {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 2px solid var(--border-light);
    padding: 11px 20px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-tab.active, .lb-tab:hover {
    background: linear-gradient(135deg, var(--gold), #ff9800);
    color: #1c1300;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 202, 40, 0.3);
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.podium-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    position: relative;
}

.podium-card.rank-1 {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(255, 202, 40, 0.16), var(--bg-card));
    transform: translateY(-6px);
}

.podium-card.rank-2 {
    border-color: #cbd5e1;
}

.podium-card.rank-3 {
    border-color: #d97706;
}

.podium-medal {
    font-size: 2.3rem;
    margin-bottom: 6px;
}

.podium-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.podium-score {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.podium-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 19, 38, 0.65);
    border: 1px solid var(--border-light);
    padding: 14px 18px;
    border-radius: 14px;
    gap: 14px;
}

.lb-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lb-rank-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
}

.lb-user-name {
    font-weight: 700;
    font-size: 1.02rem;
}

.lb-user-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lb-row-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blue);
}

/* Duckydex */
.rarity-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.rarity-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 2px solid var(--border-light);
    padding: 9px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rarity-btn.active, .rarity-btn:hover {
    color: #fff;
    border-color: var(--blue);
    background: rgba(46, 198, 247, 0.2);
}

.duckydex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.duck-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.duck-card:hover {
    transform: translateY(-5px);
}

.duck-card.rarity-commun { border-color: rgba(149, 165, 166, 0.55); }
.duck-card.rarity-rare { border-color: rgba(52, 152, 219, 0.65); }
.duck-card.rarity-epique { border-color: rgba(155, 89, 182, 0.75); }
.duck-card.rarity-legendaire { border-color: rgba(241, 196, 15, 0.85); box-shadow: 0 0 22px rgba(241, 196, 15, 0.16); }
.duck-card.rarity-cosmique { border-color: rgba(255, 51, 102, 0.9); box-shadow: 0 0 26px rgba(255, 51, 102, 0.25); }

.duck-owned-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(65, 231, 158, 0.2);
    color: var(--green);
    border: 1px solid rgba(65, 231, 158, 0.5);
}

.duck-emoji-big {
    font-size: 3.4rem;
    margin: 10px 0;
}

.duck-card h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.duck-rarity-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.duck-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Catalogue des Commandes */
.commands-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 6px 16px;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px;
    font-size: 1rem;
    outline: none;
}

.cmd-cat-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.cmd-cat-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    cursor: pointer;
}

.cmd-cat-btn.active {
    background: var(--blue);
    color: #081021;
    font-weight: 700;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.cmd-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cmd-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.cmd-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cmd-name {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
}

.cmd-badge {
    font-size: 0.74rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.cmd-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cmd-example {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard, Soundboard & Studio Embed */
.member-selector-card {
    margin-bottom: 24px;
}

.member-selector-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.member-input-group {
    flex: 1;
    min-width: 280px;
}

.member-input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input,
.embed-form input[type="text"],
.embed-form input[type="url"],
.embed-form select,
.embed-form textarea {
    width: 100%;
    background: rgba(10, 14, 28, 0.8);
    border: 2px solid var(--border-light);
    color: var(--text-main);
    padding: 11px 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.input-with-btn input:focus,
.embed-form input:focus,
.embed-form select:focus,
.embed-form textarea:focus {
    border-color: var(--blue);
}

.quick-members-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-label {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
}

.quick-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.member-chip {
    background: rgba(46, 198, 247, 0.14);
    border: 1px solid rgba(46, 198, 247, 0.4);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.member-chip:hover, .member-chip.active {
    background: var(--blue);
    color: #081021;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 24px;
    align-items: start;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    border: 3px solid var(--blue);
    object-fit: cover;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-name-row h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
}

.role-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.role-badge.owner {
    background: linear-gradient(135deg, var(--gold), #ff9800);
    color: #1a1200;
}

.role-badge.admin {
    background: rgba(255, 71, 133, 0.25);
    color: #ff85ad;
    border: 1px solid var(--pink);
}

.profile-username {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.voice-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.voice-status-badge.connected {
    background: rgba(65, 231, 158, 0.18);
    color: var(--green);
    border: 1px solid rgba(65, 231, 158, 0.45);
}

.voice-status-badge.muted {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.p-stat {
    background: rgba(12, 16, 33, 0.7);
    border: 1px solid var(--border-light);
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.p-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.p-stat-val {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.p-stat-val.gold { color: var(--gold); }
.p-stat-val.blue { color: var(--blue); }
.p-stat-val.green { color: var(--green); }
.p-stat-val.pink { color: var(--pink); }

.collection-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.collection-pct {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gold);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.profile-ducks-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mini-duck-slot {
    background: rgba(12, 16, 33, 0.75);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
    position: relative;
}

.mini-duck-slot.locked {
    opacity: 0.32;
    filter: grayscale(1);
}

.mini-duck-emoji {
    font-size: 1.55rem;
    display: block;
}

.mini-duck-count {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--gold);
    font-weight: 700;
}

/* Soundboard Grid */
.card-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 0.06em;
}

.card-help {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}

.sound-pad {
    background: linear-gradient(160deg, rgba(38, 49, 96, 0.95), rgba(23, 30, 62, 0.95));
    border: 2px solid rgba(46, 198, 247, 0.35);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.14s ease, border-color 0.14s ease;
}

.sound-pad:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.sound-pad-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sound-pad-icon {
    font-size: 1.8rem;
}

.sound-preview-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
    cursor: pointer;
}

.sound-preview-btn:hover {
    background: rgba(46, 198, 247, 0.25);
}

.sound-pad-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.sound-pad-file {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.sound-play-discord-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--green), #129c5c);
    color: #061f12;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 #0a633a;
}

/* Studio Créateur d'Embed */
.admin-access-badge {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
}

.admin-access-badge.locked {
    background: rgba(255, 77, 79, 0.16);
    color: #ff8587;
    border: 1px solid rgba(255, 77, 79, 0.4);
}

.admin-access-badge.unlocked {
    background: rgba(65, 231, 158, 0.16);
    color: var(--green);
    border: 1px solid rgba(65, 231, 158, 0.4);
}

.lock-notice {
    background: rgba(255, 202, 40, 0.12);
    border: 1px solid rgba(255, 202, 40, 0.35);
    color: #ffe082;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    margin-bottom: 16px;
}

.embed-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-row input[type="color"] {
    width: 44px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.color-presets {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

/* Aperçu Embed Discord */
.discord-preview-wrapper {
    background: #313338;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #949ba4;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
}

.discord-message-mock {
    display: flex;
    gap: 12px;
}

.discord-mock-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.discord-mock-body {
    flex: 1;
}

.discord-mock-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.discord-mock-username {
    font-weight: 700;
    color: #f2f3f5;
    font-size: 0.92rem;
}

.discord-bot-tag {
    background: #5865f2;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.discord-mock-time {
    font-size: 0.72rem;
    color: #949ba4;
}

.discord-embed-box {
    background: #2b2d31;
    border-left: 4px solid #2ec6f7;
    border-radius: 4px;
    padding: 12px 14px;
    max-width: 460px;
}

.discord-embed-title {
    font-weight: 700;
    color: #f2f3f5;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.discord-embed-desc {
    color: #dbdee1;
    font-size: 0.88rem;
    white-space: pre-wrap;
}

.discord-embed-img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 10px;
}

.action-feedback {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.action-feedback.success {
    background: rgba(65, 231, 158, 0.16);
    color: var(--green);
    border: 1px solid rgba(65, 231, 158, 0.45);
}

.action-feedback.error {
    background: rgba(255, 77, 79, 0.16);
    color: #ff8587;
    border: 1px solid rgba(255, 77, 79, 0.45);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 28px 0;
    background: rgba(10, 13, 26, 0.8);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--blue);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1b2448;
    border: 2px solid var(--blue);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    font-weight: 600;
    font-size: 0.92rem;
    animation: fadeInTab 0.2s ease;
}

/* Responsive & Nouveaux Modules (Fresque Illuminée, Multi-Serveurs, QG Créateur) */
.guild-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 5px 12px;
}

.guild-select-icon {
    font-size: 0.95rem;
}

.guild-selector {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    max-width: 190px;
}

.guild-selector option {
    background: #171d38;
    color: #fff;
}

/* Illustration dans le Simulateur Gacha */
.gacha-artwork-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 12px;
}

.gacha-duck-img {
    width: 148px;
    height: 148px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.gacha-duck-img.pop {
    animation: gachaPop 0.45s cubic-bezier(0.18, 1.4, 0.4, 1);
}

.gacha-stage.rarity-secret {
    border-color: var(--r-secret);
    box-shadow: inset 0 0 45px rgba(0, 245, 212, 0.45);
}

.odd-pill.secret {
    color: var(--r-secret);
    border: 1px solid rgba(0, 245, 212, 0.4);
}

/* =========================================================
   FRESQUE ILLUMINÉE (DUCKYDEX & PROFIL)
   ========================================================= */
.duckydex-fresque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 18px;
}

.fresque-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 22px;
    padding: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.fresque-card.unlocked {
    border-width: 2px;
}

.fresque-card.unlocked:hover {
    transform: translateY(-6px) scale(1.02);
}

.fresque-card.unlocked::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -120%;
    width: 65%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: rotate(35deg);
    transition: all 0.55s ease;
    pointer-events: none;
}

.fresque-card.unlocked:hover::after {
    left: 160%;
}

/* Couleurs & Néons des Raretés quand Débloqué */
.fresque-card.unlocked.rarity-commun {
    border-color: var(--r-commun);
    box-shadow: 0 0 18px rgba(149, 165, 166, 0.35);
}
.fresque-card.unlocked.rarity-rare {
    border-color: var(--r-rare);
    box-shadow: 0 0 22px rgba(52, 152, 219, 0.45);
}
.fresque-card.unlocked.rarity-epique {
    border-color: var(--r-epique);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.55);
}
.fresque-card.unlocked.rarity-legendaire {
    border-color: var(--r-legendaire);
    box-shadow: 0 0 28px rgba(241, 196, 15, 0.65);
}
.fresque-card.unlocked.rarity-cosmique {
    border-color: var(--r-cosmique);
    box-shadow: 0 0 32px rgba(255, 51, 102, 0.72);
}
.fresque-card.unlocked.rarity-secret {
    border-color: var(--r-secret);
    box-shadow: 0 0 34px rgba(0, 245, 212, 0.78);
}

.fresque-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #090c18;
}

.fresque-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.fresque-card.unlocked:hover .fresque-img {
    transform: scale(1.06);
}

/* État Éteint / Verrouillé dans l'ombre */
.fresque-card.locked {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(14, 18, 36, 0.75);
}

.fresque-card.locked .fresque-img {
    filter: brightness(0.18) grayscale(0.85) contrast(1.1);
}

.fresque-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: radial-gradient(circle, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.fresque-lock-label {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--text-muted);
}

.fresque-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 14, 28, 0.88);
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.fresque-emoji-corner {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    font-size: 1.25rem;
    background: rgba(10, 14, 28, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini Fresque dans le Profil Membre */
.profile-fresque-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.fresque-mini-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: #090c18;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fresque-mini-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fresque-mini-tile.unlocked:hover {
    transform: scale(1.12);
    z-index: 5;
}

.fresque-mini-tile.unlocked.rarity-commun { border-color: var(--r-commun); box-shadow: 0 0 10px rgba(149, 165, 166, 0.45); }
.fresque-mini-tile.unlocked.rarity-rare { border-color: var(--r-rare); box-shadow: 0 0 12px rgba(52, 152, 219, 0.55); }
.fresque-mini-tile.unlocked.rarity-epique { border-color: var(--r-epique); box-shadow: 0 0 14px rgba(155, 89, 182, 0.65); }
.fresque-mini-tile.unlocked.rarity-legendaire { border-color: var(--r-legendaire); box-shadow: 0 0 16px rgba(241, 196, 15, 0.75); }
.fresque-mini-tile.unlocked.rarity-cosmique { border-color: var(--r-cosmique); box-shadow: 0 0 18px rgba(255, 51, 102, 0.85); }
.fresque-mini-tile.unlocked.rarity-secret { border-color: var(--r-secret); box-shadow: 0 0 20px rgba(0, 245, 212, 0.9); }

.fresque-mini-tile.locked img {
    filter: brightness(0.18) grayscale(0.85) contrast(1.1);
}

.fresque-mini-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(0, 0, 0, 0.35);
}

.fresque-mini-count {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.82);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
}

/* =========================================================
   👑 QG CRÉATEUR — MODE DIEU (OWNER ONLY)
   ========================================================= */
.owner-hq-wrapper {
    margin-bottom: 32px;
    border: 2px solid var(--r-secret);
    border-radius: var(--radius-lg);
    padding: 26px;
    background: linear-gradient(155deg, rgba(16, 36, 58, 0.92), rgba(22, 18, 48, 0.95));
    box-shadow: 0 0 36px rgba(0, 245, 212, 0.18);
}

.owner-hq-banner {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 245, 212, 0.25);
}

.owner-hq-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.owner-crown-badge {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #1a1100;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 999px;
}

.owner-id-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--r-secret);
    background: rgba(0, 245, 212, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
}

.owner-hq-banner h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin-bottom: 4px;
}

.owner-hq-banner p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.owner-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.owner-tool-wide {
    grid-column: 1 / -1;
}

.owner-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 202, 40, 0.16);
    color: var(--gold);
}

.owner-pill.secret-pill {
    background: rgba(0, 245, 212, 0.16);
    color: var(--r-secret);
    border: 1px solid rgba(0, 245, 212, 0.4);
}

.owner-guilds-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.owner-guild-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(10, 14, 28, 0.72);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 14px;
    flex-wrap: wrap;
}

.owner-guild-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-guild-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.owner-guild-name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
}

.owner-guild-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.presence-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.presence-badge.in {
    background: rgba(65, 231, 158, 0.18);
    color: var(--green);
}

.presence-badge.out {
    background: rgba(255, 202, 40, 0.18);
    color: var(--gold);
}

/* Sélecteur visuel des 22 canards dans le QG Créateur */
.owner-duck-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 10px;
    max-height: 330px;
    overflow-y: auto;
    padding: 6px;
    background: rgba(8, 11, 24, 0.65);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.duck-pick-item {
    background: rgba(20, 26, 52, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.16s ease;
    position: relative;
}

.duck-pick-item:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
}

.duck-pick-item.selected {
    border-color: var(--r-secret);
    background: rgba(0, 245, 212, 0.15);
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.45);
}

.duck-pick-item.is-secret {
    border-color: rgba(0, 245, 212, 0.55);
}

.duck-pick-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 6px;
    display: block;
}

.duck-pick-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    line-height: 1.15;
    display: block;
}

.duck-pick-rarity {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.embed-form input[type="number"] {
    width: 100%;
    background: rgba(10, 14, 28, 0.8);
    border: 2px solid var(--border-light);
    color: var(--text-main);
    padding: 11px 14px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
}

.checkbox-group {
    margin: 4px 0;
}

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--r-secret);
}

.btn-secret {
    background: linear-gradient(135deg, #00f5d4, #00bbf9);
    color: #041f1e;
    box-shadow: 0 5px 0 #008b76, 0 8px 22px rgba(0, 245, 212, 0.35);
}

/* =========================================================
   🔐 AUTHENTIFICATION DISCORD OAUTH2 & NAVBAR PROFIL
   ========================================================= */
.btn-discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    padding: 9px 16px;
    font-size: 0.9rem;
    box-shadow: 0 4px 0 #323b96, 0 8px 18px rgba(88, 101, 242, 0.35);
}

.nav-auth-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 4px 6px 4px 8px;
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    object-fit: cover;
}

.btn-logout-mini {
    background: rgba(255, 77, 79, 0.18);
    color: #ff8587;
    border: 1px solid rgba(255, 77, 79, 0.45);
    border-radius: 999px;
    padding: 5px 11px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-logout-mini:hover {
    background: var(--danger);
    color: #fff;
}

/* Carte d'invitation OAuth2 dans le Dashboard */
.auth-gate-card {
    background: linear-gradient(155deg, rgba(27, 34, 68, 0.95), rgba(18, 22, 46, 0.98));
    border: 2px solid rgba(88, 101, 242, 0.65);
    border-radius: var(--radius-lg);
    padding: 46px 32px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(88, 101, 242, 0.18);
}

.auth-gate-icon {
    font-size: 3.6rem;
    margin-bottom: 14px;
}

.auth-gate-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-bottom: 12px;
}

.auth-gate-card p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 24px;
}

.auth-gate-actions {
    display: flex;
    justify-content: center;
}

/* Barre d'inspection dans le QG Créateur (Owner-only) */
.owner-inspect-bar {
    background: rgba(8, 12, 26, 0.68);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* =========================================================
   🌸 SANCTUAIRE SECRET DE MARJEE (MARJEE_ID = 619469476873764864)
   ========================================================= */
.marjee-sanctuary-wrapper {
    margin-bottom: 32px;
    border: 2px solid #ff70a6;
    border-radius: var(--radius-lg);
    padding: 26px;
    background: linear-gradient(145deg, rgba(58, 18, 48, 0.92), rgba(28, 16, 48, 0.96));
    box-shadow: 0 0 38px rgba(255, 112, 166, 0.25);
}

.marjee-sanctuary-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: center;
}

.marjee-duck-showcase {
    background: rgba(15, 10, 26, 0.78);
    border: 2px solid rgba(255, 112, 166, 0.55);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 0 26px rgba(255, 112, 166, 0.3);
}

.marjee-showcase-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #ff70a6;
    margin-bottom: 12px;
    display: block;
}

.marjee-rarity-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 112, 166, 0.2);
    color: #ff9ebb;
    border: 1px solid rgba(255, 112, 166, 0.5);
    margin-bottom: 8px;
}

.marjee-duck-showcase h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #ffd6e7;
    margin-bottom: 4px;
}

.marjee-duck-showcase p {
    font-size: 0.85rem;
    color: #e2b8c9;
}

.marjee-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.marjee-crown-badge {
    background: linear-gradient(135deg, #ff70a6, #ff4785);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.84rem;
    padding: 5px 14px;
    border-radius: 999px;
}

.marjee-id-tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #ff9ebb;
    background: rgba(255, 112, 166, 0.16);
    padding: 4px 10px;
    border-radius: 8px;
}

.marjee-sanctuary-form-box h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: #fff0f6;
    margin-bottom: 6px;
}

.btn-marjee {
    background: linear-gradient(135deg, #ff70a6, #ff3366);
    color: #fff;
    box-shadow: 0 5px 0 #a31542, 0 8px 24px rgba(255, 112, 166, 0.4);
}

.role-badge.marjee {
    background: linear-gradient(135deg, #ff70a6, #c084fc);
    color: #210718;
}

@media (max-width: 1024px) {
    .hero-grid,
    .dashboard-grid,
    .owner-tools-grid,
    .marjee-sanctuary-grid,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .features-grid,
    .podium-grid,
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .support-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-fresque-mini-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
