/* ============================================================
   user.css — User-side styling (dashboard + chat + attachments)
   Complements Bootstrap 5.3
   ============================================================ */

/* ============ NAVBAR (non-dashboard pages) ============ */
.user-body { background: var(--cream, #FFF8F0); }
.user-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(123,45,62,.06);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 12px 20px;
    display: flex; align-items: center; gap: 20px;
}
.nav-brand { font-size: 20px; font-weight: 700; color: var(--maroon, #7B2D3E); text-decoration: none; }
.nav-brand span { color: var(--rose, #B76E79); }
.nav-links { display: flex; gap: 18px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--ink, #2C2C2C); text-decoration: none; }
.nav-links a:hover { color: var(--rose, #B76E79); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-icon { font-size: 20px; text-decoration: none; }
.nav-avatar img {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--gold, #D4AF37);
}
.nav-logout { font-size: 13px; color: var(--muted, #8a8a8a); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

.user-main { min-height: calc(100vh - 300px); }
.user-container { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.page-title { font-size: 26px; color: var(--maroon, #7B2D3E); margin: 0 0 6px; }

/* ============ AUTH ============ */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
    background: #fff; padding: 32px; border-radius: 16px;
    box-shadow: var(--shadow, 0 6px 24px rgba(123,45,62,.08));
    max-width: 480px; width: 100%;
}
.auth-card h2 { margin: 0 0 4px; color: var(--maroon, #7B2D3E); }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-form label {
    font-size: 13px; color: var(--maroon, #7B2D3E);
    display: flex; flex-direction: column; gap: 4px;
}
.auth-form input, .auth-form select {
    padding: 11px 13px; border: 1px solid var(--line, #eadfd6);
    border-radius: 10px; font-size: 15px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted, #8a8a8a); }

/* ============ CHAT PAGE ============ */
.chat-page {
    display: flex; flex-direction: column;
    height: calc(100vh - 120px);
    padding-bottom: 20px;
}

/* Head card */
.chat-head-card {
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    border-bottom: 1px solid #f4ecdf;
    flex-shrink: 0;
}
.chat-head-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--gold, #D4AF37);
}
.chat-head-info { flex: 1; min-width: 0; }
.chat-head-info strong { color: var(--maroon, #7B2D3E); font-size: 15px; }
.chat-head-info .online-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: #4caf50; margin-right: 4px;
}

/* Message window */
.chat-window {
    flex: 1;
    background: #faf6f1;
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.02);
    scroll-behavior: smooth;
}
.chat-window::-webkit-scrollbar { width: 6px; }
.chat-window::-webkit-scrollbar-thumb { background: #d8c9b8; border-radius: 3px; }

.chat-empty {
    text-align: center; color: var(--muted, #8a8a8a);
    font-style: italic; margin: auto; font-size: 14px;
}
.chat-empty i {
    font-size: 42px; color: #d8c9b8; display: block; margin-bottom: 8px;
}

/* ============ MESSAGE ============ */
.msg {
    display: flex;
    flex-direction: column;
    max-width: 68%;
    gap: 4px;
    position: relative;
    cursor: pointer;
    transition: background .15s;
    border-radius: 14px;
    padding: 4px;
}
.msg.me   { align-self: flex-end;   align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }

/* Active state — revealed by click */
.msg.active { background: rgba(183,110,121,.08); }
.msg.me.active   { background: rgba(183,110,121,.12); }
.msg.them.active { background: rgba(0,0,0,.04); }

.bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}
.msg.me .bubble {
    background: linear-gradient(135deg, #B76E79, #7B2D3E);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg.them .bubble {
    background: #fff;
    color: var(--ink, #2C2C2C);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.msg-meta {
    font-size: 11px;
    color: var(--muted, #8a8a8a);
    padding: 0 4px;
}
.msg .seen { color: #4caf50; margin-left: 3px; }

/* ============ DELETE-FOR-ME (click-to-reveal) ============ */
.msg-delete-btn {
    position: absolute;
    top: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: #C0392B;
    color: #fff;
    display: grid; place-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(.6);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 2px 8px rgba(192,57,43,.3);
}
.msg-delete-btn:hover {
    background: #a5271a;
    transform: scale(1.1);
}
.msg.active .msg-delete-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.msg.me   .msg-delete-btn { left: -34px; }
.msg.them .msg-delete-btn { right: -34px; }

/* ============ ATTACHMENTS ============ */
.att-image img {
    max-width: 240px; max-height: 240px;
    border-radius: 12px; cursor: pointer;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.att-video {
    max-width: 260px;
    border-radius: 12px;
    display: block;
    background: #000;
}
.att-audio {
    background: #fff;
    padding: 8px 12px;
    border-radius: 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.msg.me .att-audio {
    background: linear-gradient(135deg, #B76E79, #7B2D3E);
    color: #fff;
}
.att-audio audio { max-width: 200px; height: 32px; }
.att-audio small { font-size: 11px; opacity: .8; }

/* ============ INPUT BAR ============ */
.chat-input-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    border-top: 1px solid #f4ecdf;
    flex-shrink: 0;
    position: relative;
}
.chat-input-bar .form-control {
    border-radius: 24px;
    padding: 10px 18px;
    border: 1px solid var(--line, #eadfd6);
    font-size: 14px;
}
.chat-input-bar .form-control:focus {
    border-color: var(--rose, #B76E79);
    box-shadow: 0 0 0 3px rgba(183,110,121,.15);
}
.chat-input-bar .btn {
    border-radius: 24px;
    padding: 8px 18px;
    flex-shrink: 0;
}

.chat-tools { display: flex; gap: 4px; flex-shrink: 0; }
.tool-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line, #eadfd6);
    background: #fff;
    color: var(--maroon, #7B2D3E);
    display: grid; place-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background .15s, transform .15s;
}
.tool-btn:hover { background: #faf3ec; transform: scale(1.05); }
.tool-btn.recording {
    background: #fdecea;
    border-color: #C0392B;
    color: #C0392B;
}

/* ============ VOICE RECORDER OVERLAY ============ */
.voice-recorder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7B2D3E, #B76E79);
    border-radius: 0 0 12px 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    overflow: hidden;
    user-select: none;
    transition: background .2s;
}
.voice-recorder.active {
    display: flex;
    animation: vrSlideUp .25s ease;
}
@keyframes vrSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.voice-recorder.cancelling {
    background: linear-gradient(135deg, #8a1c1c, #C0392B);
}

.vr-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    width: 100%;
    max-width: 640px;
    color: #fff;
}

.vr-cancel {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    display: grid; place-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.vr-cancel:hover { background: rgba(255,255,255,.3); }
.voice-recorder.cancelling .vr-cancel {
    background: #C0392B;
    animation: vrShake .4s infinite;
}
@keyframes vrShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-3px); }
    75%      { transform: translateX(3px); }
}

.vr-pulse { display: flex; gap: 3px; align-items: center; flex-shrink: 0; }
.vr-pulse span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    animation: vrPulse 1s infinite ease-in-out;
}
.vr-pulse span:nth-child(2) { animation-delay: .15s; }
.vr-pulse span:nth-child(3) { animation-delay: .3s; }
@keyframes vrPulse {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50%      { opacity: 1;  transform: scale(1.2); }
}

.vr-time {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    flex-shrink: 0;
    min-width: 52px;
}

.vr-hint {
    font-size: 13px;
    opacity: .85;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-mic {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: grid; place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    animation: vrGlow 1.4s infinite;
}
@keyframes vrGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
    50%      { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.vr-slide-hint {
    position: absolute;
    left: 20px;
    bottom: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: vrSlideHint 1.5s infinite;
}
@keyframes vrSlideHint {
    0%, 100% { transform: translateX(0); opacity: .6; }
    50%      { transform: translateX(-5px); opacity: 1; }
}

/* ============ MOBILE ============ */
@media (max-width: 767.98px) {
    .chat-page { height: calc(100vh - 100px); }
    .chat-head-card { padding: 12px 14px; }
    .chat-head-avatar { width: 40px; height: 40px; }
    .chat-window { padding: 14px; gap: 10px; }
    .msg { max-width: 82%; }
    .chat-input-bar { padding: 10px 12px; gap: 6px; }
    .tool-btn { width: 36px; height: 36px; font-size: 16px; }
    .chat-input-bar .btn { padding: 8px 14px; }
    .att-image img { max-width: 200px; max-height: 200px; }
    .att-video { max-width: 220px; }

    /* Delete button closer to bubble on mobile */
    .msg-delete-btn { width: 26px; height: 26px; font-size: 11px; }
    .msg.me   .msg-delete-btn { left: -30px; top: 4px; }
    .msg.them .msg-delete-btn { right: -30px; top: 4px; }

    /* Voice overlay compact */
    .vr-inner { gap: 10px; padding: 0 12px; }
    .vr-cancel, .vr-mic { width: 36px; height: 36px; font-size: 16px; }
    .vr-time { font-size: 16px; min-width: 42px; }
    .vr-hint { font-size: 11px; }
    .vr-slide-hint { font-size: 11px; left: 12px; }
}

/* ============ INBOX (chat list) ============ */
.inbox-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f4ecdf;
    transition: background .15s;
    position: relative;
}
.inbox-row:last-child { border-bottom: none; }
.inbox-row:hover { background: #faf6f1; color: inherit; }
.inbox-row.unread { background: #fffaf2; }
.inbox-row.unread:hover { background: #fff5e6; }

.inbox-avatar { position: relative; flex-shrink: 0; }
.inbox-avatar img {
    width: 52px; height: 52px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid #f4ecdf;
    transition: border-color .15s;
}
.inbox-row:hover .inbox-avatar img { border-color: var(--rose, #B76E79); }
.inbox-avatar .online-dot {
    position: absolute; right: 2px; bottom: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #4caf50; border: 2px solid #fff;
}

.inbox-body { flex: 1; min-width: 0; }
.inbox-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-bottom: 2px;
}
.inbox-head strong {
    color: var(--maroon, #7B2D3E); font-size: 15px;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 220px;
}
.inbox-head small { flex-shrink: 0; font-size: 11px; }

.inbox-preview {
    font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 4px;
}
.inbox-preview i { font-size: 14px; color: var(--muted, #8a8a8a); }

.unread-count {
    flex-shrink: 0;
    background: #C0392B; color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
    min-width: 24px; text-align: center;
    box-shadow: 0 2px 6px rgba(192,57,43,.25);
}

@media (max-width: 767.98px) {
    .inbox-row { padding: 12px 14px; gap: 10px; }
    .inbox-avatar img { width: 46px; height: 46px; }
    .inbox-head strong { font-size: 14px; max-width: 160px; }
    .inbox-preview { font-size: 12px; }
    .unread-count { font-size: 10px; padding: 2px 7px; min-width: 20px; }
}

/* ============ FOLLOWERS / FOLLOWING ROWS ============ */
.follower-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px !important;
    border: none !important;
    border-bottom: 1px solid #f4ecdf !important;
    transition: background .15s;
}
.follower-row:last-child { border-bottom: none !important; }
.follower-row:hover { background: #faf6f1; }

.follower-left {
    display: flex; gap: 14px; align-items: center;
    flex: 1 1 auto; min-width: 0;
}
.follower-avatar { position: relative; flex-shrink: 0; display: block; }
.follower-avatar img {
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover; border: 2px solid #f4ecdf;
    transition: border-color .15s;
}
.follower-avatar:hover img { border-color: var(--rose, #B76E79); }
.follower-avatar .online-dot {
    position: absolute; right: 2px; bottom: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #4caf50; border: 2px solid #fff;
}
.follower-info { min-width: 0; flex: 1; }
.follower-info strong { font-size: 15px; }
.follower-info .mini-badge {
    font-size: 10px; padding: 2px 7px; border-radius: 999px;
    font-weight: 600; display: inline-flex; align-items: center; gap: 3px;
}
.follower-actions { display: flex; gap: 6px; flex-shrink: 0; }
.follower-actions .btn { font-size: 12px; padding: 5px 10px; }
.follower-meta { flex-shrink: 0; font-size: 11px; min-width: 70px; text-align: right; }

@media (max-width: 767.98px) {
    .follower-row { flex-wrap: wrap; padding: 14px 16px !important; gap: 12px; }
    .follower-avatar img { width: 48px; height: 48px; }
    .follower-actions { width: 100%; justify-content: flex-start; }
    .follower-actions .follow-back-btn { flex: 1; }
    .follower-info strong { font-size: 14px; }
}
/* ============================================================
   PROFILES BROWSER V2
   ============================================================ */

/* HERO STRIP */
.profiles-hero {
    background: linear-gradient(135deg, #7B2D3E 0%, #B76E79 60%, #D4AF37 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
.profiles-hero-inner { max-width: 800px; margin: 0 auto; }
.profiles-hero h1 {
    font-size: 34px;
    margin: 0 0 6px;
    font-weight: 700;
}
.profiles-hero h1 em {
    color: #F4E5B1;
    font-style: italic;
}
.profiles-hero p {
    margin: 0;
    opacity: .9;
    font-size: 15px;
}

/* FILTER CARD */
.profiles-filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(123,45,62,.08);
    margin: -36px auto 24px;
    max-width: 1100px;
    position: relative;
    z-index: 5;
    border: 1px solid #f4ecdf;
}
.pfc-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.pfc-search,
.pfc-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #faf6f1;
    border-radius: 10px;
    padding: 0 14px;
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid transparent;
    transition: border-color .15s, background .15s;
}
.pfc-search:focus-within,
.pfc-select:focus-within {
    border-color: var(--rose, #B76E79);
    background: #fff;
}
.pfc-search i,
.pfc-select i {
    color: var(--rose, #B76E79);
    font-size: 14px;
    flex-shrink: 0;
}
.pfc-search input,
.pfc-select input,
.pfc-select select {
    border: none;
    background: transparent;
    padding: 11px 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: var(--ink, #2C2C2C);
}
.pfc-select select { cursor: pointer; appearance: none; }

.pfc-btn {
    padding: 11px 22px !important;
    border-radius: 10px !important;
    font-weight: 600;
    flex-shrink: 0;
}

.pfc-toggle {
    background: #faf6f1;
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    cursor: pointer;
    color: var(--maroon, #7B2D3E);
    font-size: 14px;
    display: flex; align-items: center; gap: 6px;
    transition: background .15s;
    flex-shrink: 0;
}
.pfc-toggle:hover { background: #f0e7dd; }

/* Advanced panel */
.pfc-advanced {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #f4ecdf;
}
.pfc-advanced.open { display: flex; }

.pfc-age {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #faf6f1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    color: var(--maroon, #7B2D3E);
    flex: 1 1 200px;
}
.pfc-age input {
    border: none;
    background: transparent;
    padding: 11px 0;
    width: 55px;
    outline: none;
    font-size: 14px;
    text-align: center;
}

.pfc-checks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1 1 100%;
}
.pfc-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #faf6f1;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
    user-select: none;
    color: var(--maroon, #7B2D3E);
}
.pfc-check:hover { background: #f0e7dd; }
.pfc-check input { display: none; }
.pfc-check input:checked + i { color: var(--rose, #B76E79); }
.pfc-check:has(input:checked) {
    background: #f9ebec;
    color: var(--rose, #B76E79);
    font-weight: 600;
}
.pfc-check .online { color: #4caf50; font-size: 9px; }

.pfc-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #C0392B;
    font-size: 13px;
    text-decoration: none;
    border-radius: 999px;
    background: #fdecea;
    margin-left: auto;
}
.pfc-clear:hover { background: #f8d6d2; color: #a5271a; }

/* RESULT HEADER */
.profiles-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.profiles-head-view { display: flex; gap: 4px; }
.view-toggle {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #fff;
    color: var(--muted, #8a8a8a);
    border: 1px solid #f4ecdf;
    text-decoration: none;
    transition: all .15s;
}
.view-toggle:hover { color: var(--rose, #B76E79); border-color: var(--rose, #B76E79); }
.view-toggle.active {
    background: var(--maroon, #7B2D3E);
    color: #fff;
    border-color: var(--maroon, #7B2D3E);
}

/* ============ GRID VIEW ============ */
.profile-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.profile-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f4ecdf;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.profile-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(123,45,62,.12);
    border-color: var(--gold, #D4AF37);
    color: inherit;
}

.pcv2-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f4ecdf;
}
.pcv2-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.profile-card-v2:hover .pcv2-img img { transform: scale(1.06); }

.pcv2-ribbon {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, #D4AF37, #b8901a);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(212,175,55,.4);
}
.pcv2-online {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pcv2-online span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76,175,80,.4);
    animation: pcv2Pulse 1.5s infinite;
}
@keyframes pcv2Pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .5; }
}
.pcv2-verified {
    position: absolute;
    bottom: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #1e7b3a;
    display: grid; place-items: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.pcv2-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pcv2-body h3 {
    font-size: 15px;
    margin: 0 0 3px;
    color: var(--maroon, #7B2D3E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcv2-meta {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--muted, #8a8a8a);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pcv2-sub {
    margin: 0 0 10px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 16px;
}
.pcv2-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f4ecdf;
}
.pcv2-user {
    font-size: 11px;
    color: var(--rose, #B76E79);
}
.pcv2-arrow {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #f9ebec;
    color: var(--rose, #B76E79);
    display: grid; place-items: center;
    font-size: 12px;
    transition: transform .15s;
}
.profile-card-v2:hover .pcv2-arrow {
    transform: translateX(3px);
    background: var(--rose, #B76E79);
    color: #fff;
}

/* ============ LIST VIEW ============ */
.profile-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.profile-list-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f4ecdf;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.profile-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(123,45,62,.08);
    border-color: var(--gold, #D4AF37);
    color: inherit;
}
.pli-img {
    position: relative;
    flex-shrink: 0;
}
.pli-img img {
    width: 72px; height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #f4ecdf;
}
.pli-img .online-dot {
    position: absolute; right: 0; bottom: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid #fff;
}
.pli-info { flex: 1; min-width: 0; }
.pli-info h3 {
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--maroon, #7B2D3E);
}
.pli-meta {
    margin: 0 0 3px;
    font-size: 13px;
    color: var(--muted, #8a8a8a);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pli-sub {
    margin: 0;
    font-size: 12px;
    color: #777;
}
.pli-actions { flex-shrink: 0; }
.pli-view {
    font-size: 13px;
    color: var(--rose, #B76E79);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* ============ PAGINATION V2 ============ */
.pagination-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination-v2 a,
.pagination-v2 .dots {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f4ecdf;
    color: var(--maroon, #7B2D3E);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all .15s;
}
.pagination-v2 a:hover {
    background: #faf6f1;
    border-color: var(--rose, #B76E79);
    color: var(--rose, #B76E79);
}
.pagination-v2 a.active {
    background: var(--maroon, #7B2D3E);
    color: #fff;
    border-color: var(--maroon, #7B2D3E);
    font-weight: 600;
}
.pagination-v2 .dots {
    border: none;
    background: transparent;
    color: var(--muted, #8a8a8a);
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #f4ecdf;
}
.empty-state i {
    font-size: 56px;
    color: #d8c9b8;
    display: block;
    margin-bottom: 16px;
}
.empty-state h3 {
    color: var(--maroon, #7B2D3E);
    margin: 0 0 8px;
}
.empty-state p { color: var(--muted, #8a8a8a); margin: 0; }
.empty-state a { color: var(--rose, #B76E79); font-weight: 600; }

/* ============ MOBILE ============ */
@media (max-width: 767.98px) {
    .profiles-hero { padding: 30px 16px; }
    .profiles-hero h1 { font-size: 24px; }
    .profiles-hero p { font-size: 13px; }

    .profiles-filter-card {
        padding: 12px;
        margin-top: -24px;
        border-radius: 14px;
    }
    .pfc-row { gap: 6px; }
    .pfc-search, .pfc-select { flex: 1 1 100%; }
    .pfc-btn { flex: 1 1 auto; width: 100%; }
    .pfc-toggle { flex: 0 0 auto; }

    .pfc-advanced { gap: 6px; }
    .pfc-age { flex: 1 1 100%; }
    .pfc-select { flex: 1 1 100%; }

    .profile-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pcv2-body { padding: 10px 10px 12px; }
    .pcv2-body h3 { font-size: 13px; }
    .pcv2-meta, .pcv2-sub { font-size: 11px; }
    .pcv2-verified { width: 26px; height: 26px; font-size: 13px; }
    .pcv2-ribbon, .pcv2-online { font-size: 9px; padding: 3px 7px; }

    .profile-list-item { padding: 12px 14px; gap: 12px; }
    .pli-img img { width: 58px; height: 58px; }
    .pli-info h3 { font-size: 14px; }
    .pli-meta { font-size: 11px; gap: 6px; }
    .pli-view span { display: none; }
    .pli-view i { font-size: 16px; }

    .pagination-v2 a, .pagination-v2 .dots { min-width: 34px; height: 34px; padding: 0 8px; font-size: 13px; }
}

@media (max-width: 400px) {
    .profile-grid-v2 { grid-template-columns: 1fr; }
}
/* ============================================================
   FOOTER — Wedding theme
   ============================================================ */
.user-footer {
    background: linear-gradient(180deg, #2c1a20 0%, #1e1014 100%);
    color: #cbb7bb;
    padding: 50px 20px 20px;
    margin-top: 60px;
    position: relative;
}
.user-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B2D3E, #B76E79, #D4AF37, #B76E79, #7B2D3E);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-grid > div {
    min-width: 0;
}

.footer-grid h4 {
    color: #F4E5B1;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .02em;
}

.footer-grid p {
    color: #cbb7bb;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    max-width: 360px;
}

.footer-grid p.muted {
    color: #cbb7bb;
}

.footer-grid a {
    display: block;
    color: #cbb7bb;
    text-decoration: none;
    padding: 5px 0;
    font-size: 14px;
    transition: color .15s, padding-left .15s;
    position: relative;
}
.footer-grid a:hover {
    color: #F4E5B1;
    padding-left: 6px;
}
.footer-grid a::before {
    content: '›';
    opacity: 0;
    margin-right: 6px;
    color: #D4AF37;
    transition: opacity .15s;
}
.footer-grid a:hover::before {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    text-align: center;
    color: #9a868a;
    letter-spacing: .02em;
}

/* Inline brand mark sizing (💍 emoji) */
.footer-grid h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .user-footer {
        padding: 36px 18px 16px;
        margin-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-grid h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .footer-grid a { font-size: 13px; padding: 4px 0; }
    .footer-bottom {
        font-size: 12px;
        padding-top: 16px;
        margin-top: 18px;
    }
}
/* ============================================================
   HOMEPAGE V2 — Modern Wedding Landing
   ============================================================ */

/* ============ HERO ============ */
.hero-home-v2 {
    background: linear-gradient(135deg, #7B2D3E 0%, #B76E79 55%, #D4AF37 130%);
    color: #fff;
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
}
.hero-home-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 40%),
                radial-gradient(circle at 85% 70%, rgba(212,175,55,.18), transparent 45%);
    pointer-events: none;
}
.hero-home-v2::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #FFF8F0);
    pointer-events: none;
}

.hero-home-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-home-text { max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .02em;
}
.hero-badge i { color: #F4E5B1; font-size: 15px; }

.hero-home-v2 h1 {
    font-size: 54px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}
.hero-highlight {
    display: block;
    color: #F4E5B1;
    font-style: italic;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(212,175,55,.4);
}

.hero-lead {
    font-size: 17px;
    line-height: 1.65;
    opacity: .94;
    margin: 0 0 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.hero-cta .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-cta .btn-danger {
    box-shadow: 0 8px 24px rgba(183,110,121,.4);
}
.hero-cta .btn-outline-danger {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
}
.hero-cta .btn-outline-danger:hover {
    background: #fff;
    color: #7B2D3E;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats > div { min-width: 0; }
.hero-stats strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #F4E5B1;
    margin-bottom: 2px;
    line-height: 1.1;
}
.hero-stats span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
}

/* Hero visual — animated ring */
.hero-home-visual {
    display: grid;
    place-items: center;
    position: relative;
}
.hero-ring-outer {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #F4E5B1, #D4AF37 40%, #B76E79 90%);
    display: grid;
    place-items: center;
    box-shadow:
        0 30px 80px rgba(0,0,0,.25),
        inset 0 0 60px rgba(255,255,255,.15);
    position: relative;
    animation: ringFloat 6s ease-in-out infinite;
}
@keyframes ringFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-12px) rotate(3deg); }
}
.hero-ring-inner {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 40px rgba(123,45,62,.15);
}
.hero-ring-inner i {
    font-size: 90px;
    color: #B76E79;
    animation: heartBeat 2s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* Sparks around the ring */
.hero-spark {
    position: absolute;
    width: 14px; height: 14px;
    background: #F4E5B1;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(244,229,177,.9);
    animation: sparkFloat 4s ease-in-out infinite;
}
.hero-spark.s1 { top: 10%;  left: -6%;  animation-delay: 0s; }
.hero-spark.s2 { top: 20%;  right: -4%; animation-delay: .8s; }
.hero-spark.s3 { bottom: 12%; left: 6%; animation-delay: 1.6s; }
.hero-spark.s4 { bottom: 8%;  right: 8%; animation-delay: 2.4s; }
@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .8; }
    50%      { transform: translateY(-20px) scale(1.4); opacity: 1; }
}

/* ============ SECTIONS ============ */
.home-section-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}
.home-section-v2.alt {
    max-width: none;
    background: #fff;
    border-top: 1px solid #f4ecdf;
    border-bottom: 1px solid #f4ecdf;
}
.home-section-v2.alt > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-head-v2 {
    text-align: center;
    margin-bottom: 46px;
    position: relative;
}
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #B76E79;
    margin-bottom: 10px;
}
.section-head-v2 h2 {
    font-size: 34px;
    color: #7B2D3E;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.section-head-v2 p {
    color: #8a8a8a;
    font-size: 15px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}
.section-head-v2 .link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B76E79;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 14px;
    transition: gap .15s;
}
.section-head-v2 .link-v2:hover { gap: 10px; color: #7B2D3E; }

/* ============ FEATURES ============ */
.feature-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card-v2 {
    background: #fff;
    border-radius: 18px;
    padding: 32px 26px;
    border: 1px solid #f4ecdf;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    text-align: center;
}
.feature-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(123,45,62,.1);
    border-color: #D4AF37;
}
.fc-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 26px;
    transition: transform .2s;
}
.feature-card-v2:hover .fc-icon { transform: scale(1.1) rotate(-5deg); }
.fc-icon-green { background: #e6f4ea; color: #1e7b3a; }
.fc-icon-rose  { background: #f9ebec; color: #B76E79; }
.fc-icon-blue  { background: #e6eef7; color: #2c5f8a; }
.fc-icon-gold  { background: #f8efd6; color: #b8901a; }

.feature-card-v2 h3 {
    font-size: 17px;
    color: #7B2D3E;
    margin: 0 0 8px;
    font-weight: 700;
}
.feature-card-v2 p {
    color: #6f6f6f;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============ FEATURED PROFILES ============ */
.featured-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f4ecdf;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(123,45,62,.12);
    border-color: #D4AF37;
    color: inherit;
}
.fc-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f4ecdf;
}
.fc-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.featured-card:hover .fc-img img { transform: scale(1.06); }

.fc-ribbon {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, #D4AF37, #b8901a);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(212,175,55,.5);
}
.fc-online {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fc-online span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4caf50;
    animation: pcv2Pulse 1.5s infinite;
}
.fc-verified {
    position: absolute;
    bottom: 10px; right: 10px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #1e7b3a;
    display: grid; place-items: center;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.fc-body { padding: 12px 14px; }
.fc-body h3 {
    font-size: 14px;
    margin: 0 0 3px;
    color: #7B2D3E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-meta {
    margin: 0 0 3px;
    font-size: 12px;
    color: #8a8a8a;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fc-sub {
    margin: 0;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ HOW IT WORKS ============ */
.steps-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.step-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 26px;
    text-align: center;
    border: 1px solid #f4ecdf;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(123,45,62,.1);
}
.step-num {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 42px;
    font-weight: 900;
    color: #f4ecdf;
    line-height: 1;
    letter-spacing: -.04em;
}
.step-icon {
    width: 70px; height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9ebec, #f8efd6);
    color: #B76E79;
    display: grid; place-items: center;
    font-size: 30px;
    margin: 0 auto 18px;
}
.step-card h3 {
    font-size: 17px;
    color: #7B2D3E;
    margin: 0 0 8px;
    font-weight: 700;
}
.step-card p {
    font-size: 14px;
    color: #6f6f6f;
    line-height: 1.6;
    margin: 0;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial-card-v2 {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    border: 1px solid #f4ecdf;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.testimonial-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(123,45,62,.1);
}
.quote-icon {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 42px;
    color: #f9ebec;
    opacity: .6;
}
.stars-v2 {
    color: #D4AF37;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}
.testimonial-card-v2 p {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 20px;
}
.testimonial-user-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f4ecdf;
}
.testimonial-user-v2 img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37;
}
.testimonial-user-v2 strong {
    display: block;
    color: #7B2D3E;
    font-size: 14px;
}
.testimonial-user-v2 small {
    color: #8a8a8a;
    font-size: 12px;
}

/* ============ FINAL CTA ============ */
.home-cta-v2 {
    background: linear-gradient(135deg, #7B2D3E 0%, #B76E79 60%, #D4AF37 130%);
    color: #fff;
    padding: 70px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-cta-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.15), transparent 50%);
    pointer-events: none;
}
.home-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.cta-heart {
    font-size: 44px;
    color: #F4E5B1;
    display: block;
    margin-bottom: 16px;
    animation: heartBeat 2s ease-in-out infinite;
}
.home-cta-v2 h2 {
    font-size: 34px;
    margin: 0 0 12px;
    font-weight: 700;
}
.home-cta-v2 p {
    font-size: 16px;
    opacity: .9;
    margin: 0 0 28px;
    line-height: 1.6;
}
.home-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.home-cta-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.home-cta-actions .btn-light { color: #7B2D3E; }
.home-cta-actions .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,.6);
    color: #fff;
}
.home-cta-actions .btn-outline-light:hover {
    background: #fff;
    color: #7B2D3E;
}
.cta-note {
    font-size: 13px;
    opacity: .75;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .hero-home-v2 { padding: 60px 20px 80px; }
    .hero-home-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-home-text { max-width: 100%; margin: 0 auto; }
    .hero-home-v2 h1 { font-size: 40px; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-ring-outer { width: 260px; height: 260px; }
    .hero-ring-inner { width: 190px; height: 190px; }
    .hero-ring-inner i { font-size: 70px; }

    .steps-grid-v2 { grid-template-columns: 1fr; gap: 16px; }
    .section-head-v2 h2 { font-size: 26px; }
    .home-cta-v2 h2 { font-size: 26px; }
}

@media (max-width: 575.98px) {
    .hero-home-v2 { padding: 50px 16px 60px; }
    .hero-home-v2 h1 { font-size: 30px; }
    .hero-lead { font-size: 15px; }
    .hero-cta .btn { flex: 1 1 100%; justify-content: center; }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding-top: 22px;
    }
    .hero-stats strong { font-size: 22px; }

    .hero-ring-outer { width: 200px; height: 200px; }
    .hero-ring-inner { width: 140px; height: 140px; }
    .hero-ring-inner i { font-size: 54px; }
    .hero-spark { width: 10px; height: 10px; }

    .home-section-v2 { padding: 50px 16px; }
    .section-head-v2 { margin-bottom: 32px; }
    .section-head-v2 h2 { font-size: 22px; }

    .feature-grid-v2,
    .featured-grid-v2,
    .testimonials-grid-v2 {
        grid-template-columns: 1fr;
    }
    .feature-card-v2,
    .step-card,
    .testimonial-card-v2 {
        padding: 24px 20px;
    }
    .home-cta-v2 { padding: 50px 16px; }
    .home-cta-v2 h2 { font-size: 22px; }
    .home-cta-actions .btn { flex: 1 1 100%; justify-content: center; }
}
/* ============ WELCOME STRIP (logged-in users) ============ */
.welcome-strip {
    background: linear-gradient(135deg, #fffaf2, #f9ebec);
    border-bottom: 1px solid #f4ecdf;
    padding: 12px 20px;
    position: relative;
    z-index: 5;
}
.welcome-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ws-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37;
    box-shadow: 0 2px 8px rgba(212,175,55,.25);
    flex-shrink: 0;
}
.ws-text {
    flex: 1;
    min-width: 0;
}
.ws-text strong {
    display: block;
    color: #7B2D3E;
    font-size: 15px;
    line-height: 1.3;
}
.ws-text small {
    color: #8a8a8a;
    font-size: 12px;
}
.ws-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ws-actions .btn {
    border-radius: 10px;
    font-size: 13px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .welcome-strip-inner {
        gap: 10px;
    }
    .ws-avatar {
        width: 38px;
        height: 38px;
    }
    .ws-text strong { font-size: 14px; }
    .ws-actions {
        width: 100%;
    }
    .ws-actions .btn {
        flex: 1 1 0;
        justify-content: center;
        font-size: 12px;
        padding: 7px 10px;
    }
}
/* ============================================================
   HOMEPAGE V2 + WELCOME STRIP
   ============================================================ */

/* ============ WELCOME STRIP (logged-in users) ============ */
.welcome-strip {
    background: linear-gradient(135deg, #fffaf2, #f9ebec);
    border-bottom: 1px solid #f4ecdf;
    padding: 12px 20px;
    position: relative;
    z-index: 5;
}
.welcome-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ws-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37;
    box-shadow: 0 2px 8px rgba(212,175,55,.25);
    flex-shrink: 0;
}
.ws-text { flex: 1; min-width: 0; }
.ws-text strong {
    display: block;
    color: #7B2D3E;
    font-size: 15px;
    line-height: 1.3;
}
.ws-text small { color: #8a8a8a; font-size: 12px; }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-actions .btn {
    border-radius: 10px;
    font-size: 13px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* ============ HERO ============ */
.hero-home-v2 {
    background: linear-gradient(135deg, #7B2D3E 0%, #B76E79 55%, #D4AF37 130%);
    color: #fff;
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
}
.hero-home-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 40%),
                radial-gradient(circle at 85% 70%, rgba(212,175,55,.18), transparent 45%);
    pointer-events: none;
}
.hero-home-v2::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #FFF8F0);
    pointer-events: none;
}
.hero-home-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-home-text { max-width: 620px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .02em;
}
.hero-badge i { color: #F4E5B1; font-size: 15px; }

.hero-home-v2 h1 {
    font-size: 54px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}
.hero-highlight {
    display: block;
    color: #F4E5B1;
    font-style: italic;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(212,175,55,.4);
}
.hero-lead {
    font-size: 17px;
    line-height: 1.65;
    opacity: .94;
    margin: 0 0 32px;
    max-width: 520px;
}
.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.hero-cta .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-cta .btn-danger {
    box-shadow: 0 8px 24px rgba(183,110,121,.4);
}
.hero-cta .btn-outline-danger {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
}
.hero-cta .btn-outline-danger:hover {
    background: #fff;
    color: #7B2D3E;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats > div { min-width: 0; }
.hero-stats strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #F4E5B1;
    margin-bottom: 2px;
    line-height: 1.1;
}
.hero-stats span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
}

/* Hero visual */
.hero-home-visual {
    display: grid;
    place-items: center;
    position: relative;
}
.hero-ring-outer {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #F4E5B1, #D4AF37 40%, #B76E79 90%);
    display: grid;
    place-items: center;
    box-shadow:
        0 30px 80px rgba(0,0,0,.25),
        inset 0 0 60px rgba(255,255,255,.15);
    position: relative;
    animation: ringFloat 6s ease-in-out infinite;
}
@keyframes ringFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-12px) rotate(3deg); }
}
.hero-ring-inner {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 40px rgba(123,45,62,.15);
}
.hero-ring-inner i {
    font-size: 90px;
    color: #B76E79;
    animation: heartBeat 2s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}
.hero-spark {
    position: absolute;
    width: 14px; height: 14px;
    background: #F4E5B1;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(244,229,177,.9);
    animation: sparkFloat 4s ease-in-out infinite;
}
.hero-spark.s1 { top: 10%;  left: -6%;  animation-delay: 0s; }
.hero-spark.s2 { top: 20%;  right: -4%; animation-delay: .8s; }
.hero-spark.s3 { bottom: 12%; left: 6%; animation-delay: 1.6s; }
.hero-spark.s4 { bottom: 8%;  right: 8%; animation-delay: 2.4s; }
@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .8; }
    50%      { transform: translateY(-20px) scale(1.4); opacity: 1; }
}

/* ============ SECTIONS ============ */
.home-section-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}
.home-section-v2.alt {
    max-width: none;
    background: #fff;
    border-top: 1px solid #f4ecdf;
    border-bottom: 1px solid #f4ecdf;
}
.home-section-v2.alt > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.section-head-v2 {
    text-align: center;
    margin-bottom: 46px;
    position: relative;
}
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #B76E79;
    margin-bottom: 10px;
}
.section-head-v2 h2 {
    font-size: 34px;
    color: #7B2D3E;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.section-head-v2 p {
    color: #8a8a8a;
    font-size: 15px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}
.section-head-v2 .link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B76E79;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 14px;
    transition: gap .15s;
}
.section-head-v2 .link-v2:hover { gap: 10px; color: #7B2D3E; }

/* ============ FEATURES ============ */
.feature-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card-v2 {
    background: #fff;
    border-radius: 18px;
    padding: 32px 26px;
    border: 1px solid #f4ecdf;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    text-align: center;
}
.feature-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(123,45,62,.1);
    border-color: #D4AF37;
}
.fc-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 26px;
    transition: transform .2s;
}
.feature-card-v2:hover .fc-icon { transform: scale(1.1) rotate(-5deg); }
.fc-icon-green { background: #e6f4ea; color: #1e7b3a; }
.fc-icon-rose  { background: #f9ebec; color: #B76E79; }
.fc-icon-blue  { background: #e6eef7; color: #2c5f8a; }
.fc-icon-gold  { background: #f8efd6; color: #b8901a; }
.feature-card-v2 h3 {
    font-size: 17px;
    color: #7B2D3E;
    margin: 0 0 8px;
    font-weight: 700;
}
.feature-card-v2 p {
    color: #6f6f6f;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============ FEATURED PROFILES ============ */
.featured-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f4ecdf;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(123,45,62,.12);
    border-color: #D4AF37;
    color: inherit;
}
.fc-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f4ecdf;
}
.fc-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.featured-card:hover .fc-img img { transform: scale(1.06); }
.fc-ribbon {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, #D4AF37, #b8901a);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(212,175,55,.5);
}
.fc-online {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fc-online span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4caf50;
    animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}
.fc-verified {
    position: absolute;
    bottom: 10px; right: 10px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #1e7b3a;
    display: grid; place-items: center;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.fc-body { padding: 12px 14px; }
.fc-body h3 {
    font-size: 14px;
    margin: 0 0 3px;
    color: #7B2D3E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-meta {
    margin: 0 0 3px;
    font-size: 12px;
    color: #8a8a8a;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fc-sub {
    margin: 0;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ HOW IT WORKS ============ */
.steps-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.step-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 26px;
    text-align: center;
    border: 1px solid #f4ecdf;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(123,45,62,.1);
}
.step-num {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 42px;
    font-weight: 900;
    color: #f4ecdf;
    line-height: 1;
    letter-spacing: -.04em;
}
.step-icon {
    width: 70px; height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9ebec, #f8efd6);
    color: #B76E79;
    display: grid; place-items: center;
    font-size: 30px;
    margin: 0 auto 18px;
}
.step-card h3 {
    font-size: 17px;
    color: #7B2D3E;
    margin: 0 0 8px;
    font-weight: 700;
}
.step-card p {
    font-size: 14px;
    color: #6f6f6f;
    line-height: 1.6;
    margin: 0;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial-card-v2 {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    border: 1px solid #f4ecdf;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.testimonial-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(123,45,62,.1);
}
.quote-icon {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 42px;
    color: #f9ebec;
    opacity: .6;
}
.stars-v2 {
    color: #D4AF37;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}
.testimonial-card-v2 p {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 20px;
}
.testimonial-user-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f4ecdf;
}
.testimonial-user-v2 img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37;
}
.testimonial-user-v2 strong {
    display: block;
    color: #7B2D3E;
    font-size: 14px;
}
.testimonial-user-v2 small {
    color: #8a8a8a;
    font-size: 12px;
}

/* ============ FINAL CTA ============ */
.home-cta-v2 {
    background: linear-gradient(135deg, #7B2D3E 0%, #B76E79 60%, #D4AF37 130%);
    color: #fff;
    padding: 70px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-cta-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.15), transparent 50%);
    pointer-events: none;
}
.home-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.cta-heart {
    font-size: 44px;
    color: #F4E5B1;
    display: block;
    margin-bottom: 16px;
    animation: heartBeat 2s ease-in-out infinite;
}
.home-cta-v2 h2 {
    font-size: 34px;
    margin: 0 0 12px;
    font-weight: 700;
}
.home-cta-v2 p {
    font-size: 16px;
    opacity: .9;
    margin: 0 0 28px;
    line-height: 1.6;
}
.home-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.home-cta-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.home-cta-actions .btn-light { color: #7B2D3E; }
.home-cta-actions .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,.6);
    color: #fff;
}
.home-cta-actions .btn-outline-light:hover {
    background: #fff;
    color: #7B2D3E;
}
.cta-note {
    font-size: 13px;
    opacity: .75;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .hero-home-v2 { padding: 60px 20px 80px; }
    .hero-home-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-home-text { max-width: 100%; margin: 0 auto; }
    .hero-home-v2 h1 { font-size: 40px; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-ring-outer { width: 260px; height: 260px; }
    .hero-ring-inner { width: 190px; height: 190px; }
    .hero-ring-inner i { font-size: 70px; }
    .steps-grid-v2 { grid-template-columns: 1fr; gap: 16px; }
    .section-head-v2 h2 { font-size: 26px; }
    .home-cta-v2 h2 { font-size: 26px; }
}

@media (max-width: 575.98px) {
    .hero-home-v2 { padding: 50px 16px 60px; }
    .hero-home-v2 h1 { font-size: 30px; }
    .hero-lead { font-size: 15px; }
    .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding-top: 22px;
    }
    .hero-stats strong { font-size: 22px; }
    .hero-ring-outer { width: 200px; height: 200px; }
    .hero-ring-inner { width: 140px; height: 140px; }
    .hero-ring-inner i { font-size: 54px; }
    .hero-spark { width: 10px; height: 10px; }

    .home-section-v2 { padding: 50px 16px; }
    .section-head-v2 { margin-bottom: 32px; }
    .section-head-v2 h2 { font-size: 22px; }
    .feature-grid-v2,
    .featured-grid-v2,
    .testimonials-grid-v2 { grid-template-columns: 1fr; }
    .feature-card-v2,
    .step-card,
    .testimonial-card-v2 { padding: 24px 20px; }
    .home-cta-v2 { padding: 50px 16px; }
    .home-cta-v2 h2 { font-size: 22px; }
    .home-cta-actions .btn { flex: 1 1 100%; justify-content: center; }

    .welcome-strip-inner { gap: 10px; }
    .ws-avatar { width: 38px; height: 38px; }
    .ws-text strong { font-size: 14px; }
    .ws-actions { width: 100%; }
    .ws-actions .btn {
        flex: 1 1 0;
        justify-content: center;
        font-size: 12px;
        padding: 7px 10px;
    }
}
/* ============================================================
   WHATSAPP-STYLE CHAT
   ============================================================ */

.chat-page { position: relative; }

.chat-window {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 16px 8px;
    overflow-y: auto;
    background-color: #efeae2;
    background-image:
        radial-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)),
        radial-gradient(circle at 1px 1px, #d8d1c5 1px, transparent 0);
    background-size: auto, 22px 22px;
}

/* Day separator */
.day-sep {
    display: flex;
    justify-content: center;
    margin: 14px 0 10px;
}
.day-sep .js-day {
    background: #fff;
    color: #54656f;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(11,20,26,.08);
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Message row */
.msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2px;
    position: relative;
    max-width: 100%;
}
.msg.me { align-items: flex-end; }
.msg:not(.continues-prev) { margin-top: 8px; }

/* Bubble */
.bubble {
    display: inline-block;
    max-width: min(78%, 560px);
    padding: 6px 9px 6px 10px;
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.42;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    background: #fff;
    color: #111b21;
    box-shadow: 0 1px 1px rgba(11,20,26,.08);
    position: relative;
}
.msg.me .bubble {
    background: #d9fdd3;
    color: #111b21;
}

/* WhatsApp-style square corner on first bubble of a group */
.msg.them:not(.continues-prev) .bubble { border-top-left-radius: 2px; }
.msg.me:not(.continues-prev)   .bubble { border-top-right-radius: 2px; }

/* Time + ticks — float inside bubble, bottom-right */
.bubble .meta-inline {
    float: right;
    margin: 8px 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    line-height: 1;
    color: rgba(17,27,33,.5);
    white-space: nowrap;
    user-select: none;
}
.bubble .meta-inline .tick { font-size: 12.5px; letter-spacing: -2.5px; }
.bubble .meta-inline .tick.seen { color: #53bdeb; }

/* Meta for media-only bubbles (no text) — sits just below the media */
.meta-outside {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    padding: 0 4px;
    font-size: 11px;
    color: #667781;
}
.meta-outside .tick { font-size: 12.5px; letter-spacing: -2.5px; }
.meta-outside .tick.seen { color: #53bdeb; }

/* Media */
.att-image img,
.att-video {
    display: block;
    max-width: min(320px, 78vw);
    border-radius: 10px;
    background: #000;
}
.att-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(320px, 78vw);
}
.att-audio audio { height: 36px; }
.att-audio small { color: #667781; font-size: 11px; }

/* Delete button — appears on hover (desktop) or .active (touch) */
.msg-del {
    position: absolute;
    top: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #667781;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, background .15s, color .15s;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 1px 2px rgba(11,20,26,.15);
}
.msg.me   .msg-del { right: 100%; margin-right: 6px; }
.msg.them .msg-del { left: 100%;  margin-left: 6px; }

.msg:hover .msg-del,
.msg.active .msg-del {
    opacity: 1;
    pointer-events: auto;
}
.msg-del:hover { background: #fdd; color: #c00; }

/* Touch: long-press behaviour via .active class set by JS */
@media (hover: none) {
    .msg.active { background: rgba(0,0,0,.04); border-radius: 8px; }
}

/* Scroll-to-bottom button */
.chat-scroll-btn {
    position: sticky;
    bottom: 8px;
    align-self: flex-end;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #54656f;
    box-shadow: 0 2px 8px rgba(11,20,26,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    z-index: 5;
    cursor: pointer;
}
.chat-scroll-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.chat-scroll-btn .cnt {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #25d366;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chat-scroll-btn .cnt:empty { display: none; }

/* Auto-grow textarea in the input bar */
.chat-input-bar textarea#msgInput {
    resize: none;
    overflow-y: auto;
    max-height: 140px;
    min-height: 40px;
    line-height: 1.4;
    padding: 9px 14px;
    border-radius: 22px;
    border: 1px solid #e3e6ea;
    font-size: 14.5px;
}
.chat-input-bar textarea#msgInput:focus {
    outline: none;
    border-color: #d0d5da;
    box-shadow: none;
}