/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --dark-bg: #0f0f1e;
    --darker-bg: #1a1a2e;
    --light-bg: #252540;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --success-color: #4caf50;
    --error-color: #f44336;
    --border-radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --bottom-nav-height: 70px;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

html {
    height: 100%;
    height: -webkit-fill-available;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* Pour les pages normales, permettre le scroll sur html */
html:has(body:not(.has-full-height-page):not(.chat-page)) {
    overflow-y: auto;
}

/* Note: Pour les navigateurs sans support :has(), le body gère directement le scroll */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    line-height: 1.6;
    padding-top: var(--safe-area-inset-top);
    padding-bottom: 0;
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pour la page swipe (full-height), bloquer le scroll du body et html */
body.has-full-height-page {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

html:has(body.has-full-height-page) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* Note: Pour les navigateurs sans support :has(), la classe .has-full-height-page est appliquée directement au body via PHP */

/* Permettre le scroll sur les pages normales - le body gère le scroll */
body:not(.has-full-height-page):not(.chat-page) {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0 !important;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    height: calc(var(--bottom-nav-height) + var(--safe-area-inset-bottom));
    min-height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 8px 10px;
    padding-bottom: calc(8px + var(--safe-area-inset-bottom));
    padding-left: calc(10px + var(--safe-area-inset-left));
    padding-right: calc(10px + var(--safe-area-inset-right));
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
    padding: 6px 8px;
    border-radius: 12px;
    position: relative;
    min-width: 50px;
    max-width: 80px;
    flex: 1;
    gap: 2px;
    box-sizing: border-box;
    height: 100%;
    min-height: 54px;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.bottom-nav-item .badge-new-matches:not([style*="display: none"]) + .badge-messages:not([style*="display: none"]) {
    left: 50%;
    transform: translateX(calc(50% + 12px));
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
    display: block;
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--error-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--light-bg);
    z-index: 10;
}

.badge-new-matches {
    background: var(--primary-color);
    right: 8px;
}

.badge-messages {
    background: var(--error-color);
    right: 8px;
}

/* Page Header */
.page-header {
    background: var(--light-bg);
    padding: calc(0.75rem + var(--safe-area-inset-top)) 0.5rem 0.75rem;
    padding-left: calc(0.5rem + var(--safe-area-inset-left));
    padding-right: calc(0.5rem + var(--safe-area-inset-right));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: calc(0px - var(--safe-area-inset-top));
    margin-top: calc(0px - var(--safe-area-inset-top));
    z-index: 100;
    flex-shrink: 0;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main Content */
.main-content {
    padding: 0.5rem;
    padding-left: calc(0.5rem + var(--safe-area-inset-left));
    padding-right: calc(0.5rem + var(--safe-area-inset-right));
    padding-bottom: 0.5rem;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Permettre le scroll sur les pages normales - le body gère le scroll */
body:not(.has-full-height-page):not(.chat-page) {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0 !important;
}

body:not(.has-full-height-page):not(.chat-page) .main-content {
    overflow-y: visible !important;
    overflow-x: hidden;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding-bottom: calc(0.5rem + var(--bottom-nav-height) + var(--safe-area-inset-bottom));
    position: relative;
}

/* Pour les pages qui nécessitent une hauteur fixe (swipe, chat) */
.main-content.full-height {
    padding: 0;
    height: calc(100vh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    height: calc(100dvh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    overflow: hidden;
    position: relative;
}

/* La page swipe gère son propre scroll interne */
body.has-full-height-page .main-content.full-height {
    padding: 0;
    overflow: hidden;
    height: calc(100vh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    height: calc(100dvh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    position: relative;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Permettre le scroll quand no-more-cards est visible */
.main-content.full-height.scroll-enabled {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: calc(100vh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    min-height: calc(100dvh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
}

/* Auth pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(1rem + var(--safe-area-inset-top)) calc(1rem + var(--safe-area-inset-left)) calc(1rem + var(--safe-area-inset-bottom)) calc(1rem + var(--safe-area-inset-right));
}

.auth-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--darker-bg);
    border-radius: 4px;
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--darker-bg);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

/* Profile Setup */
.profile-setup {
    width: 100%;
    padding: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-section {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.profile-section h2 {
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Kinks Selection */
.kinks-grid {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.kink-category {
    margin-bottom: 1rem;
}

.kink-category h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    padding: 0 0.25rem;
}

.kink-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--darker-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.kink-item:hover {
    background: rgba(255, 107, 157, 0.15);
    transform: translateX(4px);
}

.kink-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.kink-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.kink-name {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    transition: opacity 0.3s;
}

.kink-item input[type="radio"]:checked ~ .primary-badge {
    opacity: 1;
}

.kink-info-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    margin-left: auto;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.kink-info-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
}

.kink-info-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Modal d'information kink */
.kink-info-modal-content {
    max-width: 500px;
}

.kink-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kink-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.kink-info-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
}

.kink-info-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.kink-info-body {
    padding: 1.5rem;
}

.kink-info-description {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.kink-info-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--darker-bg);
    border-radius: 8px;
}

.kink-info-category-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.kink-info-category-value {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Photos de profil */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.photo-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-primary-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.photo-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.set-primary-btn {
    background: var(--primary-color);
    color: white;
}

.set-primary-btn:hover {
    background: var(--secondary-color);
}

.delete-btn {
    background: var(--error-color);
    color: white;
}

.delete-btn:hover {
    background: #d32f2f;
}

.photo-upload-slot {
    aspect-ratio: 1;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--darker-bg);
}

.photo-upload-slot:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
}

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.photo-upload-label svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
}

.photo-upload-label:hover {
    color: var(--primary-color);
}

/* Swipe Container */
.swipe-container {
    width: 100%;
    padding: 0;
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
    max-width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    flex: 1;
}

/* Permettre le scroll quand no-more-cards est visible */
.swipe-container.scroll-enabled {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: calc(100vh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    min-height: calc(100dvh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
}

.card-stack {
    position: relative;
    flex: 1;
    width: 100%;
    margin: 0;
    min-height: 0;
    overflow: hidden;
}

/* Permettre le scroll dans card-stack quand no-more-cards est visible */
.swipe-container.scroll-enabled .card-stack {
    overflow: visible;
    min-height: auto;
    flex: none;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: grab;
    user-select: none;
    box-sizing: border-box;
}

.swipe-card:active {
    cursor: grabbing;
}

.card-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    background-color: var(--darker-bg);
    flex-shrink: 0;
}

/* Navigation photos sur les cartes swipe */
.card-photos-container {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    background-color: var(--darker-bg);
}

.card-photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.card-photo-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.card-photos-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.photo-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.photo-indicator.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

.card-info {
    padding: 1.5rem;
    height: 40%;
    min-height: 40%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.card-info h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

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

.last-seen-badge {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.25rem 0;
    flex-shrink: 0;
}

.role-badge.role-dom {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.role-badge.role-sub {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.role-badge.role-switch {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.4);
}

.card-clickable {
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    position: relative;
}

.card-clickable:hover {
    opacity: 0.9;
    transform: translateX(2px);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
}

.card-clickable:active {
    transform: translateX(1px);
}

.kinks-preview.card-clickable:hover {
    transform: translateX(2px);
    opacity: 0.9;
}

.kinks-preview.card-clickable:hover .kinks-category {
    opacity: 1;
}

.kinks-preview.card-clickable:hover .kink-block {
    filter: blur(2px);
    opacity: 0.8;
}

.distance {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    flex-shrink: 0;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3em;
    flex-shrink: 0;
}

.swipe-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
    flex-shrink: 0;
}

.swipe-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
    flex-shrink: 0;
}

.dislike-btn {
    background: white;
    color: #f44336;
}

.dislike-btn:hover {
    transform: scale(1.1);
    background: #f44336;
    color: white;
}

.like-btn {
    background: white;
    color: var(--primary-color);
}

.like-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.super-like-btn {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
    font-size: 2rem;
    width: 70px;
    height: 70px;
    animation: superLikePulse 2s infinite;
}

.super-like-btn:hover:not(.disabled) {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.super-like-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    filter: grayscale(100%);
}

@keyframes superLikePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7);
    }
}

.super-like-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.super-like-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.super-like-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--light-bg);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
}

.super-like-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.super-like-animation {
    font-size: 4rem;
    animation: superLikeSpin 1s ease-in-out;
    margin-bottom: 1rem;
}

@keyframes superLikeSpin {
    0% {
        transform: rotate(0deg) scale(0);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.super-like-notification h3 {
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.super-like-notification p {
    color: var(--text-secondary);
    margin: 0;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-bg), var(--light-bg));
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    padding: 1rem;
    max-width: 100%;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.pwa-install-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pwa-install-text p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-install-steps {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.pwa-install-steps p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.ios-share-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    margin: 0 0.25rem;
    vertical-align: middle;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.pwa-install-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.pwa-install-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Ajuster le padding du body pour éviter que le contenu soit caché par le banner */
body.has-pwa-banner {
    padding-bottom: calc(120px + var(--bottom-nav-height) + var(--safe-area-inset-bottom));
}

/* Support pour les éléments fixes en haut */
.swipe-header,
.filter-btn {
    margin-top: var(--safe-area-inset-top);
}

.swipe-header {
    padding-top: calc(0.75rem + var(--safe-area-inset-top));
    padding-left: calc(0.5rem + var(--safe-area-inset-left));
    padding-right: calc(0.5rem + var(--safe-area-inset-right));
}

/* Safe areas déjà gérées dans les sélecteurs spécifiques ci-dessus */

/* Ajuster le banner PWA install */
.pwa-install-banner {
    padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
    padding-left: calc(1rem + var(--safe-area-inset-left));
    padding-right: calc(1rem + var(--safe-area-inset-right));
}

/* Responsive pour le banner */
@media (max-width: 768px) {
    .pwa-install-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pwa-install-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .pwa-install-btn {
        flex: 1;
    }
    
    .pwa-install-text h3 {
        font-size: 1rem;
    }
    
    .pwa-install-text p {
        font-size: 0.85rem;
    }
}

.no-more-cards {
    text-align: center;
    padding: 3rem 2rem;
    padding-bottom: calc(3rem + var(--safe-area-inset-bottom) + 150px);
    color: var(--text-secondary);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom) - 100px);
    min-height: calc(100dvh - var(--bottom-nav-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom) - 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Assurer que le contenu de no-more-cards peut scroller */
.swipe-container.scroll-enabled #no-more-cards {
    width: 100%;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.empty-state-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.empty-state-message {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0;
}

.empty-state-suggestions {
    margin-top: 2rem;
    width: 100%;
}

.empty-state-suggestions h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.suggestion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.suggestion-card {
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.suggestion-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.suggestion-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

.suggestion-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Vérification de profil */
.verification-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

.verification-status {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.verification-status.verified {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(56, 142, 60, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.verification-status.pending {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(245, 124, 0, 0.1));
    border: 2px solid rgba(255, 152, 0, 0.5);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.verification-status.verified .status-icon {
    color: #4caf50;
}

.verification-status.pending .status-icon {
    color: #ff9800;
}

.verification-status h2 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.status-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.verification-form-section {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.verification-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.verification-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.verification-instructions h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.verification-instructions ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.verification-instructions li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.verification-instructions .note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-style: italic;
}

.verification-form {
    margin-top: 2rem;
}

.photo-preview {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
}

.photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.verification-btn {
    width: 100%;
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.verification-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

/* Match Notification */
.match-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s;
}

.match-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.match-notification h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Matches */
.matches-container {
    width: 100%;
    padding: 1rem;
}

/* Titre supprimé - maintenant uniquement dans .page-header */

.liked-by-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.liked-by-section h2 {
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.liked-by-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.liked-by-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 3/4;
    background: var(--light-bg);
}

.liked-by-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.liked-by-card.super-liked {
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.liked-by-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.liked-by-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: white;
}

.liked-by-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: white;
}

.compatibility-badge {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.super-like-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    animation: pulse 2s infinite;
}

.no-matches {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.match-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    position: relative;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
}

.match-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
    position: relative;
}

.match-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--light-bg);
}

.match-new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    border: 2px solid var(--light-bg);
}

.match-card.new-match {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.3);
}

.match-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.match-percentage {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.match-last-message {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-has-messages {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.match-no-messages {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Messages/Inbox */
.messages-container {
    width: 100%;
    padding: 0;
}

.no-messages {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin: 1rem;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.conversation-item:hover {
    background: var(--darker-bg);
}

.conversation-item.unread {
    background: rgba(255, 107, 157, 0.1);
    border-left: 3px solid var(--primary-color);
}

.conversation-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-color);
    position: relative;
    flex-shrink: 0;
}

.conversation-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid var(--light-bg);
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-header h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.conversation-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-item.unread .conversation-preview {
    color: var(--text-primary);
    font-weight: 500;
}

.conversation-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.conversation-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.conversation-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.conversation-action-btn:hover {
    background: var(--darker-bg);
    color: var(--primary-color);
}

/* Match Actions */
.match-card-content {
    cursor: pointer;
}

.match-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.match-action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.report-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.report-btn:hover {
    background: rgba(255, 193, 7, 0.3);
}

.block-btn {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.block-btn:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Chat Actions */
.chat-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--darker-bg);
    color: var(--text-primary);
}

.modal-content form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Styles pour la modal de filtres avancés */
.filter-modal-content {
    max-width: 600px;
    max-height: 85vh;
}

.filter-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-actions .btn {
    flex: 1;
}

.form-group select {
    width: 100%;
    padding: 0.875rem;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Chat */
.chat-page {
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* La page chat n'a pas de bottom-nav visible, donc pas besoin de padding */
body.chat-page {
    padding-bottom: 0 !important;
}

.chat-container {
    width: 100%;
    height: calc(100vh - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    height: calc(100dvh - var(--safe-area-inset-top) - var(--safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
    overflow: hidden;
    position: fixed;
    top: var(--safe-area-inset-top);
    bottom: calc(var(--safe-area-inset-bottom));
    left: var(--safe-area-inset-left);
    right: var(--safe-area-inset-right);
    padding-bottom: 70px;
    box-sizing: border-box;
}

.chat-header {
    background: var(--light-bg);
    padding: 1rem;
    padding-top: calc(1rem + var(--safe-area-inset-top));
    padding-left: calc(1rem + var(--safe-area-inset-left));
    padding-right: calc(1rem + var(--safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: calc(0px - var(--safe-area-inset-top));
    margin-top: calc(0px - var(--safe-area-inset-top));
    z-index: 100;
    flex-shrink: 0;
}

.back-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: calc(1rem + 80px);
    padding-left: calc(1rem + var(--safe-area-inset-left));
    padding-right: calc(1rem + var(--safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.message {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    word-wrap: break-word;
}

.message-sent {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-received {
    align-self: flex-start;
    background: var(--darker-bg);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.chat-input-form {
    display: flex;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + var(--safe-area-inset-bottom));
    padding-left: calc(1rem + var(--safe-area-inset-left));
    padding-right: calc(1rem + var(--safe-area-inset-right));
    background: var(--light-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.75rem;
    position: fixed;
    bottom: calc(var(--safe-area-inset-bottom));
    left: var(--safe-area-inset-left);
    right: var(--safe-area-inset-right);
    width: calc(100% - var(--safe-area-inset-left) - var(--safe-area-inset-right));
    z-index: 100;
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    min-height: 60px;
    max-height: 60px;
}

.chat-input-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 1rem;
}

.send-btn {
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.send-btn:hover {
    background: var(--secondary-color);
}

/* Settings */
.settings-container {
    width: 100%;
    padding: 1rem;
}

/* Titre supprimé - maintenant uniquement dans .page-header */

.settings-form {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.support-btn {
    width: 100%;
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #2196F3;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.support-btn:hover {
    background: rgba(33, 150, 243, 0.3);
}

.delete-account-btn {
    width: 100%;
    background: rgba(244, 67, 54, 0.2);
    border-color: var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.delete-account-btn:hover {
    background: rgba(244, 67, 54, 0.3);
}

.logout-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    display: block;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.warning-box {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.warning-box strong {
    color: var(--error-color);
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.warning-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.warning-box ul li {
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: var(--text-primary);
    margin-top: 1rem;
}

#delete-confirmation {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

#confirm-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#confirm-delete-btn:disabled:hover {
    transform: none;
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .swipe-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .chat-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* Navigation desktop - centrer et limiter la largeur */
    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 600px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px 20px 0 0;
    }
    
    .bottom-nav-item {
        padding: 8px 12px;
        min-width: 70px;
        max-width: 100px;
    }
    
    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .bottom-nav-item span {
        font-size: 0.7rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== SYSTÈME DE KINKS INVISIBLE ===== */

/* Blocs floutés de kinks */
.kink-block {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin: 2px;
    filter: blur(4px);
    transition: all 0.3s;
    flex-shrink: 0;
}

.kink-block-avouable {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(196, 69, 105, 0.3));
    border: 2px solid rgba(255, 107, 157, 0.5);
    filter: blur(2px);
}

.kink-block-inavouable {
    background: linear-gradient(135deg, rgba(100, 50, 150, 0.4), rgba(75, 0, 130, 0.4));
    border: 2px solid rgba(138, 43, 226, 0.6);
    filter: blur(5px);
}

/* Section de compatibilité sur les cartes */
.compatibility-section {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.compatibility-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.compatibility-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    color: var(--text-primary);
    white-space: nowrap;
}

.compatibility-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    border-radius: 15px;
}

.kinks-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.kinks-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.kinks-category.avouables {
    color: rgba(255, 107, 157, 0.9);
}

.kinks-category.inavouables {
    color: rgba(138, 43, 226, 0.9);
}

.kink-icon {
    font-size: 0.85rem;
}

.kink-count {
    flex: 1;
    min-width: 80px;
}

.kinks-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

/* Interface de configuration des kinks - Confidentialité */
.kink-item-wrapper {
    margin-bottom: 1rem;
}

.kink-item-wrapper:has(.kink-checkbox:checked) .kink-privacy-controls {
    display: flex;
}

.kink-privacy-controls {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-wrap: wrap;
    animation: slideDown 0.3s ease;
}

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

.privacy-option {
    flex: 1;
    min-width: 100px;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.privacy-label.avouable {
    background: rgba(255, 107, 157, 0.1);
}

.privacy-label.avouable:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.5);
}

.privacy-label.inavouable {
    background: rgba(138, 43, 226, 0.1);
}

.privacy-label.inavouable:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
}

.privacy-radio:checked ~ span {
    font-weight: 600;
}

.privacy-label.avouable .privacy-radio:checked ~ span {
    color: var(--primary-color);
}

.privacy-label.inavouable .privacy-radio:checked ~ span {
    color: #8a2be2;
}

.privacy-icon {
    font-size: 1.2rem;
}

.privacy-radio {
    margin: 0;
}

.primary-option {
    flex: 0 0 auto;
}

.primary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 215, 0, 0.1);
}

.primary-label:hover {
    background: rgba(255, 215, 0, 0.2);
}

.primary-kink-checkbox:checked ~ .primary-badge {
    color: #ffd700;
    font-weight: 600;
}

.primary-kink-checkbox {
    margin: 0;
    cursor: pointer;
}

.info-box.privacy-reminder {
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box.privacy-reminder strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.info-box.privacy-reminder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Filtre de compatibilité */
.swipe-header {
    position: absolute;
    top: calc(1rem + var(--safe-area-inset-top));
    right: calc(1rem + var(--safe-area-inset-right));
    left: calc(1rem + var(--safe-area-inset-left));
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn svg {
    width: 18px;
    height: 18px;
}

#filter-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Bouton pour ouvrir la modal de révélation */
.reveal-button-section {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: var(--light-bg);
}

.reveal-kink-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.reveal-kink-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.reveal-icon {
    font-size: 1.2rem;
}

/* Modal full screen de révélation */
.modal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-fullscreen-content {
    width: 100%;
    min-height: 100%;
    background: var(--dark-bg);
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.modal-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    padding-top: calc(1.5rem + var(--safe-area-inset-top));
    padding-left: calc(2rem + var(--safe-area-inset-left));
    padding-right: calc(2rem + var(--safe-area-inset-right));
    background: var(--light-bg);
    border-bottom: 2px solid rgba(255, 107, 157, 0.3);
    position: sticky;
    top: calc(0px - var(--safe-area-inset-top));
    margin-top: calc(0px - var(--safe-area-inset-top));
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-fullscreen-header h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

.modal-fullscreen-header .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-fullscreen-header .modal-close:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    color: #f44336;
    transform: rotate(90deg);
}

.modal-fullscreen-body {
    padding: 2rem;
    padding-left: calc(2rem + var(--safe-area-inset-left));
    padding-right: calc(2rem + var(--safe-area-inset-right));
    padding-bottom: calc(2rem + var(--safe-area-inset-bottom));
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reveal-status-section {
    margin-bottom: 3rem;
}

.reveal-new-section {
    margin-top: 2rem;
}

.reveal-new-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reveal-status-section .reveal-column h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.reveal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.reveal-column {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.revealed-kinks-list {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.revealed-kink-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s;
}

.revealed-kink-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.revealed-kink-item.shared {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.4);
}

.kink-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.revealed-kink-item.shared .kink-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shared-badge {
    font-size: 0.75rem;
    color: #ffd700;
}

.revoke-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: var(--error-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.75rem;
}

.revoke-btn:hover {
    background: rgba(244, 67, 54, 0.4);
}

.reveal-action {
    text-align: center;
}

.reveal-kink-btn {
    width: 100%;
}

.loading-text, .empty-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 1rem;
    font-style: italic;
}

/* Modal de révélation */
.available-kinks-list {
    max-height: 500px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.available-kink-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.available-kink-item:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
}

.kink-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.available-kink-item .kink-name {
    font-weight: 500;
    color: var(--text-primary);
}

.privacy-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.privacy-badge.avouable {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
}

.privacy-badge.inavouable {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

.available-kink-item .btn {
    width: 100%;
    white-space: nowrap;
    padding: 0.875rem 1.25rem;
}

.kink-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Page de profil détaillé */
.profile-detail-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.profile-header-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-header-detail h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.profile-photo-section {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-photo-large {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
}

.distance-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compatibility-section-detail {
    margin-bottom: 1.5rem;
}

.compatibility-bar-large {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.compatibility-percentage-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 2;
    color: var(--text-primary);
}

.compatibility-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    border-radius: 20px;
}

.knowledge-indicator {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: var(--border-radius);
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.knowledge-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.knowledge-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.6), rgba(75, 0, 130, 0.6));
    transition: width 0.5s ease;
    border-radius: 15px;
}

.knowledge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    color: var(--text-primary);
}

.profile-section-detail {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-section-detail h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.profile-section-detail p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.kinks-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kink-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.kink-tag.avouable-tag {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 157, 0.4);
}

.kink-tag.secret-tag {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.4);
}

.kink-tag.secret-tag.shared {
    background: rgba(255, 107, 157, 0.3);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.kinks-blurred-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kinks-blurred-category {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.blurred-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.blurred-icon {
    font-size: 1.2rem;
}

.blurred-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kink-block-more {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.blurred-hint {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

.profile-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-actions .btn {
    min-width: 200px;
}

/* Responsive pour révélations */
@media (max-width: 768px) {
    .reveal-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-fullscreen-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-fullscreen-header h1 {
        font-size: 1.5rem;
    }
    
    .modal-fullscreen-body {
        padding: 1.5rem 1rem;
    }
    
    .reveal-column {
        padding: 1rem;
    }
    
    .kinks-blocks {
        justify-content: center;
    }
    
    .kink-privacy-controls {
        flex-direction: column;
    }
    
    .privacy-option {
        width: 100%;
    }
    
    .available-kinks-list {
        grid-template-columns: 1fr;
    }
    
    .available-kink-item {
        padding: 1rem;
    }
    
    .profile-photo-large {
        height: 300px;
    }
    
    .blurred-blocks {
        justify-content: center;
    }
    
    .revealed-kinks-list {
        max-height: 300px;
    }
}
