/* ========================================
   AIRBNB VOTE — Style
   ======================================== */

:root {
    --bg: #0f0f17;
    --bg-elev: #1a1a26;
    --bg-elev-2: #252535;
    --border: #2a2a3a;
    --text: #f5f5fa;
    --text-muted: #9090a8;
    --accent: #ff5a5f;
    --accent-hover: #ff7378;
    --like: #2ecc71;
    --like-bg: rgba(46, 204, 113, 0.15);
    --pass: #ff5a5f;
    --pass-bg: rgba(255, 90, 95, 0.15);
    --warn: #ffc857;
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(ellipse at top left, rgba(255, 90, 95, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(46, 204, 113, 0.05), transparent 50%),
        var(--bg);
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== NAV ===== */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(15, 15, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.logo {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 100px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-links a.active { color: var(--text); background: var(--bg-elev-2); }

.user-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 14px;
    background: var(--bg-elev);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}
.user-pill a {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-elev-2);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.user-pill a:hover { color: var(--text); background: var(--accent); }

.trip-banner {
    text-align: center;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(255, 90, 95, 0.12), rgba(46, 204, 113, 0.1));
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

/* ===== MAIN ===== */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }

/* ===== WELCOME ===== */
.welcome-screen {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.welcome-emoji { font-size: 4rem; margin-bottom: 12px; }
.welcome-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.subtitle { color: var(--text-muted); margin-bottom: 28px; }

.welcome-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.welcome-form label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.feature {
    font-size: 0.78rem;
    padding: 6px 12px;
    background: var(--bg-elev-2);
    border-radius: 100px;
    color: var(--text-muted);
}

/* ===== INPUTS ===== */
input[type="text"], input[type="url"], input[type="password"], input[type="number"], textarea, select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}
textarea { resize: vertical; min-height: 80px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-elev); color: var(--text); }

.error {
    padding: 12px 16px;
    background: rgba(255, 90, 95, 0.15);
    border: 1px solid rgba(255, 90, 95, 0.3);
    border-radius: var(--radius-sm);
    color: #ffabad;
    font-size: 0.9rem;
}

.hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

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

/* ===== ADD PAGE ===== */
.add-page h1 { margin-bottom: 24px; }

.add-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.add-form.detailed { gap: 12px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.preview-image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.preview-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.section-block {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.section-block h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}
.inline-form input {
    flex: 1;
    min-width: 180px;
}
.inline-form button {
    white-space: nowrap;
    padding: 14px 18px;
    font-size: 0.9rem;
}

.highlights-preview {
    margin: 8px 0;
    padding: 12px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
}
.highlights-preview strong { font-size: 0.85rem; color: var(--text-muted); }
.highlights-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.highlight-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-elev-2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.form-actions a, .form-actions button { flex: 1; }

.success-card {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-elev);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.success-emoji { font-size: 4rem; margin-bottom: 16px; }
.success-card h2 { margin-bottom: 8px; }
.success-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== SWIPE PAGE ===== */
.swipe-page {
    max-width: 420px;
    margin: 0 auto;
}
.swipe-header {
    text-align: center;
    margin-bottom: 16px;
}
.swipe-header h1 { font-size: 1.5rem; }
.swipe-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.swipe-stack {
    position: relative;
    width: 100%;
    height: 540px;
    margin: 0 auto 20px;
}

.swipe-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-elev);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: grab;
    transform-origin: center;
    will-change: transform;
    transition: box-shadow 0.2s;
}
.swipe-card.dragging { cursor: grabbing; transition: none; }
.swipe-card.gone { transition: transform 0.6s ease-out, opacity 0.4s; }

.card-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-image-placeholder {
    background: var(--bg-elev-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.card-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-elev), transparent);
}

.swipe-indicator {
    position: absolute;
    top: 30px;
    padding: 10px 18px;
    border: 4px solid;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.1s;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.swipe-indicator.like {
    right: 20px;
    color: var(--like);
    border-color: var(--like);
    background: rgba(46, 204, 113, 0.2);
    transform: rotate(15deg);
}
.swipe-indicator.pass {
    left: 20px;
    color: var(--pass);
    border-color: var(--pass);
    background: rgba(255, 90, 95, 0.2);
    transform: rotate(-15deg);
}

.card-content {
    padding: 16px 20px;
    height: 40%;
    overflow-y: auto;
}
.card-content h2 { font-size: 1.15rem; line-height: 1.3; }
.card-location { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.card-stats {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.stat {
    flex: 1;
    min-width: 80px;
    background: var(--bg-elev-2);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.stat-icon { font-size: 1rem; }
.stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 2px;
}
.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.card-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.swipe-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}
.swipe-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elev);
    box-shadow: var(--shadow);
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swipe-btn:hover { transform: scale(1.08); }
.swipe-btn:active { transform: scale(0.95); }
.swipe-btn-pass { color: var(--pass); }
.swipe-btn-like { color: var(--like); }
.swipe-btn-undo { width: 50px; height: 50px; font-size: 1.2rem; color: var(--warn); }
.swipe-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.swipe-counter {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-emoji { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p, .empty-state a { color: var(--text-muted); }

/* ===== GRID PAGE ===== */
.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.grid-header p { color: var(--text-muted); font-size: 0.9rem; }

.grid-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.control-group { flex: 1; min-width: 140px; }
.control-group label { font-size: 0.75rem; }
.control-group select { padding: 10px 12px; font-size: 0.9rem; }

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

.grid-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.grid-image {
    display: block;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elev-2);
}
.grid-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.grid-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.grid-location { font-size: 0.85rem; color: var(--text-muted); }

.grid-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.grid-stats span {
    padding: 4px 10px;
    background: var(--bg-elev-2);
    border-radius: 100px;
    white-space: nowrap;
}

.grid-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.grid-vote-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.vote-count-like { color: var(--like); font-weight: 600; }
.vote-count-pass { color: var(--pass); font-weight: 600; }

.grid-actions {
    display: flex;
    gap: 8px;
}
.btn-vote {
    flex: 1;
    padding: 10px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-vote:hover { background: var(--bg-elev); }
.btn-vote-like.active { background: var(--like-bg); border-color: var(--like); color: var(--like); }
.btn-vote-pass.active { background: var(--pass-bg); border-color: var(--pass); color: var(--pass); }

.btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 10px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.15s;
    flex-shrink: 0;
}
.btn-edit:hover {
    background: var(--bg-elev);
    color: var(--text);
}

.btn-danger {
    padding: 12px 20px;
    background: rgba(255, 90, 95, 0.15);
    border: 1px solid var(--pass);
    border-radius: var(--radius-sm);
    color: var(--pass);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: var(--pass);
    color: white;
}

.danger-zone {
    margin-top: 32px;
    padding: 20px;
    background: rgba(255, 90, 95, 0.05);
    border: 1px solid rgba(255, 90, 95, 0.3);
    border-radius: var(--radius);
}
.danger-zone h3 {
    color: var(--pass);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.success-msg {
    padding: 12px 16px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius-sm);
    color: #6ee7a3;
    font-size: 0.9rem;
}

/* === Groupes / accueil === */
.block-btn { display: block; width: 100%; text-align: center; margin-top: 8px; }
.back-link {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 12px;
    background: var(--bg-elev-2);
    border-radius: 100px;
}
.back-link:hover { color: var(--text); background: var(--bg-elev); }
.welcome-card { position: relative; }

.my-groups {
    margin-bottom: 16px;
    text-align: left;
}
.my-groups h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.group-card-link {
    display: block;
    padding: 12px 14px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    margin-bottom: 6px;
    transition: all 0.15s;
}
.group-card-link:hover {
    background: var(--bg-elev);
    border-color: var(--accent);
    color: var(--text);
}
.group-name { font-weight: 600; }
.group-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.separator {
    text-align: center;
    margin: 18px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.separator::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}
.separator span {
    background: var(--bg-elev);
    padding: 0 12px;
    position: relative;
}

/* === Settings === */
.invite-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.invite-box code {
    flex: 1;
    font-family: 'SF Mono', Menlo, monospace;
    color: var(--text);
    background: transparent;
    padding: 0;
    word-break: break-all;
    font-size: 0.85rem;
    min-width: 200px;
}

.city-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.city-row input[type="text"] { flex: 1; }
.btn-remove {
    width: 44px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}
.btn-remove:hover { background: var(--pass-bg); color: var(--pass); border-color: var(--pass); }

.invite-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.invite-link:hover { text-decoration: underline; }

/* === Détail Airbnb === */
.airbnb-detail {
    max-width: 720px;
    margin: 0 auto;
}
.back-link-large {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.detail-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.detail-content h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    line-height: 1.3;
}
.detail-location { color: var(--text-muted); margin-bottom: 16px; }

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.stat-block {
    background: var(--bg-elev);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
}
.stat-big { font-size: 1.1rem; font-weight: 700; }
.stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.travel-section, .highlights-section, .description-section, .vote-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.travel-section h3, .highlights-section h3, .description-section h3, .vote-section h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}
.travel-item {
    text-align: center;
    padding: 10px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
}
.travel-city { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.travel-time { font-weight: 700; font-size: 1.05rem; margin: 4px 0; }
.travel-dist { font-size: 0.78rem; color: var(--text-muted); }

.btn-vote-big {
    padding: 16px;
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-vote-big:hover { transform: translateY(-1px); }
.btn-vote-big.btn-vote-like.active { background: var(--like-bg); border-color: var(--like); color: var(--like); }
.btn-vote-big.btn-vote-pass.active { background: var(--pass-bg); border-color: var(--pass); color: var(--pass); }

.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.action-buttons > * { flex: 1; min-width: 120px; }

.join-banner {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.15), rgba(46, 204, 113, 0.1));
    border: 1px solid rgba(255, 90, 95, 0.3);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
}
.join-banner p { margin-bottom: 12px; }

/* ===== RESULTS PAGE ===== */
.results-header { margin-bottom: 24px; }
.results-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.voter-list { display: block; margin-top: 4px; font-size: 0.8rem; }

.consensus-banner {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(255, 90, 95, 0.15));
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.consensus-banner h2 { margin-bottom: 12px; }
.consensus-list { display: flex; gap: 12px; flex-wrap: wrap; }
.consensus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    min-width: 220px;
}
.consensus-item div {
    width: 50px; height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result-card {
    display: grid;
    grid-template-columns: auto 200px 1fr;
    gap: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 16px;
}
.result-card.is-consensus {
    border-color: var(--like);
    box-shadow: 0 0 0 1px var(--like) inset;
}

.result-rank {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-muted);
    align-self: center;
    width: 48px;
    text-align: center;
}
.result-image {
    display: block;
    width: 200px;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elev-2);
    border-radius: var(--radius-sm);
}

.result-content { display: flex; flex-direction: column; gap: 10px; }
.result-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.result-location { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.score-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(var(--like) calc(var(--pct) * 1%), var(--bg-elev-2) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.score-circle::after {
    content: '';
    position: absolute;
    width: 44px; height: 44px;
    background: var(--bg-elev);
    border-radius: 50%;
}
.score-circle { position: relative; }
.score-circle span {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.85rem;
}

.result-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.result-stats span {
    padding: 4px 10px;
    background: var(--bg-elev-2);
    border-radius: 100px;
}

.result-votes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.vote-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.vote-row strong { min-width: 90px; flex-shrink: 0; }
.vote-row-likes strong { color: var(--like); }
.vote-row-passes strong { color: var(--pass); }
.vote-row-missing strong { color: var(--text-muted); }

.voter-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.voter-pill {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}
.voter-pill-like { background: var(--like-bg); color: var(--like); }
.voter-pill-pass { background: var(--pass-bg); color: var(--pass); }
.voter-pill-missing { background: var(--bg-elev-2); color: var(--text-muted); }

.result-link { font-size: 0.85rem; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .topnav { padding: 10px 14px; gap: 8px; }
    .nav-links { gap: 2px; }
    .nav-links a { padding: 6px 10px; font-size: 0.82rem; }
    .logo { font-size: 0.95rem; }

    .main-container { padding: 16px 14px 80px; }

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }

    .swipe-stack { height: 500px; }
    .card-content h2 { font-size: 1rem; }

    .result-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .result-image { width: 100%; height: 180px; }
    .result-rank {
        position: absolute;
        background: rgba(0,0,0,0.7);
        color: white;
        width: auto;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 1rem;
        margin: 8px;
    }
    .result-card { position: relative; }
}

@media (max-width: 420px) {
    .swipe-stack { height: 460px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ===========================================
   MODULE COMPTES (Tricount-like)
   =========================================== */

.balance-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.balance-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.balance-card-mine { background: var(--bg-elev-2); }
.balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.balance-value {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.balance-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.balance-positive { color: var(--like); }
.balance-negative { color: var(--pass); }

.action-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.action-row > * { flex: 1; min-width: 140px; }

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.date-separator {
    margin: 12px 0 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 4px;
}
.expense-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}
.expense-item:hover { background: var(--bg-elev-2); color: var(--text); }
.expense-icon {
    font-size: 1.5rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elev-2);
    border-radius: 50%;
    flex-shrink: 0;
}
.expense-main { flex: 1; min-width: 0; }
.expense-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.expense-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.expense-amount {
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.settlement-item { background: rgba(46, 204, 113, 0.05); border-color: rgba(46, 204, 113, 0.2); }
.settlement-amount { color: var(--like); }

/* === Catégories === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    margin-top: 4px;
}
.category-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}
.category-option:hover { background: var(--bg-elev); }
.category-option.active {
    border-color: var(--accent);
    background: rgba(255, 90, 95, 0.1);
}
.category-option input[type=radio] { display: none; }
.cat-icon { font-size: 1.4rem; }
.cat-label { font-size: 0.75rem; color: var(--text-muted); }
.category-option.active .cat-label { color: var(--text); }

/* === Tabs split mode === */
.split-mode-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-elev-2);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.tab-option {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s;
}
.tab-option:hover { color: var(--text); }
.tab-option.active { background: var(--accent); color: white; }
.tab-option input[type=radio] { display: none; }

/* === Liste participants === */
.participants-list { display: flex; flex-direction: column; gap: 4px; }
.participant-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}
.participant-row:hover { background: var(--bg-elev); }
.participant-row.checked { background: rgba(46, 204, 113, 0.08); border-color: rgba(46, 204, 113, 0.3); }
.participant-check {
    width: 20px; height: 20px;
    accent-color: var(--like);
    cursor: pointer;
}
.participant-name { flex: 1; font-weight: 500; }
.participant-share {
    width: 80px;
    padding: 6px 8px;
    text-align: right;
    font-family: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}
.participant-share:disabled { opacity: 0.5; cursor: not-allowed; }

.split-summary {
    margin-top: 12px;
    padding: 8px 12px;
    text-align: center;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.split-summary.ok { background: rgba(46, 204, 113, 0.15); color: var(--like); }
.split-summary.warn { background: rgba(255, 200, 87, 0.15); color: var(--warn); }

/* === Balance / Dettes === */
.balance-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
}
.balance-name { font-weight: 600; }
.balance-name small { color: var(--text-muted); font-weight: 400; }
.balance-amount { font-weight: 700; font-size: 1.05rem; }

.debt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.debt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}
.debt-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}
.debt-arrow { color: var(--text-muted); }
.debt-amount {
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
}
.debt-form { margin: 0; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }

.all-settled {
    text-align: center;
    padding: 30px 20px;
}
.emoji-big { font-size: 3rem; margin-bottom: 12px; }

.settlement-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settlement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ===========================================
   CARROUSEL PHOTOS
   =========================================== */

.card-image-carousel,
.grid-image-carousel,
.detail-image-carousel {
    position: relative;
    overflow: hidden;
    background: var(--bg-elev-2);
}
.card-image-carousel { width: 100%; height: 60%; }
.grid-image-carousel { width: 100%; height: 180px; }
.detail-image-carousel {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    padding: 6px 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.carousel-arrow:hover {
    background: rgba(0,0,0,0.85);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
.carousel-prev { left: 8px; padding-right: 3px; }
.carousel-next { right: 8px; padding-left: 3px; }

/* Sur desktop, on baisse l'opacité par défaut, plein hover */
@media (hover: hover) {
    .carousel-arrow { opacity: 0; }
    .card-image-carousel:hover .carousel-arrow,
    .grid-image-carousel:hover .carousel-arrow,
    .detail-image-carousel:hover .carousel-arrow { opacity: 0.85; }
}

.carousel-dot {
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.carousel-dot.active {
    background: white;
    width: 18px;
    border-radius: 100px;
}
.carousel-dots {
    z-index: 10;
}
.carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* Sur mobile/touch les flèches restent visibles via le CSS principal */

/* ===========================================
   GALERIE D'ÉDITION (add.php / edit.php)
   =========================================== */

.image-gallery-edit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.image-thumb-edit {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elev-2);
}
.image-thumb-edit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.btn-remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    backdrop-filter: blur(4px);
}
.btn-remove-img:hover { background: var(--pass); }

/* ===========================================
   DATES FR STYLÉES
   =========================================== */

input[type="date"] {
    position: relative;
    color-scheme: dark;
    font-family: inherit;
    cursor: pointer;
    padding-right: 38px;
}

/* L'icône calendrier WebKit (Chrome / Safari / Edge) */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

/* Le wrapper visuel : on simule l'icône et le format jj/mm/aaaa */
.date-field {
    position: relative;
    display: block;
}
.date-field input[type="date"] {
    width: 100%;
}
.date-field::after {
    content: "📅";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.05rem;
    z-index: 1;
    opacity: 0.7;
}

/* Format Firefox : la flèche par défaut peut être moche, on tente */
input[type="date"]::-webkit-datetime-edit-text { color: var(--text-muted); padding: 0 2px; }
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text);
}
input[type="date"]:focus::-webkit-datetime-edit-day-field:focus,
input[type="date"]:focus::-webkit-datetime-edit-month-field:focus,
input[type="date"]:focus::-webkit-datetime-edit-year-field:focus {
    background: rgba(255, 90, 95, 0.2);
    border-radius: 3px;
}


/* ===========================================
   SOUS-NAV
   =========================================== */
.subnav {
    display: flex;
    gap: 4px;
    background: var(--bg-elev);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
}
.subnav-item:hover { color: var(--text); background: var(--bg-elev-2); }
.subnav-item.active { background: var(--accent); color: white; }
.subnav-icon { font-size: 1rem; }

/* ===========================================
   TRIP HUB
   =========================================== */
.trip-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}
@media (min-width: 600px) { .trip-tiles { grid-template-columns: 1fr 1fr; } }

.trip-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.trip-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.tile-icon {
    font-size: 2.4rem;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elev-2);
    border-radius: 12px;
    flex-shrink: 0;
}
.tile-content h3 { font-size: 1.05rem; margin-bottom: 2px; }
.tile-content p { font-size: 0.85rem; color: var(--text-muted); }

/* ===========================================
   PHOTOS — Grille + Lightbox
   =========================================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.photo-tile {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-elev-2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.photo-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.photo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.photo-author {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.photo-like-form, .photo-del-form { margin: 0; }
.photo-like, .photo-del {
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 4px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.photo-like.liked { background: var(--pass); }
.photo-del:hover { background: var(--pass); }

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
#lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
}

/* ===========================================
   UPLOAD PHOTOS
   =========================================== */
.upload-zone {
    margin-top: 12px;
    padding: 30px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
    transition: all 0.15s;
}
.upload-zone.drag {
    border-color: var(--accent);
    background: rgba(255, 90, 95, 0.05);
}
.preview-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.preview-thumb {
    position: relative;
    background: var(--bg-elev-2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.preview-img-wrapper {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.preview-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.preview-loading { font-size: 1.5rem; opacity: 0.5; }
.preview-name {
    display: block;
    font-size: 0.7rem;
    padding: 4px 6px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-elev-2);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 8px;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
}

/* ===========================================
   LIEUX À VISITER
   =========================================== */
.places-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.place-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.place-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elev-2);
}
.place-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.place-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.place-cat {
    color: var(--text-muted);
    font-weight: 600;
}
.place-by { font-size: 0.75rem; }
.place-address, .place-notes { font-size: 0.85rem; }
.place-notes { white-space: pre-wrap; }
.place-actions {
    display: flex;
    gap: 6px;
    align-items: stretch;
    margin-top: 4px;
}
.place-actions .btn-edit {
    flex-shrink: 0;
}

/* ===========================================
   LISTE DE COURSES
   =========================================== */
.shopping-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shopping-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}
.shopping-item.done {
    opacity: 0.5;
}
.shopping-item.done .shop-name {
    text-decoration: line-through;
}
.shop-check-form { margin: 0; flex-shrink: 0; }
.shop-check {
    width: 28px; height: 28px;
    background: var(--bg-elev-2);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-weight: 700;
    transition: all 0.15s;
}
.shop-check.checked {
    background: var(--like);
    border-color: var(--like);
}
.shop-check:hover { border-color: var(--like); }

.shop-main { flex: 1; min-width: 0; }
.shop-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-qty {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 6px;
}
.shop-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.shop-assignee { color: var(--like); font-weight: 600; }

.shop-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.btn-take {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-take:hover { background: var(--bg-elev); }
.btn-take.active {
    background: rgba(46, 204, 113, 0.15);
    color: var(--like);
    border-color: var(--like);
}

/* ===========================================
   PLANNING
   =========================================== */
.planning-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.planning-day {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.day-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.time-slot-block {
    margin-bottom: 12px;
    padding-left: 4px;
    border-left: 3px solid var(--border);
    padding: 4px 0 4px 14px;
}
.time-slot-block:last-child { margin-bottom: 0; }
.slot-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.slot-empty {
    font-size: 0.85rem;
    padding: 6px 0;
    font-style: italic;
}

.planning-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}
.planning-item:last-child { margin-bottom: 0; }
.planning-item-main { flex: 1; min-width: 0; }
.planning-item-title { font-weight: 600; }
.planning-item-place {
    font-size: 0.85rem;
    margin-top: 2px;
}
.planning-item-place a { color: var(--accent); text-decoration: none; }
.planning-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: pre-wrap;
}
.planning-item-meta {
    font-size: 0.7rem;
    margin-top: 4px;
}

/* ===========================================
   HUB principal du voyage
   =========================================== */
.hub-page h1 { font-size: 1.5rem; margin-bottom: 4px; }
.hub-section { margin-top: 24px; }
.hub-section h2 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.hub-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.hub-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s;
}
.hub-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
}
.hub-tile-icon { font-size: 1.6rem; }
.hub-tile-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.hub-tile-value { font-size: 1rem; font-weight: 700; }

.hub-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hub-poll-card {
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(255, 90, 95, 0.3);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    display: block;
}
.hub-poll-card:hover { border-color: var(--accent); }
.hub-poll-q { font-weight: 600; }
.hub-poll-meta { font-size: 0.75rem; margin-top: 2px; }

/* ===========================================
   SONDAGE DE DATES (Doodle)
   =========================================== */
.poll-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.poll-tabs::-webkit-scrollbar { display: none; }
.poll-tab {
    padding: 8px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}
.poll-tab.active { background: var(--accent); border-color: var(--accent); color: white; }
.poll-tab.closed { opacity: 0.6; }

.datepoll-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}
.datepoll-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
}
.datepoll-table th, .datepoll-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.datepoll-table th {
    background: var(--bg-elev-2);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
}
.day-col { text-align: left !important; min-width: 100px; }
.score-col { font-weight: 700; }
.voter-col.me { color: var(--accent); }
.my-cell { background: rgba(255, 90, 95, 0.05); }
.best-day { background: rgba(46, 204, 113, 0.1); }
.best-day .day-col strong { color: var(--like); }
.best-badge { color: var(--warn); margin-left: 4px; }

.vote-form {
    display: inline-flex;
    gap: 2px;
    margin: 0;
}
.vote-btn {
    width: 28px; height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-elev-2);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.vote-btn.vote-yes.active { background: var(--like); color: white; border-color: var(--like); }
.vote-btn.vote-maybe.active { background: var(--warn); color: #111; border-color: var(--warn); }
.vote-btn.vote-no.active { background: var(--pass); color: white; border-color: var(--pass); }
.badge-yes { color: var(--like); font-weight: 700; }
.badge-maybe { color: var(--warn); font-weight: 700; }
.badge-no { color: var(--pass); font-weight: 700; }

/* ===========================================
   QUICK POLLS
   =========================================== */
.poll-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.poll-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.poll-card.closed { opacity: 0.6; }
.poll-link {
    flex: 1;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.poll-card-q { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-card-meta { font-size: 0.75rem; margin-top: 2px; }
.poll-card-actions { display: flex; gap: 4px; flex-shrink: 0; }

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.poll-option {
    display: block;
    padding: 12px 14px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.poll-option:hover { background: var(--bg-elev); }
.poll-option.selected {
    border-color: var(--accent);
    background: rgba(255, 90, 95, 0.08);
}
.poll-option.winner {
    border-color: var(--like);
    background: rgba(46, 204, 113, 0.1);
}
.poll-option input { margin-right: 8px; vertical-align: middle; }
.poll-option-bar {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.poll-option-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--pct);
    background: rgba(255, 90, 95, 0.1);
    z-index: 0;
    transition: width 0.4s;
}
.poll-option-label {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.poll-option-count { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }

.poll-option-input {
    margin-bottom: 6px;
}

/* ===========================================
   MÉTÉO
   =========================================== */
.weather-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.weather-day {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
}
.weather-icon-big {
    font-size: 2.5rem;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}
.weather-day-info { flex: 1; min-width: 0; }
.weather-date { font-weight: 600; text-transform: capitalize; }
.weather-cond { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.weather-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 0.85rem;
}
.temp-max { font-weight: 700; color: var(--accent); }
.temp-min { color: var(--text-muted); }
.weather-stat { color: var(--text-muted); }

/* ===========================================
   POSITIONS
   =========================================== */
.positions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.position-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev-2);
    border-radius: var(--radius-sm);
}
.position-row.me { background: rgba(255, 90, 95, 0.08); border: 1px solid rgba(255, 90, 95, 0.3); }
.position-info { flex: 1; min-width: 0; }
.position-note { color: var(--text-muted); font-size: 0.85rem; }

.checkbox-row { font-size: 0.9rem; }

/* ===========================================
   HUB v2 — Design moderne
   =========================================== */
.hub-page-v2 {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.hub-hero {
    position: relative;
    margin: 0 -16px 24px;
    padding: 32px 20px 28px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}
.hub-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff5a5f 0%, #ff8a3d 50%, #ffc857 100%);
    opacity: 0.85;
}
.hub-hero-planning .hub-hero-bg { background: linear-gradient(135deg, #4a90e2 0%, #6c5ce7 100%); }
.hub-hero-upcoming .hub-hero-bg { background: linear-gradient(135deg, #ff8a3d 0%, #ff5a5f 50%, #c344ff 100%); }
.hub-hero-live .hub-hero-bg     { background: linear-gradient(135deg, #2ecc71 0%, #00d4ff 100%); }
.hub-hero-finished .hub-hero-bg { background: linear-gradient(135deg, #6c5ce7 0%, #c344ff 50%, #ff5a5f 100%); }

.hub-hero-content { position: relative; z-index: 1; color: white; }
.hub-hero-phase {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 6px;
}
.hub-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hub-hero-dates {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}
.hub-hero-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.95);
    color: #111;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    transition: transform 0.15s;
}
.hub-hero-cta:hover { transform: translateY(-2px); color: #111; }

.hub-block {
    margin-bottom: 28px;
}
.hub-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
}
.hub-block-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hub-block-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hub-tiles-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.hub-tile-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.18s;
    position: relative;
    overflow: hidden;
}
.hub-tile-v2:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 90, 95, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--text);
}
.tile-icon-v2 {
    font-size: 1.7rem;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elev-2);
    border-radius: 12px;
    flex-shrink: 0;
}
.tile-text-v2 { flex: 1; min-width: 0; }
.tile-name {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tile-stat {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-tile-special {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(108, 92, 231, 0.08));
    border-color: rgba(255, 90, 95, 0.25);
}
.hub-tile-special .tile-icon-v2 {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.25), rgba(108, 92, 231, 0.2));
}

.hub-polls-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hub-poll-card-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.1), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(255, 90, 95, 0.25);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s;
}
.hub-poll-card-v2:hover {
    border-color: var(--accent);
    transform: translateX(2px);
    color: var(--text);
}
.hub-poll-q {
    font-weight: 600;
    flex: 1;
}
.hub-poll-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.hub-poll-arrow { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }

@media (max-width: 480px) {
    .hub-hero { padding: 28px 18px 24px; border-radius: 0 0 22px 22px; }
    .hub-hero-title { font-size: 1.6rem; }
    .hub-tiles-v2 { grid-template-columns: 1fr 1fr; }
}

/* ===========================================
   RECAP — Story Spotify Wrapped
   =========================================== */
.recap-page {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #0a0a14;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.recap-controls {
    position: absolute;
    top: env(safe-area-inset-top, 16px);
    left: 0; right: 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}
.recap-close, .recap-share {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.recap-close:hover, .recap-share:hover { background: rgba(0,0,0,0.7); color: white; }

.recap-progress {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 4px);
    left: 12px; right: 12px;
    display: flex;
    gap: 4px;
    z-index: 99;
}
.progress-bar-recap {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 100px;
    overflow: hidden;
}
.progress-fill-recap {
    height: 100%;
    width: 0;
    background: white;
    border-radius: 100px;
}

.recap-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.recap-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    overflow: hidden;
}
.recap-slide.active { opacity: 1; pointer-events: auto; }

.bg-gradient-1  { background: linear-gradient(135deg, #ff5a5f, #ff8a3d, #ffc857); }
.bg-gradient-2  { background: linear-gradient(135deg, #6c5ce7, #c344ff, #ff5a5f); }
.bg-gradient-3  { background: linear-gradient(135deg, #00d4ff, #4a90e2, #6c5ce7); }
.bg-gradient-4  { background: linear-gradient(135deg, #2ecc71, #00d4ff, #4a90e2); }
.bg-gradient-5  { background: linear-gradient(135deg, #ff8a3d, #ff5a5f, #c344ff); }
.bg-gradient-6  { background: linear-gradient(135deg, #1a1a2e, #2d1b69, #5a2a8c); }
.bg-gradient-7  { background: linear-gradient(135deg, #c344ff, #ff5a5f, #ff8a3d); }
.bg-gradient-8  { background: linear-gradient(135deg, #4a90e2, #6c5ce7, #c344ff); }
.bg-gradient-9  { background: linear-gradient(135deg, #ffc857, #ff8a3d, #ff5a5f); }
.bg-gradient-10 { background: linear-gradient(135deg, #ffd700, #ff8a3d, #c344ff); }
.bg-gradient-final { background: linear-gradient(135deg, #ff5a5f, #c344ff, #4a90e2, #2ecc71); }

.slide-bg-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.5);
    transform: scale(1.2);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 30px 80px;
    max-width: 500px;
    color: white;
    width: 100%;
}

.slide-emoji {
    font-size: 4.5rem;
    margin-bottom: 16px;
    animation: pop 0.6s ease;
}
@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.slide-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.slide-subtitle-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
    margin-bottom: 0;
}

.slide-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 12px;
    font-weight: 600;
}
.slide-big {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    animation: slideUp 0.5s ease 0.2s both;
}
.slide-detail {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-image-card {
    margin: 18px auto 0;
    width: 80%;
    max-width: 280px;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.slide-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.recap-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px;
    border: 2px solid var(--tier-color, white);
    text-align: center;
}
.recap-badge-icon { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.recap-badge-name { font-weight: 700; font-size: 0.8rem; line-height: 1.2; }
.recap-badge-by { font-size: 0.7rem; opacity: 0.8; margin-top: 2px; }

.slide-watermark {
    margin-top: 24px;
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 600;
}

.slide-tap-zones {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 5;
}
.tap-prev, .tap-next { flex: 1; cursor: pointer; }

.recap-bottom {
    padding: 12px 16px calc(env(safe-area-inset-bottom, 16px) + 12px);
    z-index: 50;
    position: relative;
}
.btn-share-big {
    width: 100%;
    padding: 14px;
    background: white;
    color: #111;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===========================================
   ACHIEVEMENTS — page badges
   =========================================== */
.badges-by-voter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.voter-badges-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}
.voter-badges-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.voter-badges-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.badge-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elev-2);
    border-left: 3px solid var(--tier-color, var(--border));
    border-radius: var(--radius-sm);
}
.badge-pill .badge-icon { font-size: 1.5rem; }
.badge-info { flex: 1; min-width: 0; }
.badge-name { font-weight: 600; font-size: 0.9rem; }
.badge-desc { font-size: 0.7rem; color: var(--text-muted); }

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.badge-card {
    text-align: center;
    padding: 16px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    border-top: 3px solid var(--tier-color, var(--border));
}
.badge-card.locked { opacity: 0.4; filter: grayscale(0.8); }
.badge-card.unlocked { box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.1); }
.badge-card-icon { font-size: 2rem; margin-bottom: 6px; }
.badge-card-name { font-weight: 700; font-size: 0.85rem; }
.badge-card-desc { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }
.badge-card-unlocked {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--like);
    font-weight: 700;
}

