/* ═══════════════════════════════════════════════════════════════════
   Jevousaime - Styles principaux
   Dark Theme - Mobile First
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --jva-bg-dark: #0a0a1a;
    --jva-bg-card: #12122a;
    --jva-bg-surface: #1a1a3e;
    --jva-bg-input: #16213e;
    --jva-primary: #e74c8b;
    --jva-primary-light: #ff6b9d;
    --jva-primary-dark: #c23672;
    --jva-secondary: #6c63ff;
    --jva-accent: #ff9a56;
    --jva-gold: #ffd700;
    --jva-success: #00c853;
    --jva-danger: #ff3d57;
    --jva-text: #e8e8f0;
    --jva-text-muted: #8888aa;
    --jva-border: #2a2a4a;
    --jva-gradient: linear-gradient(135deg, var(--jva-primary), var(--jva-secondary));
    --jva-gradient-gold: linear-gradient(135deg, #ffd700, #ffaa00);
    --jva-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --jva-radius: 16px;
    --jva-radius-sm: 10px;
    --jva-radius-pill: 50px;
    --jva-navbar-height: 56px;
    --jva-bottomnav-height: 64px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--jva-bg-dark);
    color: var(--jva-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--jva-primary-light); text-decoration: none; }
a:hover { color: var(--jva-primary); }

::selection {
    background: var(--jva-primary);
    color: #fff;
}

/* ─── Navbar ─────────────────────────────────────────────────────── */

.jva-navbar {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--jva-border);
    height: var(--jva-navbar-height);
    z-index: 1040;
}

.jva-navbar .container-fluid {
    flex-wrap: nowrap;
}

.jva-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jva-logo-icon {
    font-size: 1.4rem;
}

.jva-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--jva-primary);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--jva-text);
    font-size: 1.1rem;
    padding: 6px 10px;
}
.btn-icon:hover { color: var(--jva-primary-light); }

.btn-premium {
    background: var(--jva-gradient-gold);
    color: #000 !important;
    border: none;
    font-weight: 600;
    border-radius: var(--jva-radius-pill);
    padding: 4px 12px;
}
.btn-premium:hover { opacity: 0.9; color: #000 !important; }

.jva-premium-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    border-radius: 20px;
    padding: 5px 14px;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: premium-glow 2s ease-in-out infinite alternate;
    transition: transform 0.15s;
}
.jva-premium-pill:hover {
    color: #1a1a2e !important;
    transform: scale(1.05);
}

@keyframes premium-glow {
    from { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
    to   { box-shadow: 0 0 16px rgba(255, 215, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
}

.jva-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
}

/* ─── Bottom Nav (Mobile) ────────────────────────────────────────── */

.jva-bottom-nav {
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--jva-border);
    height: var(--jva-bottomnav-height);
    padding: 0;
    z-index: 1040;
}

.jva-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--jva-text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
    transition: color 0.2s;
}
.jva-bottom-link i { font-size: 1.3rem; }
.jva-bottom-link.active { color: var(--jva-primary); }
.jva-bottom-link:hover { color: var(--jva-primary-light); }

.jva-bottom-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--jva-danger);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ─── Page Wrapper (flex push footer to bottom) ─────────────────── */

.jva-page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.jva-page-wrap > main {
    flex: 1 0 auto;
}

.jva-page-wrap > footer {
    flex-shrink: 0;
}

/* ─── Main Content ───────────────────────────────────────────────── */

.jva-main {
    padding-top: calc(var(--jva-navbar-height) + 10px);
    padding-bottom: calc(var(--jva-bottomnav-height) + 10px);
}

@media (min-width: 768px) {
    .jva-main { padding-bottom: 20px; }
}

.jva-main-public {
    padding-top: var(--jva-navbar-height);
}

.jva-main-minimal {
    padding: 20px 0;
}

.jva-navbar-public {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ─── Cards & Surfaces ───────────────────────────────────────────── */

.jva-card {
    background: var(--jva-bg-card);
    border: 1px solid var(--jva-border);
    border-radius: var(--jva-radius);
    overflow: hidden;
}

.jva-surface {
    background: var(--jva-bg-surface);
    border-radius: var(--jva-radius);
    padding: 20px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */

.btn-jva {
    background: var(--jva-gradient);
    color: #fff;
    border: none;
    border-radius: var(--jva-radius-pill);
    font-weight: 600;
    padding: 12px 32px;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.btn-jva:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 76, 139, 0.4);
}

.btn-jva-outline {
    background: transparent;
    color: var(--jva-primary);
    border: 2px solid var(--jva-primary);
    border-radius: var(--jva-radius-pill);
    font-weight: 600;
    padding: 10px 30px;
    transition: all 0.3s;
}
.btn-jva-outline:hover {
    background: var(--jva-primary);
    color: #fff;
}

.btn-jva-gold {
    background: var(--jva-gradient-gold);
    color: #000;
    border: none;
    border-radius: var(--jva-radius-pill);
    font-weight: 700;
    padding: 12px 32px;
}
.btn-jva-gold:hover { opacity: 0.9; color: #000; }

/* ─── Forms ──────────────────────────────────────────────────────── */

.jva-input {
    background: var(--jva-bg-input) !important;
    border: 1px solid var(--jva-border) !important;
    border-radius: var(--jva-radius-sm) !important;
    color: var(--jva-text) !important;
    padding: 12px 16px;
    transition: border-color 0.3s;
}
.jva-input:focus {
    border-color: var(--jva-primary) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 139, 0.15) !important;
}
.jva-input::placeholder { color: var(--jva-text-muted); }

select.jva-input {
    appearance: auto;
    -webkit-appearance: auto;
}

.form-label { color: var(--jva-text); font-weight: 500; font-size: 0.9rem; }

/* ─── Landing / Hero ─────────────────────────────────────────────── */

.jva-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 20% 50%, rgba(231, 76, 139, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(108, 99, 255, 0.1) 0%, transparent 50%),
                var(--jva-bg-dark);
    position: relative;
    overflow: hidden;
}

.jva-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 76, 139, 0.08), transparent 70%);
    top: -200px;
    right: -200px;
    animation: floatOrb 15s ease-in-out infinite;
}

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

.jva-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.jva-hero-title .gradient-text {
    background: var(--jva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jva-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--jva-text-muted);
    max-width: 500px;
    line-height: 1.6;
}

.jva-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.jva-hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--jva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.jva-hero-stat span {
    color: var(--jva-text-muted);
    font-size: 0.85rem;
}

.gradient-text {
    background: var(--jva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Home : Common ───────────────────────────────────────────────── */

.jva-home-section { padding: 60px 0; }
.jva-home-title { font-size: 1.9rem; font-weight: 800; }

/* ─── Home : Hero ─────────────────────────────────────────────────── */

.jva-home-hero {
    min-height: calc(100vh - var(--jva-navbar-height));
    background: radial-gradient(ellipse at 20% 50%, rgba(231,76,139,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(108,99,255,0.08) 0%, transparent 50%),
                var(--jva-bg-dark);
}

.jva-home-hero > .container { min-height: calc(100vh - var(--jva-navbar-height)); }
.jva-home-hero > .container > .row { min-height: calc(100vh - var(--jva-navbar-height)); }

.jva-home-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
}

.jva-home-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--jva-text-muted);
    line-height: 1.6;
    max-width: 440px;
}

.jva-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(231,76,139,0.12);
    color: var(--jva-primary-light);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
}

.jva-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--jva-success);
    animation: pulseOnline 2s infinite;
}

@keyframes pulseOnline {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ─── Home : Hero — trio de cartes (desktop) ─────────────────────── */

.jva-hero-trio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 100%;
    padding: 40px 0;
}

.jva-hero-trio-card {
    width: 190px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--jva-bg-card);
    border: 2px solid var(--jva-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    flex-shrink: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.jva-hero-trio-card:hover {
    box-shadow: 0 14px 40px rgba(231,76,139,0.3);
    z-index: 5 !important;
}

.jva-hero-trio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.jva-hero-trio-card--0 { transform: rotate(-7deg) translateX(16px); z-index: 1; }
.jva-hero-trio-card--1 { transform: scale(1.05); z-index: 3; margin: 0 -14px; }
.jva-hero-trio-card--2 { transform: rotate(7deg) translateX(-16px); z-index: 1; }

.jva-hero-trio-card--0:hover { transform: rotate(-2deg) translateX(16px) scale(1.04); }
.jva-hero-trio-card--1:hover { transform: scale(1.1); }
.jva-hero-trio-card--2:hover { transform: rotate(2deg) translateX(-16px) scale(1.04); }

.jva-hero-trio-info {
    padding: 10px 12px;
}

.jva-hero-trio-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.jva-hero-trio-city {
    font-size: 0.75rem;
    color: var(--jva-text-muted);
}

.jva-hero-trio-city i { color: var(--jva-primary); font-size: 0.65rem; }

/* ─── Home : Hero — mini cartes (mobile) ─────────────────────────── */

.jva-hero-mini-card {
    width: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--jva-bg-card);
    border: 1px solid var(--jva-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.jva-hero-mini-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.jva-hero-mini-info {
    padding: 5px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Home : Grille profils ──────────────────────────────────────── */

.jva-grid-card {
    display: block;
    text-decoration: none;
    color: var(--jva-text);
    border-radius: 14px;
    overflow: hidden;
    background: var(--jva-bg-surface);
    border: 1px solid var(--jva-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jva-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(231,76,139,0.2);
    color: var(--jva-text);
}

.jva-grid-card-photo {
    position: relative;
    overflow: hidden;
}

.jva-grid-card-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .jva-grid-card-photo img { height: 260px; }
}

@media (min-width: 992px) {
    .jva-grid-card-photo img { height: 280px; }
}

.jva-grid-card-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--jva-success);
    border: 2px solid var(--jva-bg-surface);
}

.jva-grid-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(231,76,139,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2rem;
    color: #fff;
}

.jva-grid-card:hover .jva-grid-card-overlay { opacity: 1; }

.jva-grid-card-body {
    padding: 10px 12px;
}

.jva-grid-card-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jva-grid-card-city {
    font-size: 0.75rem;
    color: var(--jva-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jva-grid-card-city i { color: var(--jva-primary); font-size: 0.65rem; }

/* ─── Home : Stats ───────────────────────────────────────────────── */

.jva-home-stat-card {
    background: var(--jva-bg-surface);
    border-radius: var(--jva-radius);
    padding: 26px 12px;
    border: 1px solid var(--jva-border);
}
.jva-home-stat-value { font-size: 1.8rem; font-weight: 800; }
.jva-home-stat-label { color: var(--jva-text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ─── Home : Features ────────────────────────────────────────────── */

.jva-home-feature-card {
    background: var(--jva-bg-surface);
    border-radius: var(--jva-radius);
    padding: 28px 20px;
    height: 100%;
    border: 1px solid var(--jva-border);
}
.jva-home-feature-card h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.jva-home-feature-card p { color: var(--jva-text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 0; }
.jva-home-feature-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; margin-bottom: 14px;
}

/* ─── Home : Testimonials ────────────────────────────────────────── */

.jva-home-testimonial {
    background: var(--jva-bg-card);
    border-radius: var(--jva-radius);
    padding: 24px;
    border: 1px solid var(--jva-border);
    height: 100%;
}
.jva-home-testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 0.8rem; flex-shrink: 0;
}

/* ─── Home : CTA ─────────────────────────────────────────────────── */

.jva-home-cta {
    background: linear-gradient(135deg, var(--jva-primary-dark), var(--jva-secondary));
    padding: 65px 0;
    position: relative;
    overflow: hidden;
}
.jva-home-cta::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -120px; right: -120px;
}
.jva-home-cta-title { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.jva-home-cta-sub { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 500px; margin: 0 auto 26px; }

/* ─── Home : Responsive tweaks ───────────────────────────────────── */

@media (max-width: 991px) {
    .jva-home-hero { min-height: auto; }
    .jva-home-hero > .container,
    .jva-home-hero > .container > .row { min-height: auto; }
    .jva-home-hero-sub { margin-left: auto; margin-right: auto; }
    .jva-home-hero-title { text-align: center; }
    .jva-home-hero .mt-4 { justify-content: center; }
    .jva-home-hero p:last-child { text-align: center; }
    .jva-home-badge { margin-left: auto; margin-right: auto; }
    .jva-home-section { padding: 40px 0; }
}

/* ─── Swipe Cards ────────────────────────────────────────────────── */

.jva-swipe-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: calc(100vh - var(--jva-navbar-height) - var(--jva-bottomnav-height) - 120px);
    height: calc(100dvh - var(--jva-navbar-height) - var(--jva-bottomnav-height) - 120px);
    max-height: 560px;
    min-height: 350px;
}

@media (min-width: 768px) {
    .jva-swipe-container {
        height: calc(100vh - var(--jva-navbar-height) - 180px);
        height: calc(100dvh - var(--jva-navbar-height) - 180px);
        max-height: 580px;
    }
}

.jva-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.jva-profile-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--jva-radius);
    overflow: hidden;
    box-shadow: var(--jva-shadow);
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-user-select: none;
}

.jva-profile-card.dragging {
    cursor: grabbing;
    transition: none;
}

.jva-profile-card .card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jva-profile-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.jva-profile-card .card-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.jva-profile-card .card-name .card-age {
    font-weight: 400;
    font-size: 1.3rem;
    opacity: 0.9;
}

.jva-profile-card .card-location {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 6px;
}
.jva-profile-card .card-location i { margin-right: 4px; }

.jva-profile-card .card-bio {
    font-size: 0.85rem;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jva-profile-card .card-badge-online {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--jva-success);
    color: #fff;
    border-radius: var(--jva-radius-pill);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.jva-profile-card .card-badge-superlike {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--jva-secondary);
    color: #fff;
    border-radius: var(--jva-radius-pill);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.jva-profile-card .card-photo-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 3px;
    padding: 8px 12px;
    z-index: 10;
}

.jva-profile-card .card-photo-dot {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    transition: background 0.3s;
}
.jva-profile-card .card-photo-dot.active { background: rgba(255,255,255,0.9); }

.swipe-stamp {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: 900;
    padding: 10px 20px;
    border: 5px solid;
    border-radius: 15px;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.swipe-stamp.like {
    left: 20px;
    color: var(--jva-success);
    border-color: var(--jva-success);
    transform: translateY(-50%) rotate(-15deg);
}

.swipe-stamp.nope {
    right: 20px;
    color: var(--jva-danger);
    border-color: var(--jva-danger);
    transform: translateY(-50%) rotate(15deg);
}

.swipe-stamp.super-like {
    left: 50%;
    top: 30%;
    color: var(--jva-secondary);
    border-color: var(--jva-secondary);
    transform: translate(-50%, -50%) rotate(-5deg);
}

/* ─── Action Buttons ─────────────────────────────────────────────── */

.jva-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.jva-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid;
    background: var(--jva-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}
.jva-action-btn:hover {
    transform: scale(1.1);
}
.jva-action-btn:active {
    transform: scale(0.95);
}

.jva-action-btn.pass {
    border-color: var(--jva-danger);
    color: var(--jva-danger);
}
.jva-action-btn.pass:hover {
    background: var(--jva-danger);
    color: #fff;
}

.jva-action-btn.superlike {
    border-color: var(--jva-secondary);
    color: var(--jva-secondary);
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}
.jva-action-btn.superlike:hover {
    background: var(--jva-secondary);
    color: #fff;
}

.jva-action-btn.like {
    border-color: var(--jva-success);
    color: var(--jva-success);
}
.jva-action-btn.like:hover {
    background: var(--jva-success);
    color: #fff;
}

.jva-action-btn.boost {
    border-color: var(--jva-accent);
    color: var(--jva-accent);
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}
.jva-action-btn.boost:hover {
    background: var(--jva-accent);
    color: #fff;
}

.jva-action-btn.message {
    border-color: #00b4d8;
    color: #00b4d8;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}
.jva-action-btn.message:hover {
    background: #00b4d8;
    color: #fff;
}

/* ─── Nearby Grid ────────────────────────────────────────────────── */

.jva-nearby-card {
    display: block;
    text-decoration: none;
    color: var(--jva-text);
    background: var(--jva-bg-card);
    border-radius: var(--jva-radius);
    overflow: hidden;
    border: 1px solid var(--jva-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.jva-nearby-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(231, 76, 139, 0.15);
    color: var(--jva-text);
}

.jva-nearby-photo-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.jva-nearby-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jva-nearby-online {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: var(--jva-success);
    border-radius: 50%;
    border: 2px solid var(--jva-bg-card);
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
}
.jva-nearby-distance {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
}
.jva-nearby-info {
    padding: 10px 12px;
}
.jva-nearby-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jva-nearby-city {
    font-size: 0.75rem;
    color: var(--jva-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jva-nearby-actions {
    position: absolute;
    bottom: 52px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 5;
}
.jva-nearby-card:hover .jva-nearby-actions {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 767.98px) {
    .jva-nearby-actions {
        opacity: 1;
        transform: translateX(0);
    }
}
.jva-nearby-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.15s;
}
.jva-nearby-btn:hover { transform: scale(1.15); }
.jva-nearby-btn-like {
    background: linear-gradient(135deg, #e74c8b, #ff6b9d);
    color: #fff;
}
.jva-nearby-btn-like.liked {
    background: #28a745;
    pointer-events: none;
}
.jva-nearby-btn-msg {
    background: linear-gradient(135deg, #00b4d8, #0096c7);
    color: #fff;
}

/* ─── Match Modal ────────────────────────────────────────────────── */

.jva-match-modal {
    background: linear-gradient(135deg, #1a0030, #0a0a2a, #001a30);
    border: 1px solid var(--jva-primary);
    border-radius: 20px;
}

.jva-match-hearts {
    font-size: 4rem;
    animation: matchBounce 0.8s ease-in-out;
}

.jva-match-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--jva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

@keyframes matchBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ─── Matches List ───────────────────────────────────────────────── */

.jva-match-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--jva-border);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}
.jva-match-item:hover {
    background: var(--jva-bg-surface);
    color: inherit;
}

.jva-match-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.jva-match-info {
    flex: 1;
    min-width: 0;
}

.jva-match-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.jva-match-preview {
    color: var(--jva-text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jva-match-time {
    color: var(--jva-text-muted);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.jva-match-unread .jva-match-name { color: var(--jva-primary); }
.jva-match-unread .jva-match-preview { color: var(--jva-text); font-weight: 500; }

.jva-online-dot {
    width: 10px;
    height: 10px;
    background: var(--jva-success);
    border-radius: 50%;
    border: 2px solid var(--jva-bg-card);
    position: absolute;
    bottom: 2px;
    right: 2px;
}

/* ─── Chat (styles moved inline in chat.php to avoid cache issues) ── */

/* ─── Profile View ───────────────────────────────────────────────── */

.jva-profile-header {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.jva-profile-gallery {
    position: relative;
    width: 100%;
    padding-top: 120%;
    border-radius: var(--jva-radius);
    overflow: hidden;
}

.jva-profile-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jva-profile-info {
    padding: 20px 0;
}

.jva-profile-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.jva-profile-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--jva-text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.jva-profile-bio {
    background: var(--jva-bg-surface);
    border-radius: var(--jva-radius-sm);
    padding: 16px;
    margin-top: 16px;
    line-height: 1.6;
}

/* ─── Edit Profile / Photo Grid ──────────────────────────────────── */

.jva-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.jva-photo-slot {
    position: relative;
    padding-top: 133%;
    border-radius: var(--jva-radius-sm);
    overflow: hidden;
    background: var(--jva-bg-surface);
    border: 2px dashed var(--jva-border);
    cursor: pointer;
    transition: border-color 0.3s;
}
.jva-photo-slot:hover { border-color: var(--jva-primary); }
.jva-photo-slot.has-photo { border-style: solid; }

.jva-photo-slot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jva-photo-slot .photo-add {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--jva-text-muted);
    font-size: 2rem;
}

.jva-photo-slot .photo-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: var(--jva-danger);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 5;
    cursor: pointer;
}

.jva-photo-slot .photo-primary {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: var(--jva-primary);
    color: #fff;
    border-radius: var(--jva-radius-pill);
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 600;
}

.jva-photo-status {
    position: absolute;
    top: 6px;
    left: 6px;
    border-radius: var(--jva-radius-pill);
    padding: 2px 8px;
    font-size: 0.55rem;
    font-weight: 600;
}
.jva-photo-status.pending { background: var(--jva-accent); color: #000; }
.jva-photo-status.rejected { background: var(--jva-danger); color: #fff; }

/* ─── Premium Page ───────────────────────────────────────────────── */

.jva-premium-card {
    background: var(--jva-bg-card);
    border: 2px solid var(--jva-border);
    border-radius: var(--jva-radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.jva-premium-card:hover,
.jva-premium-card.selected {
    border-color: var(--jva-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}
.jva-premium-card.popular {
    border-color: var(--jva-gold);
    position: relative;
}
.jva-premium-card.popular::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jva-gradient-gold);
    color: #000;
    padding: 2px 16px;
    border-radius: var(--jva-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

.jva-premium-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--jva-gold);
}
.jva-premium-monthly {
    font-size: 0.85rem;
    color: var(--jva-text-muted);
}

.jva-feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.jva-feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.jva-feature-list li i {
    color: var(--jva-gold);
    font-size: 1.1rem;
}

/* Styles page Bienvenue : voir bloc <style> dans templates/pages/welcome-offer.php */

/* ─── Likes Grid ─────────────────────────────────────────────────── */

.jva-likes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .jva-likes-grid { grid-template-columns: repeat(3, 1fr); }
}

.jva-like-card {
    position: relative;
    border-radius: var(--jva-radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.jva-like-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jva-like-card.blurred img {
    filter: blur(20px);
    -webkit-filter: blur(20px);
}

.jva-like-card .like-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.jva-like-card .like-unlock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 5;
}

.jva-like-card .like-unlock i {
    font-size: 2rem;
    color: var(--jva-gold);
}

/* ─── Settings ───────────────────────────────────────────────────── */

.jva-settings-group {
    background: var(--jva-bg-card);
    border-radius: var(--jva-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.jva-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--jva-border);
}
.jva-settings-item:last-child { border-bottom: none; }

.jva-settings-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─── Auth Pages ─────────────────────────────────────────────────── */

.jva-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(231, 76, 139, 0.1) 0%, transparent 60%),
                var(--jva-bg-dark);
    padding: 20px;
}

.jva-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--jva-bg-card);
    border: 1px solid var(--jva-border);
    border-radius: var(--jva-radius);
    padding: 40px 30px;
}

.jva-auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.jva-auth-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.jva-auth-title .brand {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* ─── Registration Steps ─────────────────────────────────────────── */

.jva-step { display: none; }
.jva-step.active { display: block; }

.jva-steps-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
}

.jva-step-dot {
    flex: 1;
    height: 4px;
    background: var(--jva-border);
    border-radius: 2px;
    transition: background 0.3s;
}
.jva-step-dot.active {
    background: var(--jva-primary);
}
.jva-step-dot.done {
    background: var(--jva-success);
}

/* ─── Shop / Token Cards ─────────────────────────────────────────── */

.jva-token-card {
    background: var(--jva-bg-card);
    border: 2px solid var(--jva-border);
    border-radius: var(--jva-radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.jva-token-card:hover {
    border-color: var(--jva-primary);
    transform: translateY(-2px);
}
.jva-token-card.best-value {
    border-color: var(--jva-primary);
    position: relative;
}
.jva-token-card.best-value::before {
    content: 'MEILLEURE OFFRE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jva-gradient);
    color: #fff;
    padding: 2px 16px;
    border-radius: var(--jva-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ─── Impersonation Bar ──────────────────────────────────────────── */

.impersonation-bar {
    background: var(--jva-accent);
    color: #000;
    padding: 6px 0;
    font-size: 0.8rem;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

body:has(.impersonation-bar) .jva-navbar {
    top: 32px;
}

body:has(.impersonation-bar) .jva-main {
    padding-top: calc(var(--jva-navbar-height) + 42px);
}

/* ─── Footer ─────────────────────────────────────────────────────── */

.jva-footer {
    background: var(--jva-bg-card);
    border-top: 1px solid var(--jva-border);
    padding: 40px 0 30px;
    margin-top: 40px;
}

.jva-footer-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.jva-footer a:hover { color: var(--jva-primary) !important; }

.jva-footer-compact {
    padding: 16px 0;
    padding-bottom: calc(var(--jva-bottomnav-height) + 16px);
    margin-top: 20px;
    border-top: 1px solid var(--jva-border);
    font-size: 0.75rem;
    background: var(--jva-bg-surface);
    position: relative;
    z-index: 1;
}
.jva-footer-compact a { font-size: 0.75rem; text-decoration: none; }
.jva-footer-compact a:hover { color: var(--jva-primary) !important; }
@media (min-width: 768px) {
    .jva-footer-compact { padding-bottom: 16px; }
}

/* ─── Empty States ───────────────────────────────────────────────── */

.jva-empty {
    text-align: center;
    padding: 60px 20px;
}

.jva-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.jva-empty h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.jva-empty p {
    color: var(--jva-text-muted);
    max-width: 300px;
    margin: 0 auto;
}

/* ─── 404 Page ───────────────────────────────────────────────────── */

.jva-404 {
    text-align: center;
    padding: 100px 20px;
}

.jva-404 h1 {
    font-size: 6rem;
    font-weight: 900;
    background: var(--jva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Animations ─────────────────────────────────────────────────── */

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in { animation: fadeIn 0.4s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }

/* ─── Scrollbar ──────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--jva-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--jva-text-muted); }

/* ─── Range Slider ───────────────────────────────────────────────── */

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--jva-border);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--jva-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}

/* ─── Legal Pages ────────────────────────────────────────────────── */

.jva-legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jva-legal h1 { font-size: 2rem; font-weight: 700; margin-bottom: 30px; }
.jva-legal h2 { font-size: 1.3rem; font-weight: 600; margin-top: 30px; margin-bottom: 12px; color: var(--jva-primary-light); }
.jva-legal p, .jva-legal li { color: var(--jva-text-muted); line-height: 1.8; }

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .jva-auth-card { padding: 30px 20px; }
    .jva-hero-stats { gap: 20px; }
    .jva-hero-stat h3 { font-size: 1.5rem; }
    .jva-actions { gap: 10px; }
    .jva-action-btn { width: 50px; height: 50px; }
    .jva-action-btn.superlike,
    .jva-action-btn.boost,
    .jva-action-btn.message { width: 42px; height: 42px; }
}

@media (min-width: 768px) {
    .jva-bottom-nav { display: none !important; }

    .jva-sidebar-nav {
        display: flex;
        position: fixed;
        left: 0;
        top: var(--jva-navbar-height);
        bottom: 0;
        width: 80px;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        gap: 8px;
        background: var(--jva-bg-card);
        border-right: 1px solid var(--jva-border);
        z-index: 1030;
    }
    
    .jva-sidebar-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--jva-text-muted);
        padding: 10px 8px;
        font-size: 0.65rem;
        text-decoration: none;
        border-radius: 12px;
        width: 64px;
        text-align: center;
        transition: all 0.2s;
    }
    .jva-sidebar-link i { font-size: 1.3rem; }
    .jva-sidebar-link:hover { background: var(--jva-bg-surface); color: var(--jva-text); }
    .jva-sidebar-link.active { color: var(--jva-primary); background: rgba(231, 76, 139, 0.1); }
}

/* ─── Form Check Custom ─────────────────────────────────────────── */

.form-check-input:checked {
    background-color: var(--jva-primary);
    border-color: var(--jva-primary);
}

.form-switch .form-check-input {
    background-color: var(--jva-border);
}

.form-switch .form-check-input:checked {
    background-color: var(--jva-primary);
}

/* ─── Loading Spinner ────────────────────────────────────────────── */

.jva-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.jva-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--jva-border);
    border-top-color: var(--jva-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Notification Toast ─────────────────────────────────────────── */

.jva-toast-container {
    position: fixed;
    top: calc(var(--jva-navbar-height) + 10px);
    right: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jva-toast {
    background: var(--jva-bg-card);
    border: 1px solid var(--jva-border);
    border-radius: var(--jva-radius-sm);
    padding: 14px 18px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--jva-shadow);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.jva-toast-icon { font-size: 1.3rem; }
.jva-toast-body { flex: 1; }
.jva-toast-title { font-weight: 600; font-size: 0.85rem; }
.jva-toast-text { font-size: 0.8rem; color: var(--jva-text-muted); }
