:root {
    --bg-gradient: radial-gradient(circle at top, rgba(233, 30, 99, 0.08), transparent 30%), linear-gradient(180deg, #f8f9fe 0%, #ffffff 100%);
    --shell-bg: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
    --text-color: #1a1a24;
    --text-muted: #64748b;
    --card-bg: #fff;
    --border-color: rgba(0,0,0,0.08);
    --nav-bg: #ffffff;
    --nav-icon: rgba(0,0,0,0.54);
    --btn-bg: rgba(0,0,0,0.04);
    --btn-border: rgba(0,0,0,0.06);
    --badge-bg: rgba(0,0,0,0.05);

    /* Map base variables */
    --bm-bg-alt: #f8f9fa;
    --bm-surface: #ffffff;
    --bm-text: #2d3748;
    --bm-text-muted: #718096;
    --bm-border: #e2e8f0;
}

[data-theme="dark"] {
    --bg-gradient: radial-gradient(circle at top, rgba(233, 30, 99, 0.14), transparent 30%), linear-gradient(180deg, #161218 0%, #0a0a0d 100%);
    --shell-bg: linear-gradient(180deg, rgba(16, 16, 20, 0.95) 0%, rgba(7, 7, 9, 0.98) 100%);
    --text-color: #fff;
    --text-muted: rgba(255,255,255,0.72);
    --card-bg: #221d23;
    --border-color: rgba(255,255,255,0.08);
    --nav-bg: #0a0a0d;
    --nav-icon: rgba(255,255,255,0.54);
    --btn-bg: rgba(255,255,255,0.08);
    --btn-border: rgba(255,255,255,0.09);
    --badge-bg: rgba(255,255,255,0.1);

    /* Map base variables for dark mode */
    --bm-bg: #0a0a0d;
    --bm-bg-alt: transparent;
    --bm-surface: #221d23;
    --bm-text: #ffffff;
    --bm-text-muted: rgba(255,255,255,0.72);
    --bm-border: rgba(255,255,255,0.08);
    --bm-primary: #f8f9fa;
}

.discovery-app-body {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--bg-gradient);
    color: var(--bm-text);
    font-family: var(--bm-font-sans);
    transition: background 0.3s ease, color 0.3s ease;
}

.discovery-desktop-stage {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.discovery-app-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--shell-bg);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.discovery-app-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.03), transparent 35%),
        radial-gradient(circle at bottom, rgba(138, 43, 226, 0.08), transparent 30%);
}

.discovery-screen,
.discovery-controls,
.app-like-nav {
    position: relative;
    z-index: 1;
}

.discovery-topbar {
    position: relative;
    z-index: 100;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px 10px;
}


.discovery-topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.discovery-topbar-side {
    display: flex;
    align-items: center;
    flex: 0 0 96px;
    width: 96px;
}

.discovery-topbar-side.actions {
    justify-content: flex-end;
    position: relative;
    gap: 8px;
}

.icon-ghost-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bm-border);
    background: var(--btn-bg);
    color: var(--bm-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(18px);
    position: relative;
}

.icon-ghost-btn { cursor: pointer; transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s, border-color .25s, color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
    .icon-ghost-btn:hover { transform: translateY(-2px); border-color: var(--bm-accent, #e91e63); color: var(--bm-accent, #e91e63); box-shadow: 0 8px 20px rgba(233, 30, 99, .22); }
}
.icon-ghost-btn:active { transform: scale(.92); box-shadow: none; }
.icon-ghost-btn:focus-visible { outline: 2px solid var(--bm-accent, #e91e63); outline-offset: 2px; }
.btn-theme-toggle i.bm-theme-swap { animation: bmThemeSwap .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes bmThemeSwap { from { transform: rotate(-90deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .btn-theme-toggle i.bm-theme-swap { animation: none; } .icon-ghost-btn { transition: none; } }

.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.discovery-title-group {
    text-align: center;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.discovery-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 2px;
    background: linear-gradient(90deg, #e91e63, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discovery-title-group h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bm-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    line-height: 1.2;
}

.discovery-status-bar {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--badge-bg);
    border: 1px solid var(--bm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.discovery-status-copy {
    color: var(--bm-text);
}

.discovery-status-link {
    color: var(--bm-accent);
    text-decoration: none;
    font-weight: 700;
}

.discovery-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.discovery-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 10px 14px 0;
}

.discovery-stack {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 0;
    flex: 1;
    overflow: visible;
    perspective: 1200px;
}

.swipe-card {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform-origin: 50% 100%;
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    background: #151515;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #221d23;
}

.swipe-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
}

.swipe-photo-progress {
    position: absolute;
    top: 16px;
    right: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 3;
}

.swipe-photo-progress span {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.3);
    overflow: hidden;
}

.swipe-photo-progress span.active {
    background: rgba(255,255,255,0.92);
}

.swipe-card-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 20; /* was 2 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* changed from space-between */
    padding: 24px 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

.swipe-card-meta {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.swipe-card-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.swipe-card-badge.badge-new {
    background: rgba(233, 30, 99, 0.85);
    color: #fff;
    border-color: rgba(233, 30, 99, 1);
}

.swipe-card-badge.badge-high-affinity {
    background: rgba(138, 43, 226, 0.85);
    color: #fff;
    border-color: rgba(138, 43, 226, 1);
}

.swipe-card-badge.badge-intention {
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
    border-color: rgba(59, 130, 246, 1);
}

.swipe-card-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.swipe-card-content {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.swipe-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swipe-card-name-row h2 {
    margin: 0;
    font-size: 2.0rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.02em;
}

.swipe-verified-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-block;
    background-image: url('../images/verified_badge.png?v=999');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255,255,255,0.1), 0 0 20px rgba(0, 191, 255, 0.15); /* light edge glow */
    border: none;
}
.swipe-verified-badge svg {
    display: none !important;
}
.swipe-verified-badge::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 4s infinite linear;
}
@keyframes shine {
    0% { transform: translateX(-50%) translateY(-50%) rotate(45deg); }
    10% { transform: translateX(50%) translateY(50%) rotate(45deg); }
    100% { transform: translateX(50%) translateY(50%) rotate(45deg); }
}

.swipe-card-location {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.swipe-interest-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.swipe-interest-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bm-text);
    width: 100%;
}

.swipe-card-interests {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}



.swipe-indicator {
    position: absolute;
    top: 82px;
    padding: 8px 16px;
    border: 3px solid;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    z-index: 3;
}

.like-indicator {
    left: 18px;
    color: #ff5aa5;
    border-color: #ff5aa5;
    transform: rotate(-12deg);
}

.nope-indicator {
    right: 18px;
    color: #ff6767;
    border-color: #ff6767;
    transform: rotate(12deg);
}

.discovery-empty {
    max-width: 430px;
    width: 100%;
    margin: auto;
    padding: 36px 28px;
    text-align: center;
    border-radius: 28px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
}

.discovery-empty.hidden,
.modal-overlay.hidden {
    display: none;
}

.discovery-empty-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.discovery-empty h2 {
    margin-bottom: 10px;
    color: var(--bm-text);
}

.discovery-empty p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.discovery-controls {
    padding: 16px 14px calc(env(safe-area-inset-bottom, 0px) + 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--bm-text);
    box-shadow: 0 18px 28px rgba(0,0,0,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, opacity 0.2s;
    backdrop-filter: blur(18px);
}

.control-btn:hover {
    background: rgba(255,255,255,0.12); /* Maybe keep this or change? Let's leave for now */
}

.control-btn:active {
    transform: scale(0.94);
}

.control-btn.is-muted {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-nope {
    color: var(--bm-text);
}

.btn-superlike {
    color: #7aa2ff;
    position: relative;
}
.btn-superlike .sl-count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: #7aa2ff; color: #0b0f1a; font-size: 11px; font-weight: 900;
    display: grid; place-items: center; line-height: 1;
}
.btn-superlike.is-empty { opacity: .55; }
.btn-superlike.is-empty .sl-count { background: #6b6475; color: #fff; }
.swipe-card.is-superliked {
    box-shadow: 0 0 0 2.5px #3b82f6, 0 0 20px rgba(59,130,246,.5), 0 12px 40px rgba(0,0,0,0.15);
}

.btn-like {
    width: 74px;
    height: 74px;
    color: #ff3d57;
    background: rgba(255,255,255,0.92);
}

.btn-open-profile {
    color: #eac8ff;
}

.app-like-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: var(--nav-bg);
    border-top: 1px solid var(--bm-border);
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.mn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--nav-icon);
    font-size: 0.72rem;
    font-weight: 700;
}

.mn-item svg {
    width: 22px;
    height: 22px;
}

.mn-item.active {
    color: #ff7cb8;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 24px;
}

.match-modal-content {
    max-width: 380px;
    width: 100%;
    background: #fff;
    color: var(--bm-primary);
    border-radius: 26px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.match-heart {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: heartbeat 1.5s infinite;
}

.match-modal-content p {
    color: var(--bm-text-muted);
}

.match-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    10% { transform: scale(1.12); }
    20% { transform: scale(1); }
}

@media (min-width: 900px) {
    .discovery-desktop-stage {
        padding: 24px;
    }

    .discovery-app-shell {
        max-width: 430px;
        height: calc(100vh - 48px);
        max-height: calc(100vh - 48px);
        border-radius: 38px;
        box-shadow: 0 30px 90px rgba(0,0,0,0.42);
        border: 1px solid var(--bm-border);
        overflow: hidden;
    }
}

@media (max-width: 420px) {
    .discovery-topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .discovery-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .swipe-card {
        border-radius: 24px;
    }

    .swipe-card-name-row h2 {
        font-size: 1.8rem;
    }

    .control-btn {
        width: 60px;
        height: 60px;
    }

    .btn-like {
        width: 68px;
        height: 68px;
    }
}




/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bm-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}



/* Expanded Profile */
.swipe-card.is-expanded {
    z-index: 2000;
    overflow-y: auto;
    background: var(--bm-surface);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    border-radius: 28px;
    display: block;
}

.swipe-card.is-expanded .swipe-card-image {
    height: 50vh;
    max-height: 400px;
    border-radius: 28px 28px 0 0;
}

.swipe-card.is-expanded .swipe-card-image::after {
    content: '';
    position: absolute;
    top: auto;
    bottom: 0; left: 0; right: 0; height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bm-surface));
}

.swipe-card.is-expanded .swipe-card-overlay {
    display: none;
}

.swipe-expanded-info {
    display: none;
}
.swipe-card.is-expanded .swipe-expanded-info {
    display: block;
    padding: 24px 20px 60px;
    background: var(--bm-surface);
}
.se-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bm-border);
}
.se-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.se-name-row h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bm-text);
}
.se-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.se-section {
    margin-bottom: 24px;
    text-align: center;
}
.se-section h3 {
    font-size: 1.15rem;
    color: var(--bm-text);
    margin-bottom: 8px;
    font-weight: 800;
    text-align: center;
}
.se-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}
.se-close-action {
    position: absolute;
    top: 376px;
    right: 20px;
    z-index: 2500;
}
.btn-close-profile {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bm-primary);
    color: var(--bm-surface);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.btn-close-profile svg {
    width: 24px;
    height: 24px;
}
.btn-close-profile:active {
    transform: scale(0.9);
}


.discovery-topbar { z-index: 99999; }



/* Removed title hiding */
/* Removed duplicated interests flex */
.btn-ver-perfil svg {
    transition: transform 0.3s;
}
.swipe-card.is-expanded .btn-ver-perfil svg {
    transform: rotate(135deg);
}




.swipe-photo-tap-left {
    left: 0;
}
.swipe-photo-tap-right {
    right: 0;
}




/* Removed forced title */


.swipe-card:not(.is-expanded) .hide-when-collapsed { display: none; }





@keyframes gradientLoop {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.discovery-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, #8a2be2, #ff6b6b, #8a2be2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradientLoop 3s linear infinite;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}





.swipe-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.swipe-card-interests span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--bm-text) !important;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.swipe-verified-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%238b5cf6" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L15.09 5.09L19.18 4.64L19.64 8.73L22.73 11.82L19.64 14.91L19.18 19L15.09 18.55L12 21.64L8.91 18.55L4.82 19L4.36 14.91L1.27 11.82L4.36 8.73L4.82 4.64L8.91 5.09L12 2Z"/><path d="M10 15.17L6.83 12L8.24 10.59L10 12.34L15.76 6.58L17.17 8L10 15.17Z" fill="white"/></svg>');
    background-size: cover;
    margin-left: 6px;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.2));
}


.swipe-photo-tap {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 15; /* abaixo do overlay (20): o bloco nome/local abre o perfil, o resto troca a foto */
    cursor: pointer;
    pointer-events: auto !important;
}

/* Badges (Drops) UI */
.card-badges-container {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.badge-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.badge-item:hover, .badge-item:active {
    transform: scale(1.05);
}

.badge-item-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.badge-item-text {
    font-size: 24px;
}

.badge-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.badge-item.show-tip .badge-tooltip {
    opacity: 1;
    visibility: visible;
}



/* Anúncio de campanha no swipe */
.swipe-ad-chip { position: absolute; top: 14px; left: 14px; z-index: 6; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .4px; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); }
.swipe-card.is-ad:not(.is-expanded) .swipe-card-image::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(255,193,7,.75); pointer-events: none; }
.control-btn.is-ad-disabled { opacity: .35; pointer-events: none; }

.se-ad-link { display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 12px; background: rgba(233,30,99,.1); color: var(--bm-accent); font-weight: 700; text-decoration: none; }

/* Logo BMeet no topo (gradiente animado, igual ao restante do app): vale para login, cadastro e páginas institucionais */
.discovery-title-logo {
    display: inline-block;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #8a2be2, #ff6b6b, #8a2be2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradientLoop 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .discovery-title-logo { animation: none; } }
