/* CSS Reset & Variables */
:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.2);
    --profile-color: #8b5cf6;
    --accent-blue: #6366f1;
    --bg-color: #06040e;
    --bg-elevated: #0d0a18;
    --bg-mesh-top: rgba(124, 58, 237, 0.22);
    --bg-mesh-side: rgba(99, 102, 241, 0.12);
    --surface: rgba(22, 16, 44, 0.82);
    --surface-hover: rgba(28, 20, 52, 0.95);
    --border: rgba(139, 92, 246, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --glass-blur: blur(16px);
    --border-radius: 14px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
.app-body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fond en couches (sous le canvas) */
.app-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(
        165deg,
        #0e0a1a 0%,
        #06040e 35%,
        #080612 70%,
        #05030c 100%
    );
}

.bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, var(--bg-mesh-top), transparent 55%),
        radial-gradient(ellipse 45% 40% at 95% 45%, var(--bg-mesh-side), transparent 50%),
        radial-gradient(ellipse 40% 35% at 5% 75%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(ellipse 30% 25% at 70% 90%, rgba(59, 130, 246, 0.06), transparent 45%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 15%, transparent 72%);
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.5;
    animation: bgOrbFloat 18s ease-in-out infinite;
}

.app-glow-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, transparent 70%);
    top: -15%;
    right: -8%;
    animation-delay: 0s;
}

.app-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    bottom: 5%;
    left: -12%;
    animation-delay: -6s;
}

.app-glow-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    top: 45%;
    left: 55%;
    animation-delay: -12s;
}

@keyframes bgOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.04); }
    66% { transform: translate(-10px, 14px) scale(0.96); }
}

::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.55);
}

#darkveil-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.92;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

/* ===== Site header ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.85rem 1.25rem;
    background: rgba(10, 7, 20, 0.78);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0.75rem;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo-img {
    width: 46px;
    height: 46px;
    border-radius: 0;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    box-shadow: none;
}

.brand-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.brand-logo-mark .brand-logo-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    background: transparent;
    color: var(--text-main);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-color), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-avatar-initial[hidden],
.user-avatar-img[hidden] {
    display: none !important;
}

.user-pill .username {
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Legacy header (fallback) */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.header h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

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

.search-limit {
    background: rgba(139, 92, 246, 0.08);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.search-limit strong {
    color: var(--primary);
    font-weight: 700;
}

.search-limit.warning {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.search-limit.warning strong { color: var(--warning); }

.search-limit.danger {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.search-limit.danger strong { color: var(--danger); }

.logout-btn {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* ===== Search hub ===== */
.search-hub,
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0 2.5rem;
    animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-hub-card {
    width: 100%;
    max-width: 720px;
    background: rgba(12, 8, 24, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 80px rgba(139, 92, 246, 0.06);
    backdrop-filter: blur(28px);
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    justify-content: center;
}

.quick-chip-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.quick-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-chip:hover {
    border-color: var(--primary);
    color: #e9d5ff;
    background: rgba(139, 92, 246, 0.12);
}

.site-footer {
    text-align: center;
    padding: 2rem 0 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.footer-dot {
    margin: 0 0.5rem;
    opacity: 0.4;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 520px;
    line-height: 1.55;
}

.hero-search-form {
    width: 100%;
    margin-bottom: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(22, 16, 44, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 20px 40px -10px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1rem 1rem 3.5rem;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
}

.search-input-no-icon input {
    padding-left: 1.25rem;
}

.search-input-no-icon .search-icon {
    display: none;
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.search-input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.hero-search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5);
}

.hero-search-btn:active {
    transform: translateY(0);
}

.hero-search-btn--stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.hero-search-btn--stop:hover {
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5);
}

.hero-search-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.loading-stop-btn {
    margin-top: 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.loading-stop-btn:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fff;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.stat-pill i {
    font-size: 1.5rem;
}
.text-purple { color: #a855f7; }
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Results */
.results-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--glass-shadow);
    display: none;
    animation: fadeIn 0.4s ease;
}

.osint-profiles-section {
    border-radius: var(--radius-lg) !important;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.results-header h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.results-count {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.loading {
    text-align: center;
    padding: 2rem 0;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.loadingText {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.current-db {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.results-container {
    margin-top: 1rem;
}

.results-cards-container {
    margin-top: 1.5rem;
}

.result-card {
    background: rgba(22, 16, 44, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.result-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
}

.result-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.info-item:hover .copy-icon {
    opacity: 0.6 !important;
}

.info-item:hover .copy-icon:hover {
    opacity: 1 !important;
    color: var(--primary);
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.info-icon.user { color: #60a5fa; border-color: rgba(96, 165, 250, 0.2); }
.info-icon.location { color: #f87171; border-color: rgba(248, 113, 113, 0.2); }
.info-icon.city { color: #c084fc; border-color: rgba(192, 132, 252, 0.2); }
.info-icon.globe { color: #34d399; border-color: rgba(52, 211, 153, 0.2); }
.info-icon.email { color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }
.info-icon.phone { color: #38bdf8; border-color: rgba(56, 189, 248, 0.2); }
.info-icon.key { color: #f472b6; border-color: rgba(244, 114, 182, 0.2); }
.info-icon.default { color: #94a3b8; border-color: rgba(148, 163, 184, 0.2); }

.info-content {
    flex: 1;
    overflow: hidden;
}

.info-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.info-value {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-orange {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Pricing System Styles */
.pricing-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.pricing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pricing-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pricing-modal-container {
    background: rgba(12, 8, 24, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    padding: 3rem;
    position: relative;
    backdrop-filter: var(--glass-blur);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.pricing-modal-overlay.active .pricing-modal-container {
    transform: scale(1);
}

.close-pricing-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-pricing-btn:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-header h2 span {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.2);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.pricing-card.popular:hover {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.pricing-card.premium {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.pricing-card.premium:hover {
    border-color: #60a5fa;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.pricing-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.pricing-card.popular .pricing-card-badge {
    background: var(--primary);
    color: white;
}

.pricing-card.premium .pricing-card-badge {
    background: #3b82f6;
    color: white;
}

.pricing-card-header {
    margin-bottom: 2rem;
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li i {
    font-size: 1rem;
}

.pricing-features li i.text-purple {
    color: var(--primary);
}

.pricing-features li i.text-muted {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-card-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.pricing-card-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.pricing-card-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.pricing-card-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.pricing-card-btn.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.pricing-card-btn.gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Selective card export styles */
.result-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-select-wrapper {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(139, 92, 246, 0.1);
}

.select-circle i {
    font-size: 0.75rem;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

/* Selected state */
.result-card[data-selected="true"] .select-circle {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.result-card[data-selected="true"] .select-circle i {
    opacity: 1;
    transform: scale(1);
}

/* Hover state */
.card-select-wrapper:hover .select-circle {
    transform: scale(1.1);
    border-color: var(--primary-hover);
}

/* Deselected card visual state */
.result-card.deselected {
    opacity: 0.35;
    filter: grayscale(0.6);
    border-color: rgba(255, 255, 255, 0.03);
    transform: scale(0.99);
}

.tuto-btn {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
}

.tuto-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: white;
    border-color: transparent;
}

.pricing-btn {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.pricing-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

/* ===== TUTO MODAL ===== */
.tuto-modal-container {
    max-width: 780px !important;
}

.tuto-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tuto-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(15, 10, 30, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    transition: var(--transition);
}

.tuto-step:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(22, 16, 44, 0.7);
    transform: translateX(4px);
}

.tuto-step-number {
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
    flex-shrink: 0;
}

.tuto-step-content {
    flex: 1;
}

.tuto-step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.tuto-step-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.tuto-icon {
    color: var(--primary);
    font-size: 1rem;
}

.tuto-step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tuto-step-content strong {
    color: var(--text-main);
}

.tuto-example {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #c4b5fd;
    flex-wrap: wrap;
}

.tuto-example i {
    color: var(--primary);
    flex-shrink: 0;
}

.tuto-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tuto-section-label:first-child {
    margin-top: 0;
}

.tuto-section-label i {
    color: var(--primary);
}

.tuto-section-osint {
    color: #c4b5fd;
    border-bottom-color: rgba(139, 92, 246, 0.35);
}

.tuto-section-osint i {
    color: #a78bfa;
}

.tuto-step-osint {
    border-color: rgba(139, 92, 246, 0.25);
}

.tuto-step-osint:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12);
}

.tuto-step-number-osint {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    font-size: 0.65rem;
    min-width: 2.5rem;
    padding: 0 0.35rem;
}

.tuto-list {
    margin: 0.65rem 0 0.75rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.tuto-list li {
    margin-bottom: 0.35rem;
}

.tuto-list code {
    background: rgba(139, 92, 246, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #e9d5ff;
}

.tuto-example code {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #a78bfa;
    font-family: monospace;
}

/* IP Geolocation button and badges */
.ip-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.ip-geo-info {
    animation: fadeIn 0.3s ease;
}


/* OSINT IA */
.search-mode-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.mode-tab {
    background: rgba(22, 16, 44, 0.6);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.mode-tab:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.mode-tab.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
}

.osint-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.osint-hint i {
    color: var(--primary);
    margin-right: 0.35rem;
}

.osint-prompt-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.osint-prompt-input {
    width: 100%;
    min-height: 88px;
    max-height: 160px;
    padding: 1rem 1.1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    background: rgba(12, 8, 24, 0.75);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition);
}

.osint-prompt-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.osint-prompt-input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.osint-prompt-chips .osint-prompt-chip {
    font-size: 0.78rem;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
    padding: 0.45rem 0.75rem;
    height: auto;
}

.osint-prompt-extract {
    text-align: center;
    font-size: 0.82rem;
    color: #a1a1aa;
    margin-bottom: 0.65rem;
}

.osint-prompt-extract em {
    color: #c4b5fd;
    font-style: normal;
}

.osint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    align-self: center;
    min-width: 160px;
}

/* Discord */
.mode-tab-discord.active {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865f2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #4752c4, #5865f2);
}

.badge-discord {
    background: rgba(88, 101, 242, 0.2);
    color: #c7d2fe;
    border: 1px solid rgba(88, 101, 242, 0.45);
}

/* Carte profil Discord (résultats recherche) */
.discord-profile-banner {
    margin-bottom: 1.5rem;
}

.discord-profile-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18) 0%, rgba(15, 23, 42, 0.9) 45%);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.12);
    overflow: hidden;
    position: relative;
}

.discord-profile-banner-img {
    height: 88px;
    margin: -1.25rem -1.35rem 1rem;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-profile-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.discord-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(88, 101, 242, 0.65);
    background: #1e1b4b;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-profile-main {
    flex: 1;
    min-width: 220px;
}

.discord-profile-display {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.discord-profile-global {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    color: #e0e7ff;
    font-weight: 600;
}

.discord-profile-handle {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: #a5b4fc;
}

.discord-profile-legacy {
    margin-left: 0.35rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.discord-profile-id-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.discord-profile-id {
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    color: #c7d2fe;
    border: 1px solid rgba(88, 101, 242, 0.35);
}

.discord-profile-copy,
.discord-profile-open {
    border: 1px solid rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.15);
    color: #c7d2fe;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.discord-profile-copy:hover,
.discord-profile-open:hover {
    background: #5865f2;
    color: #fff;
    border-color: transparent;
}

.discord-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.discord-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.discord-profile-old-section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-profile-old-section h4 {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.discord-profile-old-section h4 i {
    color: #5865f2;
}

.discord-old-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.discord-old-pseudo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
}

.discord-old-pseudo i {
    color: #818cf8;
    font-size: 0.72rem;
}

.discord-old-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.badge-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
}

.info-icon.discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
}

.osint-interpretation {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    font-size: 0.85rem;
}

.osint-search-goal {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: #e9d5ff;
    line-height: 1.45;
}

.osint-search-goal i {
    color: var(--primary);
    margin-right: 0.35rem;
}

.osint-detect-title {
    text-align: center;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.osint-detect-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.osint-detect-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(12, 7, 29, 0.5);
}

.osint-detect-chip.medium {
    opacity: 0.85;
    border-style: dashed;
}

.osint-detect-chip .chip-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.osint-detect-chip .chip-value {
    color: var(--text-main);
}

.osint-detect-chip.type-prenom { border-color: rgba(96, 165, 250, 0.5); background: rgba(96, 165, 250, 0.1); }
.osint-detect-chip.type-prenom .chip-label { color: #60a5fa; }

.osint-detect-chip.type-nom { border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.1); }
.osint-detect-chip.type-nom .chip-label { color: #a78bfa; }

.osint-detect-chip.type-ville { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); }
.osint-detect-chip.type-ville .chip-label { color: #34d399; }

.osint-detect-chip.type-email { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.1); }
.osint-detect-chip.type-email .chip-label { color: #fbbf24; }

.osint-detect-chip.type-phone { border-color: rgba(244, 114, 182, 0.5); background: rgba(244, 114, 182, 0.1); }
.osint-detect-chip.type-phone .chip-label { color: #f472b6; }

.osint-detect-chip.type-code_postal { border-color: rgba(45, 212, 191, 0.5); background: rgba(45, 212, 191, 0.1); }
.osint-detect-chip.type-code_postal .chip-label { color: #2dd4bf; }

.osint-detect-chip.type-adresse { border-color: rgba(251, 146, 60, 0.5); background: rgba(251, 146, 60, 0.1); }
.osint-detect-chip.type-adresse .chip-label { color: #fb923c; }

.osint-detect-chip.type-ip { border-color: rgba(148, 163, 184, 0.5); background: rgba(148, 163, 184, 0.1); }
.osint-detect-chip.type-ip .chip-label { color: #94a3b8; }

.osint-profiles-section {
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
}

.osint-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.osint-section-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.osint-section-header h3 i {
    color: var(--primary);
}

.osint-profile-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.osint-profiles-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.osint-profile-card {
    background: rgba(12, 7, 29, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.osint-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(12, 7, 29, 0.3));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.osint-profile-identity h4 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.osint-profile-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.osint-confidence {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.osint-confidence.high {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.osint-confidence.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.osint-confidence.low {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.osint-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem;
}

.osint-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.osint-summary-item:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.12);
}

.osint-summary-item i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.osint-summary-item span {
    font-size: 0.88rem;
    word-break: break-word;
}

.osint-sources {
    padding: 0 1.25rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.osint-sources strong {
    color: var(--primary);
}

.osint-records-toggle {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    text-align: left;
    transition: var(--transition);
}

.osint-records-toggle:hover {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.05);
}

.osint-records-list {
    display: none;
    padding: 0 1.25rem 1.25rem;
}

.osint-records-list.open {
    display: block;
}

.osint-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .site-header {
        top: 0;
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }
    .user-pill .username,
    .header-btn .btn-label { display: none; }
    .search-limit .search-limit-text { display: none; }
    .search-hub-card { padding: 1.1rem; }
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    .search-input-wrapper input {
        width: 100%;
        padding-left: 1.25rem;
        font-size: 1rem;
    }
    .hero-search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .brand-tagline { display: none; }
    .mode-tab { font-size: 0.78rem; padding: 0.45rem 0.75rem; }
}

/* Profil utilisateur : couleur personnelle (n'affecte pas le thème global) */
#profileModal {
    --primary: var(--profile-color);
}

.profile-modal-container {
    max-width: 720px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: linear-gradient(165deg, rgba(18, 12, 36, 0.97) 0%, rgba(8, 10, 22, 0.98) 55%, rgba(12, 8, 24, 0.99) 100%);
}

.profile-modal-container .close-pricing-btn {
    z-index: 5;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(14, 165, 233, 0.06) 50%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.profile-modal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.12), transparent 45%);
    pointer-events: none;
}

.profile-modal-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-modal-avatar,
.profile-modal-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.profile-modal-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--profile-color), var(--accent-blue));
}

.profile-modal-avatar-img {
    object-fit: cover;
    display: block;
}

.profile-modal-avatar[hidden],
.profile-modal-avatar-img[hidden] {
    display: none !important;
}

.profile-avatar-upload {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-color), var(--accent-blue));
    border: 2px solid rgba(12, 8, 24, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    z-index: 2;
}

.profile-avatar-upload:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

.profile-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-action-btn--ghost {
    width: auto;
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.04);
}

.profile-action-btn--danger {
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.profile-action-btn--danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
}

.profile-modal-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(12, 8, 24, 0.95);
    border: 2px solid rgba(12, 8, 24, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    color: #34d399;
}

.profile-modal-identity {
    position: relative;
    min-width: 0;
}

.profile-modal-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--profile-color);
}

.profile-modal-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.profile-modal-meta {
    margin: 0.45rem 0 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-plan-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e9d5ff;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 1rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.85rem 0.65rem;
    text-align: center;
    transition: var(--transition);
}

.profile-stat-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.profile-stat-icon {
    display: block;
    font-size: 0.95rem;
    color: var(--profile-color);
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

.profile-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.profile-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.profile-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.75rem;
    max-height: min(52vh, 480px);
    overflow-y: auto;
}

.profile-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
}

.profile-panel-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.profile-panel-head i {
    color: var(--profile-color);
    font-size: 1rem;
}

.profile-panel-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.profile-panel-desc {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.profile-usage {
    margin-bottom: 0.85rem;
}

.profile-usage-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-usage-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--profile-color), var(--accent-blue));
    transition: width 0.5s ease;
}

.profile-usage-text {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.profile-perks {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.profile-perks li {
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.profile-perks li i {
    color: #34d399;
    font-size: 0.7rem;
}

.profile-action-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
}

.profile-action-btn--primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
}

.profile-action-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.profile-theme-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.profile-modal-container .theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.profile-modal-container .theme-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.profile-modal-container .theme-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 18px currentColor;
}

.profile-custom-color label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.profile-custom-color-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.profile-color-input-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    position: relative;
}

.profile-color-input-wrap input[type="color"] {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 60px;
    height: 60px;
    border: none;
    padding: 0;
    cursor: pointer;
}

.profile-custom-color-row .profile-action-btn {
    width: auto;
    flex: 1;
}

.profile-pwd-fields {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.profile-pwd-fields label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.45rem;
}

.profile-pwd-fields label:first-child {
    margin-top: 0;
}

.profile-pwd-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.profile-pwd-input:focus {
    border-color: var(--profile-color, #8b5cf6);
}

.profile-pwd-feedback {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.profile-pwd-feedback.ok {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.profile-pwd-feedback.err {
    color: #fca5a5;
    background: rgba(244, 63, 94, 0.12);
}

.profile-2fa-secret {
    display: block;
    margin: 0.5rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    word-break: break-all;
    color: #c4b5fd;
    user-select: all;
}

.profile-2fa-uri {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.72rem;
    color: #64748b;
    word-break: break-all;
}

.profile-activity-list {
    margin: 0;
}

.profile-activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-activity-row:last-child {
    border-bottom: none;
}

.profile-activity-row dt {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-activity-row dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.profile-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-shortcut {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.profile-shortcut:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #fff;
}

.profile-shortcut i {
    width: 1.1rem;
    color: var(--profile-color);
}

.profile-shortcut--danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.profile-shortcut--danger i {
    color: #f87171;
}

.profile-panel--subscription {
    grid-column: 1;
}

.profile-panel--appearance {
    grid-column: 2;
}

.profile-panel--activity {
    grid-column: 1;
}

.profile-panel--shortcuts {
    grid-column: 2;
}

@media (max-width: 700px) {
    .profile-modal-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .profile-panel--subscription,
    .profile-panel--appearance,
    .profile-panel--activity,
    .profile-panel--shortcuts {
        grid-column: 1;
    }

    .profile-modal-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .profile-modal-meta {
        justify-content: center;
    }
}



/* Wall of Shame */
.shame-header-btn {
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}
.shame-header-btn:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.shame-body .shame-container {
    max-width: 1200px;
}

.shame-hero {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    margin-bottom: 1.5rem;
}

.shame-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    margin-bottom: 1rem;
}

.shame-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #fff 0%, #fca5a5 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.shame-hero-bz {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.35em;
    margin: 0.35rem 0 0.75rem;
    text-shadow: 0 0 24px rgba(239, 68, 68, 0.6);
}

.shame-hero-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.shame-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.shame-add-toggle {
    background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.35);
}

.shame-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.shame-form-card {
    background: var(--surface);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
}

.shame-form-card h3 {
    margin-bottom: 1.25rem;
    color: #fecaca;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shame-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shame-field-full {
    grid-column: 1 / -1;
}

.shame-field span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.shame-field input,
.shame-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.shame-field textarea {
    resize: vertical;
    min-height: 100px;
}

.shame-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.shame-submit-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

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

.shame-card {
    position: relative;
    background: linear-gradient(165deg, rgba(40, 12, 12, 0.9), rgba(12, 8, 18, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shame-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(239, 68, 68, 0.25);
}

.shame-card-stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #fff;
    background: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transform: rotate(8deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.shame-card-photo-wrap {
    aspect-ratio: 4/3;
    background: #0a0a0f;
    overflow: hidden;
}

.shame-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.shame-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(180deg, #1a0a0a, #0d0d12);
}

.shame-card-body {
    padding: 1.1rem 1.15rem;
}

.shame-card-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fecaca;
    margin-bottom: 0.5rem;
}

.shame-card-reason {
    font-size: 0.85rem;
    color: #f87171;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shame-card-info-wrap {
    position: relative;
    max-height: 88px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: max-height 0.35s ease;
}

.shame-card.is-expanded .shame-card-info-wrap {
    max-height: 2000px;
}

.shame-card-info {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #eceaf4;
    background: rgba(8, 6, 16, 0.65);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 3px solid #ef4444;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.shame-card-info-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(6, 5, 12, 0.96));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
    border-radius: 0 0 8px 8px;
}

.shame-card.is-expanded .shame-card-info-fade {
    opacity: 0;
}

.shame-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shame-card-toggle:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.shame-card-toggle .shame-toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.shame-card.is-expanded .shame-card-toggle .shame-toggle-icon {
    transform: rotate(180deg);
}

.shame-card-toggle[hidden] {
    display: none;
}

.shame-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.shame-delete-btn {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    padding: 0.35rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.shame-delete-btn:hover {
    opacity: 1;
}

.shame-card-footer {
    text-align: center;
    padding: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(254, 202, 202, 0.7);
    background: rgba(239, 68, 68, 0.15);
    border-top: 1px solid rgba(239, 68, 68, 0.25);
}

.shame-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.shame-empty i {
    font-size: 3.5rem;
    opacity: 0.35;
    margin-bottom: 1rem;
    color: #ef4444;
}

.shame-empty-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.shame-footer-bz {
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 0.15em;
}

@media (max-width: 640px) {
    .shame-form-grid {
        grid-template-columns: 1fr;
    }
    .shame-hero-bz {
        letter-spacing: 0.2em;
    }
}

.shame-field-photo input[type="file"] {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.shame-photo-preview {
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.shame-photo-preview img {
    width: 140px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.shame-photo-change {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.shame-photo-change:hover {
    background: rgba(239, 68, 68, 0.28);
}

.shame-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shame-crop-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shame-crop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}

.shame-crop-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.shame-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.shame-crop-header h3 {
    font-size: 1.1rem;
    color: #fecaca;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shame-crop-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.35rem;
}

.shame-crop-close:hover {
    color: #fff;
}

.shame-crop-stage {
    max-height: min(55vh, 480px);
    background: #0a0a0f;
    border-radius: 10px;
    overflow: hidden;
}

.shame-crop-stage img {
    display: block;
    max-width: 100%;
}

.shame-crop-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.75rem 0 1rem;
}

.shame-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Générateurs */
.mode-tab-gen.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.generators-panel {
    max-width: 420px;
    margin: 0 auto;
}

.gen-subtabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gen-subtab {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(12, 8, 24, 0.6);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.gen-subtab:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.gen-subtab.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--text-main);
}

.gen-tool {
    display: none;
}

.gen-tool.active {
    display: block;
}

.gen-card {
    background: linear-gradient(165deg, rgba(28, 20, 52, 0.95), rgba(12, 8, 24, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--glass-shadow);
}

.gen-card-head {
    margin-bottom: 1.25rem;
}

.gen-card-head h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.gen-card-head p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gen-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.gen-segment-row {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gen-segment {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.gen-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gen-segment span {
    display: block;
    text-align: center;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-muted);
    transition: var(--transition);
}

.gen-segment input:checked + span {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--text-main);
}

.gen-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
}

.gen-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-main);
    cursor: pointer;
}

.gen-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gen-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.gen-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.gen-toggle input:checked + .gen-switch {
    background: var(--primary);
}

.gen-toggle input:checked + .gen-switch::after {
    transform: translateX(20px);
}

.gen-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.gen-slider-val {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.gen-slider {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 0.35rem;
}

.gen-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.gen-slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.gen-strength-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.gen-strength-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.gen-strength-badge[data-level="weak"] {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.gen-strength-badge[data-level="medium"] {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.4);
}

.gen-strength-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

.gen-strength-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease, background 0.3s;
}

.gen-strength-bar[data-level="weak"] {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.gen-strength-bar[data-level="medium"] {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.gen-output-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gen-output {
    flex: 1;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    font-size: 0.9rem;
}

.gen-output-mono {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

.gen-copy-btn {
    padding: 0 0.85rem;
    min-width: 72px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.gen-copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gen-submit-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transition: var(--transition);
}

.gen-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45);
}

/* Advanced multi-criteria search */
.advanced-search-toggle {
    margin-top: 0.75rem;
    text-align: center;
}

.advanced-toggle-btn {
    background: none;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    padding: 0.45rem 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.advanced-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.advanced-toggle-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.12);
}

.advanced-search-panel {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

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

.advanced-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.advanced-field label i {
    margin-right: 4px;
    color: var(--primary);
}

.adv-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    font-size: 0.85rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.adv-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.adv-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.advanced-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.hero-search-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.hero-search-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .advanced-grid {
        grid-template-columns: 1fr;
    }
}

