/* ══════════════════════════════════════════════════
   Planning Poker — Futuristic Pro Design
   ══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-deep: #06080f;
    --bg-surface: #0c1019;
    --bg-card: rgba(14, 18, 30, 0.7);
    --bg-elevated: rgba(20, 26, 44, 0.6);
    --border: rgba(99, 102, 241, 0.12);
    --border-hover: rgba(99, 102, 241, 0.35);
    --text-primary: #eef2ff;
    --text-secondary: #7c85a6;
    --text-muted: #4a5068;
    --accent-1: #6366f1;
    --accent-2: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glow-1: rgba(99, 102, 241, 0.08);
    --glow-2: rgba(6, 182, 212, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Animated background ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ── Screens ── */
.screen { display: none; position: relative; z-index: 1; }
.screen.active { display: flex; flex-direction: column; }

/* ── Login screen ── */
#screen-login {
    min-height: 100vh;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.login-card h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.member-btn {
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 16px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.member-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.25s;
}

.member-btn:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.member-btn:hover::before {
    opacity: 0.08;
}

.add-member-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-add {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    width: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

/* ── Inputs ── */
.input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(12, 16, 25, 0.8);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input::placeholder {
    color: var(--text-muted);
}

/* ── Top bar ── */
.topbar {
    background: rgba(12, 16, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: flex;
    align-items: center;
}

.app-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.title-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 6px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-pill {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--glow-1);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    font-size: 12px;
    padding: 7px 14px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    transform: translateY(-1px);
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--glow-1);
}

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

.btn-icon-sm {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

/* ── Main content ── */
.main-content {
    max-width: 940px;
    margin: 0 auto;
    padding: 28px 20px;
    position: relative;
    z-index: 1;
}

.admin-layout {
    max-width: 800px;
}

/* ── Glass cards ── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.03),
        0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.18);
}

.glass-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 2px;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Session cards ── */
.session-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.session-card.status-voting::before {
    background: var(--accent-gradient);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.session-card.status-revealed::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.session-card.status-closed {
    opacity: 0.5;
}

.session-card.status-closed::before {
    background: var(--text-muted);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.session-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.session-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.session-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.status-badge-voting {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-badge-revealed {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Vote cards (poker) ── */
.vote-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vote-card {
    width: 84px;
    height: 112px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.vote-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-6px);
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.vote-card.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.35),
        0 0 40px rgba(99, 102, 241, 0.15);
    color: white;
}

/* ── Vote card with image ── */
.vote-card-img {
    width: 96px;
    height: 124px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 8px;
    gap: 5px;
}

.vote-card-img img {
    width: 100%;
    height: auto;
    max-height: 78px;
    object-fit: contain;
    border-radius: 8px;
}

.vote-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-card-img:hover {
    border-color: var(--accent-1);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.vote-card-img.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.vote-card-img.selected .vote-card-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-card-img {
    width: 42px;
    height: auto;
    border-radius: 6px;
}

/* ── Results ── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.result-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    transition: border-color 0.2s;
}

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

.result-name {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.result-value {
    font-size: 26px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-hidden .result-value {
    -webkit-text-fill-color: var(--text-muted);
    background: none;
}

.vote-summary {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.summary-stat {
    text-align: center;
}

.summary-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-value {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Actions row ── */
.session-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── Admin items ── */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

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

.admin-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-item-name {
    font-weight: 500;
    font-size: 14px;
}

.admin-item-actions {
    display: flex;
    gap: 6px;
}

/* ── Admin cards grid ── */
.cards-admin-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.admin-card-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    transition: border-color 0.2s;
}

.admin-card-item:hover {
    border-color: var(--border-hover);
}

.admin-card-visual {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.admin-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-card-text {
    font-size: 26px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-card-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.add-card-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.add-card-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ── File upload button ── */
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.file-upload-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--glow-1);
}

/* ── Card image preview ── */
.card-preview {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

/* ── Empty state ── */
.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

/* ── Online presence section ── */
.online-section {
    padding: 22px 28px;
}

.online-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.online-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.online-section h2 {
    font-size: 16px;
    margin-bottom: 2px;
}

.online-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.9), 0 0 24px rgba(16, 185, 129, 0.3); }
}

.online-count {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.online-users {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px 5px 5px;
    transition: all 0.2s;
}

.online-user:hover {
    border-color: var(--border-hover);
}

.online-user-me {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.08);
}

.online-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .login-card {
        padding: 36px 24px;
        border-radius: var(--radius);
    }
    .form-row { flex-direction: column; }
    .vote-card { width: 46px; height: 60px; font-size: 15px; }
    .vote-card-img { width: 56px; height: 72px; }
    .topbar { padding: 0 14px; height: 52px; }
    .glass-card { padding: 20px; border-radius: var(--radius); }
    .main-content { padding: 16px 12px; }
    .session-card { padding: 20px; }
    .members-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════
   AURORA THEME OVERRIDE — Franky's Stuffs
   Aligne le voting avec le design global du site
   (violet #a855f7, cyan #06b6d4, rose #ec4899)
   ══════════════════════════════════════════════════ */
:root {
    --bg-deep: #0a081f;
    --bg-surface: #11102b;
    --bg-card: rgba(20, 18, 50, 0.72);
    --bg-elevated: rgba(30, 26, 70, 0.55);
    --border: rgba(168, 85, 247, 0.16);
    --border-hover: rgba(168, 85, 247, 0.45);
    --text-primary: #f5f3ff;
    --text-secondary: #a5acc7;
    --text-muted: #6b7290;
    --accent-1: #a855f7;
    --accent-2: #06b6d4;
    --accent-3: #ec4899;
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 60%, #ec4899 110%);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glow-1: rgba(168, 85, 247, 0.10);
    --glow-2: rgba(6, 182, 212, 0.08);
    --glow-3: rgba(236, 72, 153, 0.10);
    --radius: 14px;
    --radius-lg: 22px;
}

/* ── Fond animé aurora avec 3 blobs ── */
body {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(168,85,247,0.25), transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(6,182,212,0.20), transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(236,72,153,0.18), transparent 55%),
        var(--bg-deep);
    background-attachment: fixed;
}
.bg-grid {
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
    opacity: 0.6;
}
.bg-glow-1 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
}
.bg-glow-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
}
body::after {
    content: '';
    position: fixed;
    width: 420px; height: 420px;
    bottom: 20%; right: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.10), transparent 70%);
    filter: blur(120px);
    z-index: 0; pointer-events: none;
    animation: float 24s ease-in-out infinite;
    animation-delay: -6s;
}

/* ── Login card aurora ── */
.login-card {
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.08),
        0 24px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.login-card h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-logo {
    margin-bottom: 18px;
}

/* ── Topbar aurora ── */
.topbar {
    background: rgba(10, 8, 31, 0.85);
    border-bottom: 1px solid rgba(168, 85, 247, 0.14);
    height: 64px;
    padding: 0 32px;
}
.app-title {
    background: linear-gradient(90deg, #f5f3ff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.title-badge {
    background: none;
    -webkit-text-fill-color: rgba(245, 243, 255, 0.55);
    color: rgba(245, 243, 255, 0.55);
    font-weight: 600;
    letter-spacing: 1.8px;
    margin-left: 8px;
}

.user-pill {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.28);
    color: #c4b5fd;
    padding: 6px 16px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s, border-color .2s;
}
.user-pill::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/></svg>") center/contain no-repeat;
    opacity: 0.85;
}
.user-pill:hover {
    background: rgba(168, 85, 247, 0.20);
    border-color: rgba(168, 85, 247, 0.45);
}

/* ── Boutons aurora ── */
.btn-primary {
    background: var(--accent-gradient);
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.32);
}
.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(168, 85, 247, 0.45);
}
.btn-add {
    background: var(--accent-gradient);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.32);
}
.btn-add:hover {
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
}
.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.28);
}
.btn-success:hover {
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
}

/* ── Inputs aurora ── */
.input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

/* ── Member buttons (hover) ── */
.member-btn:hover {
    box-shadow: 0 10px 32px rgba(168, 85, 247, 0.22);
}

/* ── Glass cards aurora ── */
.glass-card {
    border: 1.5px solid rgba(168, 85, 247, 0.32) !important;
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.10),
        0 12px 42px rgba(0, 0, 0, 0.45);
}
.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.55) !important;
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.18),
        0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ── Session cards : barre latérale gradient aurora ── */
.session-card.status-voting::before {
    background: var(--accent-gradient);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.38);
}
.session-card.status-revealed::before {
    background: linear-gradient(180deg, #22c55e, #06b6d4);
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.32);
}

.status-badge-voting {
    background: rgba(168, 85, 247, 0.14);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.30);
}
.status-badge-revealed {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

/* ── Cartes de vote (poker) aurora ── */
.vote-card {
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(30, 26, 70, 0.7), rgba(20, 18, 50, 0.5));
    border: 2px solid rgba(168, 85, 247, 0.45);
}
.vote-card-img {
    border: 2px solid rgba(168, 85, 247, 0.40) !important;
}
.session-card {
    border: 1.5px solid rgba(168, 85, 247, 0.28) !important;
}
.result-item {
    border: 1.5px solid rgba(168, 85, 247, 0.30) !important;
    background: rgba(20, 18, 50, 0.55) !important;
}
.result-item:hover {
    border-color: rgba(168, 85, 247, 0.55) !important;
}
.vote-card:hover {
    border-color: var(--accent-1);
    box-shadow:
        0 14px 36px rgba(168, 85, 247, 0.28),
        0 0 0 1px rgba(168, 85, 247, 0.15);
}
.vote-card.selected {
    background: var(--accent-gradient);
    box-shadow:
        0 14px 36px rgba(168, 85, 247, 0.45),
        0 0 50px rgba(6, 182, 212, 0.25);
}
.vote-card-img:hover {
    box-shadow: 0 14px 36px rgba(168, 85, 247, 0.28);
}
.vote-card-img.selected {
    background: var(--accent-gradient);
    box-shadow: 0 14px 36px rgba(168, 85, 247, 0.45);
}

/* ── Résultats gradient aurora ── */
.result-value {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.summary-value {
    background: linear-gradient(135deg, #22c55e, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Admin avatar + cartes admin ── */
.admin-item-avatar { background: var(--accent-gradient); }
.admin-card-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Online presence ── */
.online-dot {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
    50%      { box-shadow: 0 0 16px rgba(34, 197, 94, 0.95), 0 0 28px rgba(34, 197, 94, 0.35); }
}
.online-count {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}
.online-user-me {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.10);
}
.online-user-avatar { background: var(--accent-gradient); }

/* ── Bandeau "retour au dashboard" en haut (DEPRECATED — désactivé) ── */
.fs-back-banner { display: none !important; }

/* ── Stage : conteneur centré comme la démo Aurora ── */
.stage {
    width: 100%;
    max-width: 1134px;
    margin: 0 auto;
    padding: 36px 24px 60px;
    position: relative;
    z-index: 1;
}

/* La topbar redevient une carte arrondie à l'intérieur du stage
   (au lieu d'un bandeau sticky pleine largeur) */
.stage .topbar {
    position: static;
    height: auto;
    padding: 14px 22px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(20, 18, 50, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    z-index: auto;
}

/* Le main content, à l'intérieur du stage, perd sa largeur max et son padding
   (déjà gérés par .stage) */
.stage .main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Cartes glass un peu plus arrondies pour matcher le rendu démo */
.stage .glass-card {
    border-radius: 18px;
    margin-bottom: 18px;
}
.stage .session-card {
    border-radius: 18px;
    margin-bottom: 18px;
}

/* Stage plus étroit pour l'écran de sélection du membre */
#screen-login > .stage { max-width: 794px; }

@media (max-width: 640px) {
    .stage { padding: 20px 14px 40px; }
    .stage .topbar { padding: 12px 16px; border-radius: 14px; }
}

/* ── Logo mark hex circuit dans la topbar ── */
.logo-mark svg { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) {
    .online-dot { animation: none; }
    body::after { animation: none; }
}
