/**
 * Babi Meet — Composants UI modernes 2026
 */
.ay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.ay-badge.verified { background: rgba(16, 185, 129, 0.12); color: #059669; }
.ay-badge.new { background: var(--accent-soft); color: var(--accent); }
.ay-badge.active { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.ay-badge.complete { background: var(--primary-soft); color: var(--primary); }
.ay-badge.online { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.ay-badge.premium { background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); color: var(--primary); }
.ay-badges-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

.dash-v2-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dash-v2-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.dash-v2-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-v2-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dash-v2-card-head h3 { font-size: 0.9375rem; font-weight: 700; display: flex; align-items: center; gap: 0.45rem; }
.dash-v2-card-head h3 i { color: var(--primary); font-size: 0.875rem; }
.dash-v2-card-head button { font-size: 0.75rem; font-weight: 600; color: var(--primary); background: none; border: none; cursor: pointer; font-family: inherit; }

.dash-hero-match { display: flex; gap: 1rem; align-items: center; cursor: pointer; width: 100%; background: none; border: none; padding: 0; font-family: inherit; text-align: left; }
.dash-hero-match-photo { width: 72px; height: 72px; border-radius: 20px; background: var(--surface-2) center/cover; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.dash-hero-match-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}
.dash-hero-match-body > strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}
.dash-hero-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.dash-compat-ring { margin-left: auto; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--surface-2) 0); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-compat-ring span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: var(--primary); }

.dash-mini-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-mini-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.65rem; border-radius: var(--radius-lg); background: var(--surface-2); border: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.dash-mini-row:hover { background: var(--primary-soft); }
.dash-mini-avatar { width: 40px; height: 40px; border-radius: 14px; background: var(--border) center/cover; flex-shrink: 0; position: relative; }
.dash-mini-avatar .dot-online { position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; background: #10B981; border: 2px solid var(--surface); border-radius: 50%; }
.dash-mini-main { flex: 1; min-width: 0; }
.dash-mini-main strong { display: block; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-mini-main span { font-size: 0.75rem; color: var(--text-muted); }

.dash-activity-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.75rem; }

.disc-badges-top { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; z-index: 2; }
.disc-status-bar { position: absolute; bottom: 7rem; left: 1rem; z-index: 2; }

.prompt-card { background: var(--surface-2); border-radius: var(--radius-lg); padding: 1rem 1.1rem; margin-bottom: 0.65rem; }
.prompt-card strong { display: block; font-size: 0.8125rem; color: var(--primary); margin-bottom: 0.35rem; }

.security-hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: var(--radius-xl); padding: 2rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-lg); }
.security-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.security-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.35rem; box-shadow: var(--shadow-md); }
.security-card i { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }
.verify-block { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 0.65rem; box-shadow: var(--shadow-sm); }
.verify-block.done { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }

.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.event-cover { height: 160px; overflow: hidden; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.event-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-body { padding: 1.15rem; }
.event-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; display: flex; gap: 0.65rem; flex-wrap: wrap; }

.chat-quick-react { display: flex; gap: 0.35rem; padding: 0.5rem 0; flex-wrap: wrap; }
.chat-quick-react button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 1.1rem; cursor: pointer; }
.chat-quick-react button:hover { transform: scale(1.12); background: var(--primary-soft); }
.msg-reaction-pill { display: inline-block; font-size: 0.875rem; margin-top: 0.2rem; padding: 0.1rem 0.35rem; background: var(--surface-2); border-radius: var(--radius-full); }

.report-reasons { display: flex; flex-direction: column; gap: 0.5rem; }
.report-reason { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; text-align: left; font-family: inherit; font-size: 0.875rem; width: 100%; }
.report-reason.selected { border-color: var(--primary); background: var(--primary-soft); }

.tab-page-enter { animation: fadeSlideUp 0.35s var(--ease-out); }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ay-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-v2 { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: ay-shimmer 1.4s ease infinite; border-radius: var(--radius-lg); }

.lum-card { box-shadow: var(--shadow-md) !important; border-radius: var(--radius-xl) !important; }
.disc-card { border-radius: var(--radius-xl) !important; box-shadow: var(--shadow-lg) !important; }

/* ── Coins arrondis globaux ── */
.btn,
.lum-btn,
.header-btn,
.sidebar-logout,
.sidebar-theme-btn {
    border-radius: var(--radius-full) !important;
}

.auth-card,
.modal-box,
.match-popup-inner,
.panel,
.drawer-panel,
.paywall-wall,
.premium-page-hero,
.empty-state,
.tab-page .lum-section,
.fav-card-premium,
.match-card-premium,
.explore-tile,
.activity-item,
.conv-item,
.notif-item,
.plan-card,
.group-card-premium,
.lum-match-card,
.lum-premium-hero,
.lum-plan,
.lum-card,
.dash-v2-card,
.security-card,
.event-card,
.prompt-card,
.verify-block,
.photo-drop,
.photo-drop-inner,
.profile-photo-wrap,
.lum-dropzone,
.lum-group-cover,
.lum-profile-hero,
.lum-profile-cover,
.search-bar,
.header-search,
.field-input,
.field-textarea,
select.field-input,
.chip,
.chip-radio,
.notif-filter-btn,
.msg-filter,
.lum-profile-badge {
    border-radius: var(--radius-xl) !important;
}

.settings-group,
.lum-section,
.rail-completion,
.rail-tip,
.msg-banner,
.msg-profile-action,
.premium-banner,
.group-trending-badge {
    border-radius: var(--radius-lg) !important;
}

/* Avatars & photos ronds conservés */
.profile-photo,
.lum-profile-avatar,
.conv-avatar,
.activity-avatar,
.disc-act,
.btn-swipe,
.sidebar-user-avatar,
.header-avatar-btn .avatar-placeholder {
    border-radius: 50% !important;
}

/* Photos carrées arrondies (pas rondes) */
.lum-match-photo,
.dash-mini-avatar,
.dash-hero-match-photo,
.fav-card-photo,
.group-card-photo,
.profile-grid-photo,
.lum-conv-avatar,
.msg-conv-avatar,
.explore-tile:not(.hover-lift) {
    border-radius: var(--radius-lg) !important;
}

.feature-card,
.story-card,
.premium-box,
.safety-item,
.trust-pill,
.hero-gallery .photo-main,
.hero-gallery .photo-side,
.hero-gallery img {
    border-radius: var(--radius-xl) !important;
}

.app-bottomnav .nav-item {
    border-radius: var(--radius-md) !important;
}

.app-sidebar,
.premium-header {
    /* shell — pas de coins arrondis sur les bords écran */
}

.modal-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
}

/* ── Images web : coins arrondis ── */
.auth-split-visual {
    overflow: hidden;
}

@media (min-width: 961px) {
    .auth-split-visual {
        margin: 1.25rem 0 1.25rem 1.25rem;
        min-height: calc(100vh - 2.5rem);
        align-self: center;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .auth-split-photo,
    .auth-split-overlay {
        border-radius: var(--radius-xl);
    }
}

@media (max-width: 960px) {
    .auth-split-visual {
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
}

.discovery-photo,
.discovery-card-photo,
.profile-tile,
.group-card-photo,
.fav-card-photo,
.fav-card-premium .fav-card-photo,
.group-card-premium .group-card-photo,
.event-cover,
.story-media,
.story-viewer,
.story-page .story-viewer,
.lum-profile-cover,
.lum-group-cover,
.lum-match-photo,
.profile-grid-photo,
.explore-tile,
.photo-preview-item,
.photo-preview-grid img,
.dash-hero-match-photo,
.match-popup-inner img,
.panel-profile-photo,
.lum-dropzone-preview img {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.discovery-card,
.profile-tile,
.group-card,
.fav-card,
.fav-card-premium,
.group-card-premium,
.event-card,
.explore-tile,
.story-page .story-viewer {
    overflow: hidden;
}

.event-cover,
.story-page .story-viewer {
    border-radius: var(--radius-xl) !important;
}

.discovery-photo img,
.discovery-card-photo img,
.profile-tile img,
.group-card-photo img,
.explore-tile img,
.story-media,
.story-page .story-media,
.lum-profile-photos img,
.profile-photos img,
.profile-photo,
.modal-box img:not(.no-radius) {
    border-radius: var(--radius-lg) !important;
}

img.conv-avatar,
img.story-ring-avatar,
.header-avatar-btn img,
.sidebar-user-avatar,
.story-author-avatar,
.match-box img,
.notif-avatar,
.activity-avatar,
.panel-header img,
.drawer-item img,
.disc-act img {
    border-radius: 50% !important;
}
