:root {
    --navy: #071426;
    --navy-deep: #040d19;
    --navy-soft: #0d223a;
    --surface: rgba(21, 53, 82, 0.72);
    --surface-strong: #102b47;
    --surface-hover: #173b5d;
    --cyan: #25dbe8;
    --cyan-deep: #09a8c4;
    --cyan-glow: rgba(37, 219, 232, 0.3);
    --coral: #ef4444;
    --coral-deep: #ee4f68;
    --green: #47dfa0;
    --text: #f4fbff;
    --text-soft: rgba(232, 246, 255, 0.7);
    --text-muted: rgba(218, 239, 250, 0.42);
    --border: rgba(71, 210, 225, 0.18);
    --border-soft: rgba(194, 233, 246, 0.1);
    --gradient: #2563eb;
    --gradient-dark: #1d4ed8; 
    --radius: 18px;
    --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #eef2f6;
    color: var(--text);
    font-family: Quicksand, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image: none;
    background-size: 22px 22px;
}
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
.material-symbols-rounded {
    visibility: hidden;
    vertical-align: middle;
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}
html.ms-ready .material-symbols-rounded { visibility: visible; }
.material-symbols-rounded.filled { font-variation-settings: "FILL" 1, "wght" 450, "GRAD" 0, "opsz" 24; }

#app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 104px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.62);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 20, 38, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.brand-logo { display: block; box-sizing: border-box; width: 130px; height: 40px; padding: 5px 9px; border-radius: 9px; background: #fff; object-fit: contain; box-shadow: 0 7px 20px rgba(0,0,0,.24); }
.topbar-actions { display: flex; gap: 7px; }
.icon-button {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    color: var(--text-soft);
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s;
}
.icon-button:hover { transform: translateY(-1px); border-color: var(--border); background: var(--surface); }
.icon-button .material-symbols-rounded { font-size: 21px; }
.notif-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    background: var(--coral);
}

.cover { position: relative; height: clamp(190px, 44vw, 244px); overflow: hidden; background: var(--navy-soft); }
.cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* .profile-head remonte de 56px sur la cover : le haut du bloc nom/âge/badge
   se superpose donc à la photo. Un voile plat ne suffit pas sur une image
   claire — il faut un fondu qui termine sur la couleur de fond opaque. */
.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
}
.cover-brand {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 15px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(4,13,25,.48);
    color: rgba(244,251,255,.8);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    backdrop-filter: blur(8px);
}

.profile-head { position: relative; z-index: 3; margin-top: -56px; padding: 0 17px; }
.avatar-row { display: flex; align-items: flex-end; gap: 14px; }
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--cyan);
    animation: ring-spin 7s linear infinite;
}
.avatar {
    position: relative;
    z-index: 1;
    display: block;
    width: 98px;
    height: 98px;
    object-fit: cover;
    border: 4px solid var(--navy);
    border-radius: 50%;
    background: var(--navy-soft);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.live-badge {
    position: absolute;
    z-index: 3;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border: 2px solid var(--navy);
    border-radius: 999px;
    background: var(--coral-deep);
    color: white;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    animation: live-pulse 1.7s ease-in-out infinite;
}
@keyframes live-pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.16); } }
.name-block { min-width: 0; padding-bottom: 5px; }
.name-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Filet de sécurité : quelle que soit la photo de couverture, le nom reste lisible. */
.name-line h1 { margin: 0; font-size: 25px; line-height: 1.08; letter-spacing: -.03em; text-shadow: 0 1px 12px rgba(4, 13, 25, .85); }
.age { color: var(--text-soft); font-size: 16px; font-weight: 600; }
.verified-badge { color: var(--cyan); font-size: 21px; filter: drop-shadow(0 0 8px var(--cyan-glow)); }
.handle { margin-top: 3px; color: var(--text-muted); font-size: 12.5px; }
.online-line { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--green); font-size: 12px; font-weight: 700; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.geo-line { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--cyan); font-size: 13px; font-weight: 650; }
.geo-line .material-symbols-rounded { font-size: 18px; }

.stats { display: flex; gap: clamp(22px, 8vw, 34px); padding: 15px 17px 5px; }
.stat { text-align: center; }
.stat-value { font-size: 17px; font-weight: 850; letter-spacing: -.02em; }
.stat-label { margin-top: 2px; color: var(--text-muted); font-size: 9.5px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.bio { padding: 11px 17px 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.58; }
.bio.collapsed .bio-more-lines { display: none; }
.bio-toggle { margin: 5px 17px 0; padding: 0; border: 0; background: none; color: var(--cyan); font-size: 12.5px; font-weight: 750; cursor: pointer; }

.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 17px; }
.action-btn {
    display: flex;
    min-width: 0;
    min-height: 70px;
    padding: 10px 4px 9px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.035);
    color: var(--text-soft);
    font-size: 10.5px;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s;
}
.action-btn:hover { transform: translateY(-2px); border-color: rgba(37,219,232,.36); background: var(--surface); }
.action-btn .material-symbols-rounded { color: var(--cyan); font-size: 23px; }
.action-btn.primary { border: 0; background: var(--gradient); color: #06131f; font-weight: 850; box-shadow: 0 5px 22px var(--cyan-glow); }
.action-btn.primary .material-symbols-rounded { color: #06131f; }

.stories { display: flex; gap: 13px; padding: 2px 17px 17px; overflow-x: auto; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { width: 65px; flex: 0 0 65px; padding: 0; border: 0; background: none; color: inherit; text-align: center; cursor: pointer; }
/* `display: block` obligatoire : .story-ring est un <span>, donc inline par
   défaut, et un inline ignore width/height/margin auto. Sans ça l'anneau se
   réduisait à un filet vertical cyan et l'image se déformait en losange. */
.story-ring { position: relative; display: block; width: 63px; height: 63px; margin: 0 auto; padding: 2.5px; border-radius: 50%; background: var(--cyan); }
.story-img { display: block; width: 100%; height: 100%; object-fit: cover; border: 3px solid var(--navy); border-radius: 50%; }
.story.locked .story-img { filter: blur(6px) brightness(.58); }
.story.locked .story-ring::after {
    content: "lock";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--cyan);
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    font-variation-settings: "FILL" 1;
    visibility: hidden;
}
html.ms-ready .story.locked .story-ring::after { visibility: visible; }
.story-label { display: block; margin-top: 5px; overflow: hidden; color: var(--text-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.divider { display: flex; align-items: center; gap: 10px; padding: 1px 17px; color: var(--cyan); }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.divider span { font-size: 9px; letter-spacing: .45em; opacity: .75; }

.tabs {
    position: sticky;
    top: 57px;
    z-index: 40;
    display: flex;
    margin-top: 10px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(7,20,38,.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.tab-btn { position: relative; flex: 1; padding: 14px 0 12px; border: 0; background: none; color: var(--text-muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.tab-btn.active { color: var(--text); }
.tab-btn.active::after { content: ""; position: absolute; right: 28%; bottom: 0; left: 28%; height: 3px; border-radius: 9px; background: var(--gradient); }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--coral); vertical-align: 2px; animation: live-pulse 1.7s infinite; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.grid-item { position: relative; min-width: 0; padding: 0; aspect-ratio: 3 / 4; overflow: hidden; border: 0; background: var(--navy-soft); color: var(--text); cursor: pointer; }
.grid-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.grid-item:hover img { transform: scale(1.045); }
.grid-item.locked img { filter: blur(20px) saturate(.72) brightness(.64); transform: scale(1.2); }
.grid-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; background: rgba(4,13,25,.21); }
.grid-overlay .material-symbols-rounded { color: var(--cyan); font-size: 30px; filter: drop-shadow(0 2px 7px rgba(0,0,0,.75)); }
.grid-overlay .hint { color: rgba(244,251,255,.86); font-size: 9.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 5px rgba(0,0,0,.8); }
.video-badge { position: absolute; z-index: 2; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 5px; background: rgba(2,8,16,.75); font-size: 10px; font-weight: 700; }
.grid-cta { padding: 20px 17px 12px; text-align: center; }
.gradient-button {
    padding: 13px 25px;
    border: 0;
    border-radius: 999px;
    background: var(--gradient);
    color: #06131f;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 6px 25px var(--cyan-glow);
}

.live-panel { position: relative; height: 310px; margin: 15px 17px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--navy-soft); cursor: pointer; }
.live-panel > img { width: 100%; height: 100%; object-fit: cover; filter: blur(15px) brightness(.55); transform: scale(1.15); }
.live-panel-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 11px; padding: 24px; text-align: center; }
.live-tag { padding: 5px 13px; border-radius: 999px; background: var(--coral-deep); color: white; font-size: 10px; font-weight: 900; letter-spacing: .14em; animation: live-pulse 1.7s infinite; }
.live-panel h3 { max-width: 310px; margin: 0; font-size: 18px; line-height: 1.4; }

.feed-title { padding: 20px 17px 9px; color: var(--text-soft); font-size: 15px; font-weight: 800; }
.post { margin: 0 10px 15px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-strong); }
.post-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-avatar { width: 39px; height: 39px; object-fit: cover; border: 2px solid var(--cyan); border-radius: 50%; }
.post-info { min-width: 0; flex: 1; }
.post-name { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.post-name .verified-badge { font-size: 16px; }
.post-time { margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.post-more { color: var(--text-muted); }
.post-text { padding: 0 14px 11px; color: var(--text-soft); font-size: 13px; line-height: 1.52; }
.post-media { position: relative; display: block; width: 100%; max-height: 500px; padding: 0; overflow: hidden; border: 0; background: var(--navy-soft); color: var(--text); cursor: pointer; }
.post-media img { display: block; width: 100%; max-height: 500px; object-fit: cover; }
.post-media.locked img { filter: blur(25px) brightness(.62); transform: scale(1.15); }
.media-count { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(2,8,16,.75); font-size: 10.5px; font-weight: 750; }
.media-count .material-symbols-rounded { color: var(--cyan); font-size: 14px; }
.post-actions { display: flex; gap: 18px; padding: 11px 14px; border-top: 1px solid var(--border-soft); }
.post-action { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text-soft); font-size: 12px; cursor: pointer; }
.post-action .material-symbols-rounded { font-size: 20px; }
.post-action.like .material-symbols-rounded { color: var(--coral); }

.sticky-cta { position: fixed; z-index: 60; bottom: 0; left: 50%; width: 100%; max-width: 540px; padding: 14px 15px calc(13px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255,255,255,.94); }
.sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 13px 18px; border-radius: 999px; background: var(--gradient); color: #06131f; font-size: 14px; font-weight: 900; letter-spacing: .02em; text-decoration: none; box-shadow: 0 7px 30px var(--cyan-glow); animation: cta-pulse 2.5s ease-in-out infinite; }
.sticky-cta .material-symbols-rounded { font-size: 21px; }
@keyframes cta-pulse { 50% { box-shadow: 0 7px 42px rgba(37,219,232,.45), 0 0 18px rgba(239,68,68,.14); } }

.site-footer { padding: 28px 17px 122px; color: var(--text-muted); font-size: 10.5px; line-height: 1.8; text-align: center; }
.site-footer img { display: block; box-sizing: border-box; width: 122px; height: 38px; margin: 0 auto 10px; padding: 5px 9px; border-radius: 8px; background: #fff; object-fit: contain; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.adult-badge { display: inline-block; margin-right: 4px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--cyan); font-weight: 850; }

.popup-overlay, .exit-overlay { position: fixed; inset: 0; display: none; background: rgba(2,8,16,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.popup-overlay { z-index: 90; }
.popup-overlay.active { display: block; animation: fade-in .22s; }
@keyframes fade-in { from { opacity: 0; } }
.popup-sheet { position: fixed; z-index: 95; bottom: 0; left: 50%; display: none; width: 100%; max-width: 540px; max-height: 92vh; max-height: 92dvh; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-50%); border: 1px solid var(--border); border-bottom: 0; border-radius: 24px 24px 0 0; background: var(--surface-strong); box-shadow: 0 -20px 70px rgba(0,0,0,.55); }
.popup-sheet.active { display: block; animation: sheet-up .35s ease-out; }
@keyframes sheet-up { from { transform: translate(-50%, 100%); } }
@keyframes sheet-down { to { transform: translate(-50%, 100%); } }
.popup-handle { width: 43px; height: 4px; margin: 4px auto 15px; border-radius: 5px; background: rgba(255,255,255,.14); }
.pop-presence { text-align: center; }
.presence-avatars { display: flex; justify-content: center; }
.presence-avatar { position: relative; display: inline-grid; width: 43px; height: 43px; margin: 0 -5px; place-items: center; border: 2px solid var(--surface-strong); border-radius: 50%; background: var(--gradient-dark); color: white; font-size: 14px; font-weight: 850; }
.presence-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid var(--surface-strong); border-radius: 50%; background: var(--green); }
.presence-avatar.photo { z-index: 2; object-fit: cover; }
.presence-text { margin-top: 9px; color: var(--green); font-size: 12px; font-weight: 750; }
.popup-title { margin-top: 10px; background: var(--gradient); background-clip: text; color: transparent; font-size: 21px; font-weight: 900; text-align: center; }
.popup-subtitle { max-width: 430px; margin: 5px auto 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.45; text-align: center; }
.popup-benefits { display: grid; gap: 8px; margin: 16px 0 14px; }
.benefit { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,.035); color: var(--text-soft); font-size: 12.5px; }
.benefit .material-symbols-rounded { flex: 0 0 auto; color: var(--cyan); font-size: 19px; }
.popup-trust { display: flex; justify-content: center; gap: 13px; margin-bottom: 15px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 10.5px; }
.trust-badge .material-symbols-rounded { color: var(--cyan); font-size: 15px; }
#form { position: relative; min-height: 300px; }
#formLoader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--text-muted); font-size: 12px; text-align: center; }
.spinner { width: 35px; height: 35px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#formFallback { display: none; padding: 9px 0 3px; text-align: center; }
#formFallback a { display: inline-block; padding: 13px 25px; border-radius: 999px; background: var(--gradient); color: #06131f; font-size: 13px; font-weight: 850; text-decoration: none; }
.popup-reassure { margin-top: 10px; color: var(--text-muted); font-size: 10.5px; text-align: center; }
.popup-dismiss { display: block; width: 100%; padding: 14px 0 2px; border: 0; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; }

.exit-overlay { z-index: 100; align-items: center; justify-content: center; padding: 24px; }
.exit-overlay.active { display: flex; animation: fade-in .22s; }
.exit-content { width: 100%; max-width: 350px; padding: 28px 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-strong); text-align: center; box-shadow: 0 20px 70px rgba(0,0,0,.55); }
.exit-avatar { width: 75px; height: 75px; margin-bottom: 11px; object-fit: cover; border: 3px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 25px var(--cyan-glow); }
.exit-title { margin-bottom: 8px; font-size: 20px; font-weight: 900; }
.exit-message { margin-bottom: 18px; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.exit-cta { width: 100%; padding: 13px; border: 0; border-radius: 999px; background: var(--gradient); color: #06131f; font-size: 14px; font-weight: 900; cursor: pointer; }
.exit-close { margin-top: 10px; padding: 6px; border: 0; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; }

.chat-bubble { position: fixed; z-index: 80; right: 16px; bottom: 96px; display: none; }
.chat-bubble.active { display: block; }
.chat-toggle { position: relative; display: block; width: 57px; height: 57px; padding: 0; border: 2px solid var(--cyan); border-radius: 50%; background: var(--navy-soft); cursor: pointer; box-shadow: 0 5px 22px rgba(0,0,0,.55), 0 0 20px var(--cyan-glow); animation: bounce-in .5s; }
@keyframes bounce-in { 0% { transform: scale(0); } 70% { transform: scale(1.12); } }
.chat-toggle img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-notif { position: absolute; top: -5px; right: -5px; display: grid; width: 21px; height: 21px; place-items: center; border: 2px solid var(--navy); border-radius: 50%; background: var(--coral-deep); color: white; font-size: 10px; font-weight: 900; }
.chat-window { position: absolute; right: 0; bottom: 68px; display: none; width: min(294px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-strong); box-shadow: 0 15px 50px rgba(0,0,0,.65); }
.chat-window.open { display: block; animation: chat-up .24s ease-out; }
@keyframes chat-up { from { transform: translateY(12px); opacity: 0; } }
.chat-win-header { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.035); }
.chat-win-avatar { width: 35px; height: 35px; object-fit: cover; border: 1px solid var(--cyan); border-radius: 50%; }
.chat-win-name { font-size: 13px; font-weight: 850; }
.chat-win-status { color: var(--green); font-size: 10.5px; }
.chat-messages { min-height: 110px; max-height: 210px; padding: 12px; overflow-y: auto; }
.chat-msg, .typing-dots { width: fit-content; max-width: 86%; margin-bottom: 8px; border-radius: 13px 13px 13px 3px; background: var(--surface-hover); }
.chat-msg { padding: 8px 11px; color: var(--text-soft); font-size: 12.5px; line-height: 1.4; animation: chat-up .22s; }
.typing-dots { display: inline-flex; gap: 4px; padding: 11px 13px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input-fake { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border-soft); }
.chat-input-fake input { min-width: 0; flex: 1; padding: 9px 13px; border: 1px solid var(--border-soft); border-radius: 999px; outline: none; background: rgba(255,255,255,.04); color: var(--text); font-size: 12px; cursor: pointer; }
.chat-send { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--gradient); color: #06131f; cursor: pointer; }
.chat-send .material-symbols-rounded { font-size: 19px; }

@media (min-width: 600px) {
    body { padding: 24px 0; }
    #app { min-height: calc(100vh - 48px); border: 1px solid var(--border-soft); border-radius: 25px; }
    .topbar { border-radius: 25px 25px 0 0; }
    .sticky-cta { bottom: 18px; padding: 12px 16px; background: rgba(7,20,38,.88); border: 1px solid var(--border); border-radius: 999px; backdrop-filter: blur(16px); }
    .chat-bubble { right: auto; left: calc(50% + 200px); bottom: 94px; }
    .popup-sheet { bottom: 18px; border: 1px solid var(--border); border-radius: 24px; }
}
@media (max-width: 380px) {
    .brand-logo { width: 105px; }
    .profile-head { padding-inline: 13px; }
    .avatar { width: 88px; height: 88px; }
    .name-line h1 { font-size: 22px; }
    .actions { gap: 6px; padding-inline: 12px; }
    .action-btn { font-size: 9.5px; }
    .stats { gap: 18px; padding-inline: 13px; }
    .popup-sheet { padding-inline: 15px; }
}
@media (max-height: 600px) and (orientation: landscape) {
    .popup-sheet { max-height: 98vh; max-height: 98dvh; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ---------- fan-site dark ----------
   Couche visuelle calquée sur le référentiel MyFanz : page noire, chrome réduit
   au minimum, média plein-bord, un seul accent plein — jamais de dégradé.
   L'accent est #3cbff0, le bleu clair primaire de twinks.tube (385 occurrences
   dans le CSS du site, et --as-accent de /twink-social/).
   Le texte posé SUR l'accent est sombre : sur un bleu clair, du blanc tombe à
   2:1 de contraste. */
:root {
    --primary: #3cbff0;
    --primary-light: #6fd3f7;
    --primary-deep: #1aa5dc;
    --primary-ink: #04121a;
    --primary-glow: rgba(60, 191, 240, 0.4);

    --bg-page: #000000;
    --bg-app: #0a0a0a;
    --bg-elevated: #111111;

    /* Les noms navy/cyan/coral restent : ils sont câblés dans les règles de
       base plus haut dans ce fichier. Seules les valeurs basculent. */
    --navy: #0a0a0a;
    --navy-deep: #000000;
    --navy-soft: #111111;
    --surface: rgba(255, 255, 255, .05);
    --surface-strong: #111111;
    --surface-hover: rgba(255, 255, 255, .10);
    --cyan: var(--primary);
    --cyan-deep: var(--primary-deep);
    --cyan-glow: var(--primary-glow);
    --coral: #ef4444;
    --coral-deep: #dc2626;
    --green: #22c55e;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, .60);
    --text-muted: rgba(255, 255, 255, .35);
    --border: rgba(255, 255, 255, .08);
    --border-soft: rgba(255, 255, 255, .12);
    --gradient: var(--primary);
    --gradient-dark: var(--primary-deep);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

html { color-scheme: dark; }
body {
    background: var(--bg-page);
    color: var(--text);
    font-family: Inter, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
body::before { display: none; }

#app {
    max-width: 680px;
    overflow: clip;
    background: var(--bg-app);
    box-shadow: none;
}

/* ---------- barre supérieure ---------- */

.topbar {
    min-height: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}
.brand-wordmark {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
}
.brand-wordmark > span { color: var(--primary); }
.brand-wordmark--footer {
    width: max-content;
    margin: 0 auto 14px;
    font-size: 21px;
}
.icon-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
}
.icon-button:hover { background: var(--surface-hover); transform: none; }
.icon-button .material-symbols-rounded { font-size: 20px; }
.notif-dot { border-color: var(--bg-app); background: var(--coral); }

/* ---------- couverture ---------- */

.cover {
    height: clamp(180px, 36vw, 240px);
    background: var(--bg-elevated);
}
/*
 * .profile-head remonte sur la couverture : le haut du bloc nom/âge/badge
 * repose sur la photo. Le voile doit finir sur la couleur de fond OPAQUE,
 * sinon le nom devient illisible sur toute image claire.
 */
.cover::after {
    display: block;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(0deg,
            var(--bg-app) 0%,
            var(--bg-app) 10%,
            rgba(10, 10, 10, .82) 30%,
            rgba(10, 10, 10, .28) 66%,
            transparent 90%);
}
.cover-brand {
    border-color: var(--border-soft);
    background: rgba(0, 0, 0, .5);
    color: var(--text-soft);
}

/* ---------- identité ---------- */

.profile-head {
    margin-top: -48px;
    padding: 0 16px;
}
.avatar-row { gap: 16px; }
.avatar-ring {
    inset: -3px;
    background: var(--primary);
    animation: none;
}
.avatar {
    width: 100px;
    height: 100px;
    border-color: var(--bg-app);
    background: var(--bg-elevated);
}
.live-badge {
    border-color: var(--bg-app);
    background: var(--coral-deep);
    animation: none;
    letter-spacing: .1em;
}
.name-block { padding-bottom: 6px; }
.name-line h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .8);
}
.age { color: var(--text-soft); font-weight: 500; }
.verified-badge { color: var(--primary); filter: none; }
.handle { color: var(--text-soft); font-size: 14px; }
.online-line { color: var(--green); }
.online-dot { background: var(--green); box-shadow: none; }
.geo-line { color: var(--text-soft); font-weight: 500; }

/* ---------- chiffres ---------- */

.stats {
    justify-content: flex-start;
    gap: 28px;
    padding: 18px 16px 6px;
}
.stat { text-align: start; }
.stat-value {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.stat-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
}

.bio { padding-inline: 16px; color: var(--text-soft); font-size: 14px; }
.bio-toggle {
    margin-left: 16px;
    color: var(--primary);
    font-weight: 700;
}

/* ---------- actions ---------- */

.actions {
    gap: 10px;
    padding: 18px 16px;
}
.action-btn {
    min-height: 74px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
}
.action-btn:hover {
    border-color: var(--border-soft);
    background: var(--surface-hover);
    transform: none;
}
.action-btn .material-symbols-rounded { color: var(--text); font-size: 22px; }

/* Un seul remplissage plein sur la page : l'accent, et du texte sombre dessus. */
.action-btn.primary,
.gradient-button,
.sticky-cta a,
#formFallback a,
.exit-cta,
.chat-send {
    border: 0;
    background: var(--primary);
    color: var(--primary-ink);
    box-shadow: none;
}
.action-btn.primary:hover,
.gradient-button:hover,
.sticky-cta a:hover,
#formFallback a:hover,
.exit-cta:hover,
.chat-send:hover { background: var(--primary-light); }
.action-btn.primary .material-symbols-rounded { color: var(--primary-ink); }

/* ---------- stories ---------- */

.stories { gap: 14px; padding: 2px 16px 18px; }
.story-ring {
    padding: 2px;
    background: var(--primary);
}
/* Verrouillee : pas d'anneau d'accent (ce n'est pas du contenu neuf), fond
   sombre sous l'image et flou proportionne au diametre du cercle. */
.story.locked .story-ring {
    background: var(--border-soft);
}
.story.locked .story-img {
    background: var(--bg-elevated);
    filter: blur(3.5px) brightness(.55) saturate(.8);
}
.story.locked .story-ring::after {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.story-img { border-color: var(--bg-app); }
.story-label { color: var(--text-soft); font-size: 11px; font-weight: 500; }
.divider { display: none; }

/* ---------- onglets ---------- */

.tabs {
    top: 65px;
    margin-top: 0;
    border-color: var(--border);
    background: rgba(10, 10, 10, .92);
}
.tab-btn {
    min-height: 44px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}
.tab-btn.active { color: #fff; }
.tab-btn.active::after { background: var(--primary); height: 2px; }

/* ---------- média plein-bord ---------- */

.grid {
    gap: 2px;
    padding: 0;
    background: var(--bg-app);
}
.grid-item { background: var(--bg-elevated); border-radius: 0; }
.grid-overlay { background: rgba(0, 0, 0, .55); }
.grid-overlay .material-symbols-rounded,
.media-count .material-symbols-rounded { color: #fff; }
.video-badge, .media-count { color: #fff; }
.grid-item.locked img { filter: blur(18px) brightness(.4) saturate(.6); transform: scale(1.2); }
.grid-overlay .hint {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-ink);
    font-size: 11px;
    font-weight: 700;
}
.grid-cta { padding: 14px 16px 4px; }
.gradient-button {
    min-height: 46px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
}
.live-panel { border-color: var(--border); background: var(--bg-elevated); }
.live-panel h3 { color: #fff; }

/* ---------- publications ---------- */

.feed-title {
    padding: 26px 16px 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}
.post {
    margin: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: var(--bg-app);
    box-shadow: none;
}
.post-header { padding-inline: 16px; }
.post-avatar { border-color: var(--bg-app); box-shadow: 0 0 0 2px var(--primary); }
.post-name { color: #fff; }
.post-time { color: var(--text-muted); font-size: 12px; }
.post-text { padding-inline: 16px; color: var(--text-soft); }
.post-media { border-radius: 0; background: var(--bg-elevated); }
.post-actions { padding-inline: 16px; border-color: var(--border); }
.post-action { color: var(--text-soft); }
.post-action.like .material-symbols-rounded { color: var(--coral); }

/* ---------- barre d'action fixe ---------- */

/* Un fondu vers le noir, pas une barre pleine : c'est ce qui donne l'impression
   que le contenu passe dessous plutôt que de buter contre un bandeau. */
.sticky-cta {
    max-width: 680px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 0;
    background: linear-gradient(to top, var(--bg-app) 60%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.sticky-cta a {
    min-height: 0;
    padding: 15px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 24px var(--primary-glow);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    animation: none;
}
.sticky-cta .material-symbols-rounded { font-size: 20px; }

.site-footer {
    padding: 28px 16px 150px;
    border-top: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--text-muted);
}
.site-footer a { color: var(--text-soft); text-decoration: underline; }
.adult-badge { border-color: var(--border-soft); color: var(--primary); }

/* Sas de redirection : plein écran, 900 ms, avant tout départ vers le partenaire. */
.gate {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .93);
    backdrop-filter: blur(6px);
}
.gate.show { display: flex; }
.gate-box { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 0 28px; text-align: center; }
.gate-box b { color: #fff; font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.gate-spin {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .16);
    border-top-color: var(--primary);
    animation: gate-spin .8s linear infinite;
}
@keyframes gate-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gate-spin { animation-duration: 2.4s; } }

/* ---------- feuilles et modales ---------- */

.popup-overlay, .exit-overlay { background: rgba(0, 0, 0, .8); }
.popup-sheet {
    max-width: 600px;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    border-color: var(--border);
    border-radius: 24px 24px 0 0;
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .7);
}
.popup-handle { background: rgba(255, 255, 255, .18); }
.pop-presence { display: flex; align-items: center; justify-content: center; gap: 7px; }
.presence-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.presence-text { margin-top: 0; color: var(--green); font-size: 12px; }
.popup-title { margin: 12px 0 0; background: none; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.popup-subtitle { margin-top: 6px; color: var(--text-soft); font-size: 13px; }
#form { position: relative; min-height: 190px; margin-top: 16px; }
#form.is-ready, #form.is-unavailable { min-height: 0; }
#formLoader {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
}
.spinner { border-color: rgba(255, 255, 255, .14); border-top-color: var(--primary); }
#selector { display: block; width: 100%; }
#selector:not(:empty) {
    display: block;
    padding: 14px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #16161a;
    color: #fff;
}
#formFallback { padding-top: 12px; }
#formFallback a { min-height: 44px; border-radius: 50px; font-weight: 700; }
.popup-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.benefit {
    min-width: 0;
    padding: 10px;
    border-color: var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 11.5px;
}
.benefit .material-symbols-rounded { color: var(--primary); }
.popup-trust { gap: 12px; margin-bottom: 8px; }
.trust-badge { color: var(--text-muted); font-size: 11px; }
.trust-badge .material-symbols-rounded { color: var(--primary); }
.popup-reassure { margin-top: 8px; color: var(--text-muted); font-size: 11px; }
.popup-dismiss { color: var(--text-muted); }

.exit-content {
    border-color: var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .7);
}
.exit-avatar { border-color: var(--primary); box-shadow: none; }
.exit-title { color: #fff; }
.exit-message, .exit-close { color: var(--text-soft); }

/* ---------- bulle de chat ---------- */

.chat-toggle {
    border-color: var(--bg-app);
    background: var(--bg-elevated);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .5), 0 0 0 2px var(--primary);
}
.chat-notif { border-color: var(--bg-app); background: var(--coral); }
.chat-window {
    border-color: var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .7);
}
.chat-win-header { border-color: var(--border); background: var(--surface); }
.chat-win-name { color: #fff; }
.chat-win-avatar { border-color: var(--primary); }
.chat-msg, .typing-dots { background: var(--surface-hover); }
.chat-msg { color: var(--text); }
.chat-input-fake { border-color: var(--border); }
.chat-input-fake input {
    border-color: var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--text);
}
.chat-input-fake input::placeholder { color: var(--text-muted); }

@media (min-width: 600px) {
    body { padding: 28px 16px; }
    #app {
        min-height: calc(100vh - 56px);
        border: 1px solid var(--border);
        border-radius: 20px;
    }
    .topbar { border-radius: 20px 20px 0 0; }
    .sticky-cta { bottom: 18px; border: 0; border-radius: 0 0 20px 20px; }
    .chat-bubble { right: auto; left: calc(50% + 260px); bottom: 94px; }
    .popup-sheet { bottom: 22px; border: 1px solid var(--border); border-radius: 24px; }
}

@media (max-width: 520px) {
    .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .action-btn { min-height: 66px; font-size: 11px; }
    .action-btn .material-symbols-rounded { font-size: 20px; }
    .popup-benefits { grid-template-columns: 1fr; }
    .benefit { min-height: 40px; }
}

@media (max-width: 360px) {
    .brand-wordmark { font-size: 22px; }
    .topbar { padding-inline: 12px; }
    .topbar-actions { gap: 4px; }
    .icon-button { width: 36px; height: 36px; }
    .avatar { width: 88px; height: 88px; }
    .name-line h1 { font-size: 24px; }
    .stats { gap: 20px; }
    .action-btn { font-size: 10.5px; }
}

.live-dot, .live-tag { animation: none; }
.live-dot { background: var(--coral); }
