/* --- CSS VARIABLES & THEMING --- */
:root {
    --primary: #4338ca;
    --primary-hover: #4338CA;
    --primary-light: rgba(79, 70, 229, 0.1);

    --bg-main: #F9FAFB;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-input: #FFFFFF;

    --text-main: #111827;
    --text-muted: #6B7280;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(79, 70, 229, 0.5);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);

    --avatar-bg: #E5E7EB;

    --tag-bg: #F3F4F6;
    --tag-text: #374151;
}

[data-theme="dark"] {
    --primary: #6366f1;
    --primary-hover: #a5b4fc;
    --primary-light: rgba(99, 102, 241, 0.15);

    --bg-main: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-input: #1E293B;

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(99, 102, 241, 0.5);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

    --glass-border: 1px solid rgba(255, 255, 255, 0.05);

    --avatar-bg: #334155;

    --tag-bg: #334155;
    --tag-text: #CBD5E1;
}

/* --- RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Soft mesh gradient background */
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(147, 51, 234, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-color) 1px solid;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- MAIN CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.app-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- GLASS PANELS --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

/* --- FORM COMPONENTS --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

select {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: all 0.2s;
    outline: none;
}

[data-theme="dark"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F8FAFC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

option {
    background-color: var(--bg-input);
    color: var(--text-main);
}

.form-actions {
    text-align: center;
}

/* --- BUTTONS --- */
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.39);
}

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

.secondary-btn {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

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

/* --- LOADER --- */
.loader-container {
    text-align: center;
    padding: 4rem 0;
    animation: fadeIn 0.3s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s infinite linear;
}

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

/* --- RESULTS SECTION --- */
.results-section {
    margin-top: 4rem;
    animation: slideUp 0.6s ease-out;
}

.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-actions h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

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

.edit-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    border-radius: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

/* --- PERSONA CARDS GRID --- */
.personas-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.persona-card {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header with unified layout */
.persona-header {
    background: linear-gradient(135deg, var(--primary-light), transparent);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Decorative quote in header */
.persona-quote-top {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
    padding: 0 1rem;
}

.persona-quote-top::before,
.persona-quote-top::after {
    content: '"';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: serif;
    position: absolute;
    top: -0.5rem;
}

.persona-quote-top::before {
    left: -0.5rem;
}

.persona-quote-top::after {
    right: -0.5rem;
}

.persona-avatar-wrapper {
    position: relative;
    margin: 0 auto 1rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.persona-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.persona-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.persona-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}

.persona-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.persona-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.persona-section h4 i {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--primary);
}

.traits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.traits-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.25rem;
}

.trait-label {
    font-weight: 600;
    color: var(--text-muted);
}

.trait-value {
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Tags for channels and behaviors */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Bullet points for needs, objections etc */
.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bullet-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bullet-list li i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Content Editable */
[contenteditable="true"] {
    outline: none;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 0.25rem;
    cursor: text;
}

[contenteditable="true"]:hover {
    background-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-light);
}

[contenteditable="true"]:focus {
    background-color: var(--bg-input);
    box-shadow: 0 0 0 2px var(--primary);
}

/* --- SOURCES PANEL --- */
.sources-panel {
    margin-top: 2rem;
}

.sources-panel h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sources-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.sources-list li {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    align-items: center;
    transition: transform 0.2s;
}

.sources-list li:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.sources-list a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.sources-list a:hover {
    text-decoration: underline;
}

.sources-list a i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* --- 5 TYPES DE DESIGN (MODERN = DEFAULT) --- */

/* 1. Corporate (Sérieux & Pro) */
.design-corporate {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #94a3b8;
    background: #ffffff;
    font-family: 'Georgia', serif;
    color: #0f172a;
}
[data-theme="dark"] .design-corporate {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}
.design-corporate .persona-header {
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 4px solid #3b82f6; /* Trust blue */
    padding-top: 2.5rem;
}
.design-corporate .persona-name,
.design-corporate .persona-quote-top,
.design-corporate .persona-role {
    color: #f8fafc;
}
.design-corporate .persona-name {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.design-corporate .persona-avatar-wrapper {
    border-radius: 0;
    border: 3px solid #3b82f6;
    box-shadow: none;
    background: #cbd5e1;
}
.design-corporate h4 {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
[data-theme="dark"] .design-corporate h4 {
    color: #f8fafc;
    border-bottom-color: #334155;
}
.design-corporate h4 i {
    color: #3b82f6;
}
.design-corporate .tag {
    border-radius: 0;
    background: transparent;
    border: 1px solid #64748b;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
[data-theme="dark"] .design-corporate .tag {
    color: #e2e8f0;
    border-color: #94a3b8;
}
.design-corporate .traits-list li {
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid #f1f5f9;
}
[data-theme="dark"] .design-corporate .traits-list li {
    border-bottom-color: #1e293b;
}

/* 2. Creative (Neo-Brutalism & Audacieux) */
.design-creative {
    border: 4px solid #111827;
    box-shadow: 12px 12px 0px #111827;
    border-radius: 0;
    background: #fdfba8; /* Pastel yellow base */
    color: #111827; /* Explicitly dark text */
}
[data-theme="dark"] .design-creative {
    box-shadow: 12px 12px 0px #6366f1;
    border-color: #6366f1;
    background: #1e1b4b; /* Dark indigo */
    color: #e0e7ff; /* Very light indigo */
}
.design-creative .persona-header {
    background: #ff90e8; /* Vibrant pink */
    border-bottom: 4px solid #111827;
}
[data-theme="dark"] .design-creative .persona-header {
    background: #4f46e5;
    border-bottom-color: #6366f1;
}
.design-creative .persona-quote-top {
    color: #111827;
    font-weight: 800;
    background: #ffffff;
    border: 3px solid #111827;
    padding: 1rem;
    box-shadow: 4px 4px 0 #111827;
    transform: rotate(-2deg);
    margin-bottom: 2rem;
}
.design-creative .persona-quote-top::before,
.design-creative .persona-quote-top::after {
    display: none;
}
.design-creative .persona-avatar-wrapper {
    border-radius: 50%;
    border-color: #111827;
    border-width: 4px;
    border-style: solid;
    box-shadow: 6px 6px 0px #111827;
    background: #a3e635; /* Lime green */
    transform: scale(1.1);
}
[data-theme="dark"] .design-creative .persona-avatar-wrapper {
    border-color: #6366f1;
    box-shadow: 6px 6px 0 #6366f1;
}
.design-creative .tag {
    background: #3b82f6; /* Bright blue */
    color: #ffffff;
    border: 2px solid #111827;
    box-shadow: 3px 3px 0 #111827;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
}
[data-theme="dark"] .design-creative .tag {
    border-color: #ffffff;
    box-shadow: 3px 3px 0 #ffffff;
}
.design-creative .persona-name {
    letter-spacing: -1px;
    font-size: 2rem;
    text-shadow: 2px 2px 0px #ffffff;
    color: #111827;
    margin-top: 1rem;
}
[data-theme="dark"] .design-creative .persona-name {
    color: #ffffff;
    text-shadow: 2px 2px 0px #312e81;
}
.design-creative .persona-role {
    background: #111827;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    transform: rotate(1deg);
}
[data-theme="dark"] .design-creative .persona-role {
    background: #c7d2fe;
    color: #111827;
}

/* 3. Minimalist (Epuré, Editorial) */
.design-minimalist {
    box-shadow: none;
    border: none;
    border-top: 4px solid #111827;
    background: #ffffff;
    color: #111827;
    border-radius: 0;
    padding: 1rem;
}
[data-theme="dark"] .design-minimalist {
    background: #0f172a;
    border-top: 4px solid #f8fafc;
    color: #f8fafc;
}
.design-minimalist .persona-header {
    background: transparent;
    border-bottom: none;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem 0;
}
.design-minimalist .persona-avatar-wrapper {
    box-shadow: none;
    border: none;
    background: transparent;
    margin: 0 0 1.5rem 0;
    width: 5rem;
    height: 5rem;
    filter: grayscale(100%);
}
.design-minimalist .persona-name {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.design-minimalist .persona-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
}
.design-minimalist .persona-quote-top {
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 400;
    padding: 0;
    text-align: left;
    border-left: 3px solid #e5e7eb;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}
.design-minimalist .persona-quote-top::before,
.design-minimalist .persona-quote-top::after {
    display: none;
}
.design-minimalist .traits-list li, 
.design-minimalist .bullet-list li {
    font-weight: 400;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.5rem 0;
}
[data-theme="dark"] .design-minimalist .traits-list li,
[data-theme="dark"] .design-minimalist .bullet-list li {
    border-bottom-color: #1e293b;
}
.design-minimalist .tag {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0;
    color: #374151;
}
[data-theme="dark"] .design-minimalist .tag {
    color: #cbd5e1;
    border-color: #475569;
}
.design-minimalist .persona-section h4 {
    border-bottom: 2px solid #111827;
    padding-bottom: 0.25rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #111827;
}
[data-theme="dark"] .design-minimalist .persona-section h4 {
    border-bottom-color: #f8fafc;
    color: #f8fafc;
}
.design-minimalist .persona-section h4 i {
    display: none;
}
.design-minimalist .persona-body {
    padding: 0;
}

/* 4. Playful (Ludique - Style Scrapbook & Néo-Brutalisme 3D) */
.design-playful {
    border: 4px solid #111827 !important;
    box-shadow: 10px 10px 0px #111827 !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #a7f3d0 0%, #fbcfe8 50%, #c084fc 100%) !important;
    color: #111827 !important;
    position: relative;
    overflow: visible !important;
    padding: 0.5rem !important;
}
[data-theme="dark"] .design-playful {
    background: linear-gradient(135deg, #064e3b 0%, #831843 50%, #581c87 100%) !important;
    border-color: #ffffff !important;
    box-shadow: 10px 10px 0px #c084fc !important;
    color: #ffffff !important;
}
.design-playful .persona-header {
    background: #ffffff !important;
    border: 3px solid #111827 !important;
    border-radius: 18px !important;
    margin: 1rem 1rem 0 1rem !important;
    box-shadow: 6px 6px 0px #111827 !important;
    padding: 2rem 1.5rem 1.5rem 1.5rem !important;
    position: relative;
}
[data-theme="dark"] .design-playful .persona-header {
    background: #1e293b !important;
    border-color: #ffffff !important;
    box-shadow: 6px 6px 0px #ffffff !important;
}
.design-playful .persona-avatar-wrapper {
    width: 6.5rem !important;
    height: 6.5rem !important;
    border: 4px solid #111827 !important;
    background: #fef08a !important;
    box-shadow: 5px 5px 0px #111827 !important;
    border-radius: 16px !important;
    transform: rotate(-3deg) scale(1.05) !important;
    transition: transform 0.2s ease;
    z-index: 10;
}
[data-theme="dark"] .design-playful .persona-avatar-wrapper {
    border-color: #ffffff !important;
    box-shadow: 5px 5px 0px #ffffff !important;
    background: #312e81 !important;
}
.design-playful .persona-avatar-wrapper:hover {
    transform: rotate(0deg) scale(1.1) !important;
}
.design-playful .persona-name {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    color: #111827 !important;
    font-size: 1.8rem !important;
    margin-top: 0.75rem !important;
}
[data-theme="dark"] .design-playful .persona-name {
    color: #ffffff !important;
}
.design-playful .persona-role {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    background: #f472b6 !important;
    color: #111827 !important;
    border: 2px solid #111827 !important;
    box-shadow: 2px 2px 0px #111827 !important;
    border-radius: 8px !important;
    padding: 0.3rem 0.75rem !important;
    display: inline-block !important;
    transform: rotate(1.5deg) !important;
    margin-top: 0.25rem !important;
}
[data-theme="dark"] .design-playful .persona-role {
    background: #c084fc !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 2px 2px 0px #ffffff !important;
}
.design-playful .persona-quote-top {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Outfit', sans-serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
    background: #e0f2fe !important;
    color: #111827 !important;
    border: 2px solid #111827 !important;
    border-radius: 14px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    box-shadow: 4px 4px 0px #111827 !important;
    transform: rotate(-1deg) !important;
}
[data-theme="dark"] .design-playful .persona-quote-top {
    background: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 4px 4px 0px #ffffff !important;
}
.design-playful .persona-quote-top::before,
.design-playful .persona-quote-top::after {
    display: none !important;
}
.design-playful .persona-body {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 3px solid #111827 !important;
    border-radius: 18px !important;
    margin: 1rem !important;
    box-shadow: 6px 6px 0px #111827 !important;
    padding: 1.5rem !important;
}
[data-theme="dark"] .design-playful .persona-body {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: #ffffff !important;
    box-shadow: 6px 6px 0px #ffffff !important;
}
.design-playful .persona-section h4 {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    color: #111827 !important;
    background: #fef08a !important;
    border: 2px solid #111827 !important;
    box-shadow: 3px 3px 0px #111827 !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transform: rotate(-1.5deg) !important;
    margin-bottom: 1rem !important;
}
[data-theme="dark"] .design-playful .persona-section h4 {
    border-color: #ffffff !important;
    box-shadow: 3px 3px 0px #ffffff !important;
    color: #ffffff !important;
    background: #b45309 !important;
}
.design-playful .persona-section:nth-child(even) h4 {
    background: #fed7aa !important;
    transform: rotate(1.5deg) !important;
}
[data-theme="dark"] .design-playful .persona-section:nth-child(even) h4 {
    background: #047857 !important;
}
.design-playful .persona-section h4 i {
    color: #111827 !important;
}
[data-theme="dark"] .design-playful .persona-section h4 i {
    color: #ffffff !important;
}
.design-playful .traits-list li {
    border-bottom: 2px dashed #111827 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    font-size: 0.9rem !important;
}
[data-theme="dark"] .design-playful .traits-list li {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
.design-playful .trait-label {
    color: #4b5563 !important;
}
[data-theme="dark"] .design-playful .trait-label {
    color: #cbd5e1 !important;
}
.design-playful .trait-value {
    color: #111827 !important;
}
[data-theme="dark"] .design-playful .trait-value {
    color: #ffffff !important;
}
.design-playful .tag {
    background: #ffffff !important;
    color: #111827 !important;
    border: 2px solid #111827 !important;
    box-shadow: 2px 2px 0px #111827 !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
}
[data-theme="dark"] .design-playful .tag {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 2px 2px 0px #ffffff !important;
}
.design-playful .bullet-list li {
    color: #111827 !important;
    font-weight: 600 !important;
}
[data-theme="dark"] .design-playful .bullet-list li {
    color: #ffffff !important;
}
.design-playful .bullet-list li i {
    color: #e11d48 !important;
}
.design-playful .insight-box {
    background: #fef9c3 !important;
    border: 2px solid #111827 !important;
    box-shadow: 5px 5px 0px #111827 !important;
    border-radius: 4px !important;
    padding: 1.5rem 1rem 1rem 1rem !important;
    transform: rotate(1deg) !important;
    margin-top: 1.5rem !important;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Outfit', sans-serif !important;
    color: #111827 !important;
    position: relative !important;
    font-size: 0.85rem !important;
}
[data-theme="dark"] .design-playful .insight-box {
    background: #3f3f46 !important;
    border-color: #ffffff !important;
    box-shadow: 5px 5px 0px #ffffff !important;
    color: #ffffff !important;
}
.design-playful .persona-section:nth-child(even) .insight-box {
    background: #ffe4e6 !important;
    transform: rotate(-1deg) !important;
}
[data-theme="dark"] .design-playful .persona-section:nth-child(even) .insight-box {
    background: #27272a !important;
}
.design-playful .insight-box::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 70px;
    height: 20px;
    background: rgba(251, 191, 36, 0.5) !important;
    border-left: 1px dashed rgba(0,0,0,0.15);
    border-right: 1px dashed rgba(0,0,0,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    z-index: 5;
}
[data-theme="dark"] .design-playful .insight-box::after {
    background: rgba(167, 139, 250, 0.5) !important;
}
.design-playful .persona-section:nth-child(even) .insight-box::after {
    background: rgba(244, 114, 182, 0.5) !important;
}
.design-playful .single-export-png {
    background: #ffffff !important;
    border: 2px solid #111827 !important;
    box-shadow: 2px 2px 0px #111827 !important;
    color: #111827 !important;
    font-weight: 800 !important;
    font-family: inherit !important;
}
[data-theme="dark"] .design-playful .single-export-png {
    background: #1e293b !important;
    border-color: #ffffff !important;
    box-shadow: 2px 2px 0px #ffffff !important;
    color: #ffffff !important;
}
.design-playful .single-export-png:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
}

/* --- FOOTER --- */
.app-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* --- EXPORT STYLES (Print & html2canvas) --- */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 2rem;
    background: #ffffff;
}

.pdf-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #4338ca;
}

.pdf-header a {
    color: #4338ca;
    text-decoration: none;
    font-weight: 600;
}

.pdf-header a:hover {
    text-decoration: underline;
}


/* When exporting PNG (force light mode) */
.export-mode-png {
    --primary: #4338ca !important;
    --primary-light: rgba(79, 70, 229, 0.1) !important;
    --bg-main: #F9FAFB !important;
    --bg-card: rgba(255, 255, 255, 1) !important;
    --bg-input: #FFFFFF !important;
    --text-main: #111827 !important;
    --text-muted: #6B7280 !important;
    --border-color: #e5e7eb !important;
    --avatar-bg: #E5E7EB !important;
    --tag-bg: #F3F4F6 !important;
    --tag-text: #374151 !important;

    background: #ffffff !important;
    color: #111827 !important;
}

/* When exporting PDF (keep current theme colors but remove shadows/glass) */
.export-mode-pdf .glass-panel,
.export-mode-pdf .persona-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Hide specific elements during export */
.export-mode-png .hide-on-export,
.export-mode-pdf .hide-on-export {
    display: none !important;
}

.export-mode-png .glass-panel {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

.export-mode-png .persona-card {
    /* This prevents page break inside cards when exported to PDF if supported */
    page-break-inside: avoid;
}

.export-mode-pdf .persona-card {
    page-break-inside: avoid;
}

.export-mode-png [contenteditable],
.export-mode-pdf [contenteditable] {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.export-mode-png .text-main,
.export-mode-png h3,
.export-mode-png h4,
.export-mode-png .persona-name {
    color: #111827 !important;
}

.export-mode-png .text-muted,
.export-mode-png .trait-label,
.export-mode-png .persona-quote-top {
    color: #6b7280 !important;
}

/* Add specific fixes for html2canvas rendering quirks */
.export-mode-png *,
.export-mode-pdf * {
    -webkit-text-fill-color: initial !important;
    /* gradient texts break in canvas */
}

/* Add specific fixes for html2canvas rendering quirks */
.export-mode * {
    -webkit-text-fill-color: initial !important;
    /* gradient texts break in canvas */
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .app-header h1 {
        font-size: 2rem;
    }

    .personas-grid {
        grid-template-columns: 1fr;
    }
}
/* Extracted from index.html */

.grimont-global-header {
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85); /* Slightly darker for better readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* slightly stronger border */
    padding: 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.grimont-global-header * {
    box-sizing: border-box;
}
.grimont-global-header .ggh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ggh-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.ggh-logo-group {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ggh-logo-group:hover {
    transform: scale(1.02);
}
.ggh-logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}
.ggh-logo-text {
    font-family: 'Space Grotesk', monospace;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.05em;
    display: none;
}
.ggh-logo-text span {
    color: #00f2ff;
}
@media (min-width: 640px) {
    .ggh-logo-text { display: block; }
}
.ggh-separator {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
}
@media (min-width: 768px) {
    .ggh-separator { display: block; }
}
.ggh-app-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ggh-app-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ggh-app-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2dd4bf;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.ggh-app-name {
    font-weight: 700;
    color: white;
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    letter-spacing: 0.02em;
}
.ggh-app-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    max-width: 600px;
    display: none;
    margin: 4px 0 0 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 300;
}
@media (min-width: 1024px) {
    .ggh-app-desc { display: block; }
}
.ggh-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ggh-right button {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.ggh-right button:hover {
    background: rgba(30, 41, 59, 1) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}



        @keyframes pulse-border {
            0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
            70% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
            100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
        }
        [data-theme="dark"] .highlight-switcher {
            border-color: #818cf8 !important;
        }
        [data-theme="dark"] .highlight-switcher span {
            color: #818cf8 !important;
        }
        [data-theme="dark"] .highlight-switcher i {
            color: #818cf8 !important;
        }

/* --- INSIGHT BOX (RECOMMENDATIONS & SCENARIOS) --- */
.insight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-top: 0.5rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.design-corporate .insight-box {
    background: #f8fafc;
    border-radius: 0;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #3b82f6; /* trust blue */
    font-family: 'Georgia', serif;
}
[data-theme="dark"] .design-corporate .insight-box {
    background: #1e293b;
    border-color: #475569;
    border-left-color: #3b82f6;
}

.design-creative .insight-box {
    background: #ffffff;
    border: 3px solid #111827;
    box-shadow: 4px 4px 0 #111827;
    border-radius: 0;
    color: #111827;
    font-family: inherit;
    font-weight: 500;
}
[data-theme="dark"] .design-creative .insight-box {
    background: #1e1b4b;
    border-color: #6366f1;
    box-shadow: 4px 4px 0 #6366f1;
    color: #e0e7ff;
}

.design-minimalist .insight-box {
    background: transparent;
    border: none;
    border-top: 1px solid #111827;
    border-bottom: 1px solid #111827;
    border-radius: 0;
    padding: 0.75rem 0;
    font-family: inherit;
}
[data-theme="dark"] .design-minimalist .insight-box {
    border-top-color: #f8fafc;
    border-bottom-color: #f8fafc;
}

/* --- DESIGN TABS SWITCHER --- */
.design-switcher-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.switcher-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.switcher-label i {
    width: 1.1rem;
    height: 1.1rem;
}

.design-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.design-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-tab i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.design-tab:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.design-tab:hover i {
    color: var(--primary);
}

.design-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.design-tab.active i {
    color: white;
}

/* 5. Glassmorphism / Futuriste (Cockpit HUD & Hologramme) */
.design-glassmorphism {
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    background-color: rgba(9, 14, 26, 0.95) !important;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 70%),
        linear-gradient(rgba(0, 242, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 20px 20px, 20px 20px !important;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.15), inset 0 0 15px rgba(0, 242, 255, 0.05) !important;
    color: #e2e8f0 !important;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .design-glassmorphism {
    background-color: rgba(5, 7, 15, 0.98) !important;
    border-color: rgba(0, 242, 255, 0.25) !important;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.25), inset 0 0 20px rgba(0, 242, 255, 0.08) !important;
}
/* HUD corner brackets */
.design-glassmorphism::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(0, 242, 255, 0.1);
    background: 
        linear-gradient(to right, #00f2ff 12px, transparent 12px) 0 0,
        linear-gradient(to bottom, #00f2ff 12px, transparent 12px) 0 0,
        linear-gradient(to left, #00f2ff 12px, transparent 12px) 100% 0,
        linear-gradient(to bottom, #00f2ff 12px, transparent 12px) 100% 0,
        linear-gradient(to right, #00f2ff 12px, transparent 12px) 0 100%,
        linear-gradient(to top, #00f2ff 12px, transparent 12px) 0 100%,
        linear-gradient(to left, #00f2ff 12px, transparent 12px) 100% 100%,
        linear-gradient(to top, #00f2ff 12px, transparent 12px) 100% 100%;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 5;
}
/* Scanning Laser Line */
@keyframes hud-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
.design-glassmorphism::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 12px #00f2ff, 0 0 20px #00f2ff;
    animation: hud-scan 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
    opacity: 0.7;
}
.design-glassmorphism .persona-header {
    background: rgba(10, 15, 30, 0.7) !important;
    border-bottom: 2px solid rgba(0, 242, 255, 0.2) !important;
    position: relative;
    padding-top: 3rem !important;
}
.design-glassmorphism .persona-header::before {
    content: 'HUD // SYS_STATUS: NOMINAL';
    position: absolute;
    top: 12px;
    left: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    color: #00f2ff;
    letter-spacing: 2px;
    text-shadow: 0 0 4px rgba(0, 242, 255, 0.5);
}
.design-glassmorphism .persona-header::after {
    content: 'CORE_v4.2.9 // RECON_ACTIVE';
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    color: #ec4899;
    letter-spacing: 2px;
    text-shadow: 0 0 4px rgba(236, 72, 153, 0.5);
}
.design-glassmorphism .persona-avatar-wrapper {
    width: 6.5rem !important;
    height: 6.5rem !important;
    border-radius: 50% !important;
    border: 2px solid #00f2ff !important;
    background: rgba(9, 14, 26, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5), inset 0 0 10px rgba(0, 242, 255, 0.3) !important;
    position: relative !important;
    z-index: 10;
}
/* Rotating target reticle */
.design-glassmorphism .persona-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed #ec4899;
    border-radius: 50%;
    animation: spin 12s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
}
/* Additional overlay target bracket */
.design-glassmorphism .persona-avatar-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50%;
    background: 
        linear-gradient(to right, #00f2ff 6px, transparent 6px) 0 0,
        linear-gradient(to bottom, #00f2ff 6px, transparent 6px) 0 0,
        linear-gradient(to left, #00f2ff 6px, transparent 6px) 100% 100%,
        linear-gradient(to top, #00f2ff 6px, transparent 6px) 100% 100%;
    background-size: 8px 8px;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: spin-reverse 20s linear infinite;
}
.design-glassmorphism .persona-name {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.8), 0 0 20px rgba(0, 242, 255, 0.4) !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    letter-spacing: 1px;
}
.design-glassmorphism .persona-role {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    color: #00f2ff !important;
    background: rgba(0, 242, 255, 0.1) !important;
    border: 1px solid rgba(0, 242, 255, 0.3) !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 4px !important;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    display: inline-block !important;
}
.design-glassmorphism .persona-quote-top {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.9rem !important;
    color: #e2e8f0 !important;
    background: rgba(0, 242, 255, 0.05) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    border-left: 4px solid #ec4899 !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 4px !important;
    position: relative !important;
    font-style: italic;
}
.design-glassmorphism .persona-quote-top::before {
    content: 'TRANSCRIPTION_INPUT:';
    position: absolute;
    top: -8px;
    left: 10px;
    font-size: 0.55rem;
    font-weight: bold;
    background: #090e1a;
    color: #ec4899;
    padding: 0 4px;
    letter-spacing: 1px;
}
.design-glassmorphism .persona-quote-top::after {
    display: none !important;
}
.design-glassmorphism .tag {
    background: rgba(0, 242, 255, 0.08) !important;
    border: 1px solid rgba(0, 242, 255, 0.3) !important;
    color: #00f2ff !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.75rem !important;
    border-radius: 2px !important;
    text-shadow: 0 0 3px rgba(0, 242, 255, 0.3);
}
.design-glassmorphism h4 {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.85rem !important;
    color: #00f2ff !important;
    background: rgba(0, 242, 255, 0.08) !important;
    border-left: 4px solid #00f2ff !important;
    padding: 0.4rem 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.4);
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: bold !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%) !important;
}
.design-glassmorphism h4 i {
    color: #00f2ff !important;
    filter: drop-shadow(0 0 3px #00f2ff);
}
.design-glassmorphism .traits-list li {
    border-bottom: 1px dashed rgba(0, 242, 255, 0.15) !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}
.design-glassmorphism .trait-label {
    color: #00f2ff !important;
    opacity: 0.85;
}
.design-glassmorphism .trait-value {
    color: #ffffff !important;
}
.design-glassmorphism .bullet-list li {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.85rem !important;
    color: #e2e8f0 !important;
}
.design-glassmorphism .bullet-list li i {
    color: #ec4899 !important;
    filter: drop-shadow(0 0 3px #ec4899);
}
.design-glassmorphism .insight-box {
    background: rgba(10, 15, 30, 0.7) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    border-left: 4px solid #00f2ff !important;
    font-family: 'Courier New', Courier, monospace !important;
    color: #e2e8f0 !important;
    font-size: 0.85rem !important;
    border-radius: 4px !important;
    padding: 1.25rem 1rem 1rem 1rem !important;
    position: relative !important;
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.05) !important;
}
.design-glassmorphism .insight-box::before {
    content: ' [ DATA_READOUT_SEC_07 ]';
    font-size: 0.6rem;
    color: #ec4899;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 0 0 3px rgba(236, 72, 153, 0.3);
}
.design-glassmorphism .single-export-png {
    background: transparent !important;
    border: 1px solid #00f2ff !important;
    color: #00f2ff !important;
    border-radius: 4px !important;
    font-family: 'Courier New', Courier, monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
}
.design-glassmorphism .single-export-png:hover {
    background: rgba(0, 242, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4) !important;
}

/* 6. Rétro / Vintage (Journal ancien, double cadre & sepia) */
.design-vintage {
    border-radius: 0.5rem;
    border: 4px double #8B5A2B !important;
    background: #FDFBF7 !important;
    color: #3e2723 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    padding: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(139, 90, 43, 0.15) !important;
}
.design-vintage .persona-header {
    background: #F4EBE1 !important;
    border-bottom: 2px solid #8B5A2B !important;
    padding: 2rem 1.5rem !important;
}
.design-vintage .persona-avatar-wrapper {
    border-radius: 0.25rem !important;
    border: 2px solid #8B5A2B !important;
    background: #EEDC82 !important;
    padding: 2px !important;
    filter: sepia(70%) contrast(90%) !important;
}
.design-vintage .persona-name {
    font-family: 'Times New Roman', serif !important;
    font-weight: 700 !important;
    color: #4E2700 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #8B5A2B !important;
    padding-bottom: 0.25rem !important;
    margin-top: 0.75rem !important;
}
.design-vintage .persona-role {
    font-family: inherit !important;
    font-style: italic !important;
    font-size: 1.05rem !important;
    color: #8B5A2B !important;
    margin-top: 0.25rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.design-vintage .persona-quote-top {
    font-family: inherit !important;
    font-style: italic !important;
    font-size: 1.05rem !important;
    color: #5C4033 !important;
    line-height: 1.4 !important;
    border-bottom: 1px dashed rgba(139, 90, 43, 0.4) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
}
.design-vintage .persona-quote-top::before,
.design-vintage .persona-quote-top::after {
    color: #8B5A2B !important;
}
.design-vintage h4 {
    font-family: inherit !important;
    color: #4E2700 !important;
    border-bottom: 1px solid #8B5A2B !important;
    padding-bottom: 0.25rem !important;
    font-weight: bold !important;
    text-transform: capitalize !important;
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
}
.design-vintage h4 i {
    color: #8B5A2B !important;
}
.design-vintage .traits-list li {
    border-bottom: 1px dashed rgba(139, 90, 43, 0.25) !important;
    font-family: inherit !important;
}
.design-vintage .tag {
    border-radius: 0 !important;
    background: #EEDC82 !important;
    color: #3e2723 !important;
    border: 1px solid #8B5A2B !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    box-shadow: none !important;
}
.design-vintage .bullet-list li i {
    color: #8B5A2B !important;
}
.design-vintage .insight-box {
    background: #F5EFEB !important;
    border: 1px solid #8B5A2B !important;
    border-left: 6px solid #8B5A2B !important;
    border-radius: 0 !important;
    color: #3e2723 !important;
    font-family: inherit !important;
    font-style: italic !important;
}
[data-theme="dark"] .design-vintage {
    background: #1C1510 !important;
    border-color: #CD853F !important;
    color: #F5EBE1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .design-vintage .persona-header {
    background: #2D2118 !important;
    border-bottom-color: #CD853F !important;
}
[data-theme="dark"] .design-vintage .persona-avatar-wrapper {
    border-color: #CD853F !important;
}
[data-theme="dark"] .design-vintage .persona-name {
    color: #F4EBE1 !important;
    border-bottom-color: #CD853F !important;
}
[data-theme="dark"] .design-vintage .persona-role {
    color: #CD853F !important;
}
[data-theme="dark"] .design-vintage h4 {
    color: #F4EBE1 !important;
    border-bottom-color: #CD853F !important;
}
[data-theme="dark"] .design-vintage h4 i {
    color: #CD853F !important;
}
[data-theme="dark"] .design-vintage .tag {
    background: #2D2118 !important;
    color: #F4EBE1 !important;
    border-color: #CD853F !important;
}
[data-theme="dark"] .design-vintage .insight-box {
    background: #231B15 !important;
    border-color: #CD853F !important;
    border-left-color: #CD853F !important;
    color: #F4EBE1 !important;
}

/* 7. Cyberpunk Tech (Néon, Monospace sombre & Grille futuriste) */
.design-cyberpunk {
    border-radius: 0 !important;
    border: 2px solid #00ff66 !important;
    background: #0b0f19 !important;
    color: #00ff66 !important;
    font-family: 'Courier New', Courier, monospace !important;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.25), inset 0 0 20px rgba(0, 255, 102, 0.1) !important;
    clip-path: polygon(0px 0px, 100% 0px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0px 100%) !important;
}
.design-cyberpunk .persona-header {
    background: #060911 !important;
    border-bottom: 2px solid #ff0055 !important;
    padding: 2.5rem 1.5rem !important;
}
.design-cyberpunk .persona-name {
    font-family: inherit !important;
    font-weight: 900 !important;
    color: #00e5ff !important;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5) !important;
    text-transform: uppercase !important;
    background: none !important;
    -webkit-text-fill-color: #00e5ff !important;
}
.design-cyberpunk .persona-role {
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    background: #ff0055 !important;
    color: #000000 !important;
    padding: 0.15rem 0.5rem !important;
    display: inline-block !important;
    margin-top: 0.5rem !important;
    border-radius: 0 !important;
    border: none !important;
}
.design-cyberpunk .persona-avatar-wrapper {
    border-radius: 0 !important;
    border: 2px solid #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
    background: #0f172a !important;
}
.design-cyberpunk .persona-quote-top {
    font-family: inherit !important;
    font-size: 0.9rem !important;
    color: #ff0055 !important;
    border: 1px solid #ff0055 !important;
    background: rgba(255, 0, 85, 0.05) !important;
    padding: 0.75rem 1rem !important;
    box-shadow: 4px 4px 0 rgba(255, 0, 85, 0.2) !important;
    font-style: italic;
}
.design-cyberpunk .persona-quote-top::before,
.design-cyberpunk .persona-quote-top::after {
    display: none !important;
}
.design-cyberpunk h4 {
    font-family: inherit !important;
    color: #00e5ff !important;
    border-bottom: 1px dashed #00e5ff !important;
    padding-bottom: 0.25rem !important;
    letter-spacing: 0.05em !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
}
.design-cyberpunk h4 i {
    color: #00e5ff !important;
}
.design-cyberpunk .traits-list li {
    border-bottom: 1px dashed rgba(0, 255, 102, 0.2) !important;
    color: #00ff66 !important;
    font-family: inherit !important;
}
.design-cyberpunk .trait-label {
    color: #88ffaa !important;
}
.design-cyberpunk .trait-value {
    color: #ffffff !important;
}
.design-cyberpunk .tag {
    border-radius: 0 !important;
    background: rgba(0, 229, 255, 0.1) !important;
    color: #00e5ff !important;
    border: 1px solid #00e5ff !important;
    font-family: inherit !important;
    font-size: 0.75rem !important;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.1) !important;
}
.design-cyberpunk .bullet-list li i {
    color: #ff0055 !important;
}
.design-cyberpunk .bullet-list li span {
    color: #ffffff !important;
}
.design-cyberpunk .insight-box {
    background: rgba(0, 255, 102, 0.05) !important;
    border: 1px solid #00ff66 !important;
    border-left: 6px solid #00ff66 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.05) !important;
}
.design-cyberpunk .single-export-png {
    background: transparent !important;
    border: 1px solid #00e5ff !important;
    color: #00e5ff !important;
    border-radius: 0 !important;
}
.design-cyberpunk .single-export-png:hover {
    background: #00e5ff !important;
    color: #000000 !important;
    box-shadow: 0 0 10px #00e5ff !important;
}


    
