:root {
    /* Color Palette */
    --bg-base: #0a0a0f;
    --bg-surface: rgba(20, 20, 30, 0.6);
    --bg-surface-hover: rgba(30, 30, 45, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    
    --accent-primary: #34d399; /* Vert logo */
    --accent-hover: #10b981;
    --accent-glow: rgba(52, 211, 153, 0.4);
    
    --premium-color: #f1c40f;
    --premium-glow: rgba(241, 196, 15, 0.3);

    --free-color: #95a5a6;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* --- BACKGROUND EFFECTS --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-glow);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(138, 43, 226, 0.3); /* Purple */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes stat-pop {
    0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
    60%  { opacity: 1; transform: scale(1.04) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes stat-glow-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(52,211,153,0.15), 0 8px 32px rgba(0,0,0,0.3); }
    50%       { box-shadow: 0 0 40px rgba(52,211,153,0.35), 0 8px 32px rgba(0,0,0,0.3); }
}

@keyframes stat-glow-pulse-gold {
    0%, 100% { box-shadow: 0 0 18px rgba(241,196,15,0.15), 0 8px 32px rgba(0,0,0,0.3); }
    50%       { box-shadow: 0 0 40px rgba(241,196,15,0.35), 0 8px 32px rgba(0,0,0,0.3); }
}

.stat-reveal {
    animation: stat-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
               stat-glow-pulse 3s ease-in-out 0.7s infinite;
}

.stat-reveal-delay {
    animation-delay: 0.2s, 0.9s;
    animation-name: stat-pop, stat-glow-pulse-gold;
}

.stat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.stat-number {
    letter-spacing: -2px;
}

/* --- UTILITIES --- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* --- BUTTONS --- */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-fast);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-primary);
    color: #000; /* Texte en noir pour la lisibilité sur le vert */
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.primary-btn.large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.icon-btn {
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* --- HEADER / NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent-primary);
    font-size: 2rem;
}

.logo .accent {
    color: transparent;
    background: linear-gradient(90deg, var(--accent-primary), #059669);
    -webkit-background-clip: text;
    background-clip: text;
}

nav {
    display: flex;
    gap: 20px;
}

.nav-btn {
    background: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

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

.nav-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.user-profile-right {
    position: relative;
    display: inline-block;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-profile-trigger i.ph-caret-down {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    border-radius: var(--radius-md);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.text-danger {
    color: #ff4757;
}

.dropdown-item.text-danger:hover {
    background: rgba(255, 71, 87, 0.1);
}

.avatar-large {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-details #user-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.user-details .status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.premium {
    background-color: var(--premium-color);
    color: #000;
}

.status-badge.free {
    background-color: var(--free-color);
    color: #fff;
}

/* --- MAIN LAYOUT --- */
main {
    padding-top: 70px;
    min-height: 100vh;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

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

/* --- LANDING PAGE --- */
.hero {
    text-align: center;
    padding: 120px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent-primary), #059669);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.feature-card p {
    color: var(--text-secondary);
}

/* --- CHAT INTERFACE --- */
#chat-page {
    height: calc(100vh - 70px);
    padding: 30px 5%;
    display: flex;
    justify-content: center;
}

.chat-container {
    width: 100%;
    max-width: 1000px;
    height: 100%;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 16px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    gap: 15px;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.model-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(52, 211, 153, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.model-badge.badge-code {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.3);
}

.model-badge.badge-premium {
    background: rgba(241, 196, 15, 0.15);
    color: var(--premium-color);
    border-color: rgba(241, 196, 15, 0.3);
}

.model-badge.badge-image {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.3);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.conv-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.07);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.chat-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header h2 i {
    color: var(--premium-color);
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.model-selector select {
    background: rgba(0,0,0,0.5);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.model-selector select option {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
}

.message {
    display: flex;
    gap: 15px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.ai-message .message-avatar {
    background: rgba(88, 101, 242, 0.2);
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.message-content {
    background: var(--bg-surface-hover);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-message .message-content {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}

.chat-input-area {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 5px;
    transition: var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

textarea#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 15px;
    resize: none;
    outline: none;
    max-height: 150px;
    min-height: 48px;
}

.send-btn {
    background: var(--accent-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.send-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.chat-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Loader for AI response */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Animations that are triggered by JS or initially */
.fade-up {
    opacity: 0;
    animation: fadeUpAnim 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* --- PRICING PAGE --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 5%;
    max-width: 1000px;
    margin: 0 auto 100px;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.pricing-features li.disabled-feature {
    color: var(--text-secondary);
}

.pricing-features li.disabled-feature i {
    color: var(--text-secondary);
}

.premium-card {
    border: 2px solid var(--premium-color);
    transform: scale(1.05);
}

.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--premium-color);
    color: #000;
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- CHAT LAYOUT --- */
.chat-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    height: 100%;
}

.chat-sidebar {
    width: 280px;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover, .history-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.history-item .del-btn {
    background: none;
    color: var(--text-secondary);
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.history-item .del-btn:hover {
    color: #ff4757;
    background: rgba(255,71,87,0.1);
}

.history-item .rename-btn {
    background: none;
    color: var(--text-secondary);
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.history-item .rename-btn:hover {
    color: var(--accent-primary);
    background: rgba(52,211,153,0.1);
}

.history-item .item-actions {
    display: none;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.history-item:hover .item-actions {
    display: flex;
}

/* Animation génération d'image */
.image-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.image-loader-stars {
    display: flex;
    gap: 8px;
}

.image-loader-stars span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f472b6;
    animation: imagePulse 1.4s infinite ease-in-out both;
}

.image-loader-stars span:nth-child(1) { animation-delay: -0.32s; background: #f472b6; }
.image-loader-stars span:nth-child(2) { animation-delay: -0.16s; background: #c084fc; }
.image-loader-stars span:nth-child(3) { background: #818cf8; }

@keyframes imagePulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.image-loader-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: shimmer 2s infinite ease-in-out;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Rename input inline */
.history-item input.rename-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--accent-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}

/* Highlight model change */
@keyframes modelSwitch {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.model-badge.switching {
    animation: modelSwitch 0.3s ease;
}

/* --- QUOTA RING --- */
.quota-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.quota-ring {
    transform: rotate(-90deg);
}

.quota-ring circle {
    fill: transparent;
    stroke-width: 3;
}

.quota-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.quota-ring-progress {
    stroke: var(--accent-primary);
    stroke-dasharray: 100; /* ~ 2 * pi * r (16) = 100.5 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

.quota-ring-progress.infinity {
    stroke: var(--premium-color);
    stroke-dashoffset: 0 !important;
}

.quota-text {
    position: absolute;
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--text-primary);
    pointer-events: none;
    line-height: 1;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

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

.modal-box {
    border-radius: var(--radius-lg);
    padding: 35px;
    width: 90%;
    max-width: 420px;
    animation: modalSlideIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes modalSlideIn {
    from { opacity:0; transform: scale(0.93) translateY(24px); }
    to   { opacity:1; transform: scale(1)   translateY(0); }
}

.modal-box h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- LEGAL MODALS (Privacy / TOS) ---- */
.modal-content {
    animation: modalSlideIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 92vw;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }

.legal-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-header-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.legal-header-icon.green  { background: rgba(52,211,153,0.12); color: var(--accent-primary); border: 1px solid rgba(52,211,153,0.25); }
.legal-header-icon.purple { background: rgba(138,43,226,0.12); color: #a78bfa;               border: 1px solid rgba(138,43,226,0.25); }

.legal-header-title { flex: 1; }
.legal-header-title h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.legal-header-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.legal-section {
    margin-bottom: 22px;
}

.legal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-primary);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(52,211,153,0.06);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
}

.legal-section-title.purple {
    color: #a78bfa;
    background: rgba(138,43,226,0.06);
    border-left-color: #a78bfa;
}

.legal-section p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-right: 6px;
}

.legal-tag.highlight { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.2); color: var(--accent-primary); }

.legal-footer-note {
    margin-top: 28px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-footer-note i { font-size: 1.2rem; color: var(--accent-primary); flex-shrink: 0; }

.quota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.quota-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.quota-row-label i {
    font-size: 1.3rem;
    color: var(--accent-primary);
}

.quota-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quota-bar {
    width: 120px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--accent-primary);
    transition: width 0.5s ease;
}

.quota-bar-fill.warn { background: #f1c40f; }
.quota-bar-fill.danger { background: #ff4757; }

.quota-val {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

/* Media Queries */
@media (max-width: 900px) {
    .chat-layout { flex-direction: column; }
    .chat-sidebar { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
    .header-left .logo span { display: none; }
    nav { gap: 10px; }
    .nav-btn { font-size: 0.9rem; padding: 6px 12px; }
    .hero h1 { font-size: 3rem; }
    .navbar { padding: 0 20px; }
    #chat-page { padding: 10px; height: calc(100vh - 70px); }
    .chat-container { border-radius: var(--radius-md); }
}

/* =========================================
   ANIMATIONS DE LA PAGE D'ACCUEIL
========================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* --- FOOTER --- */
.footer {
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 20px 5%;
    margin-top: auto;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copyright a.footer-link-highlight {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.copyright a.footer-link-highlight:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px var(--accent-glow);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-btn:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        width: 100%;
    }
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 14px var(--accent-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(52, 211, 153, 0.7);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 4px 14px var(--accent-glow);
        transform: scale(1);
    }
}

.pulse-btn {
    animation: pulseGlow 2s infinite ease-in-out;
}

/* =========================================
   ADMIN NAV BUTTON
========================================= */

.admin-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(255, 71, 87, 0.05));
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: #ff6b7a !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.admin-nav-btn:hover {
    background: rgba(255, 71, 87, 0.25);
    border-color: rgba(255, 71, 87, 0.6);
    color: #ff4757 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.2);
}

/* =========================================
   ADMIN PANEL MODAL
========================================= */

.admin-panel {
    max-width: 680px;
    width: 92vw;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 71, 87, 0.15);
}

.admin-header-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255,71,87,0.15), rgba(255,71,87,0.05));
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.admin-header h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
}

.admin-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Form de blocage */
.admin-block-form {
    background: rgba(255, 71, 87, 0.04);
    border: 1px solid rgba(255, 71, 87, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.admin-block-form h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ff6b7a;
    margin-bottom: 16px;
    font-weight: 600;
}

.admin-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-input {
    flex: 1;
    min-width: 160px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input::placeholder { color: rgba(255,255,255,0.3); }

.admin-input:focus {
    border-color: rgba(255, 71, 87, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.08);
}

.admin-block-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 71, 87, 0.85);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.admin-block-btn:hover {
    background: #ff4757;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.35);
}

/* Liste des utilisateurs bloqués */
.admin-section {
    margin-bottom: 20px;
}

.admin-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.admin-blocked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-blocked-list::-webkit-scrollbar { width: 4px; }
.admin-blocked-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.admin-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    opacity: 0.6;
}

.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.12);
    border-radius: var(--radius-sm);
    gap: 12px;
    animation: fadeUpAnim 0.25s ease both;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-id {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-family: monospace;
}

.admin-unblock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.admin-unblock-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-1px);
}

/* Info row */
.admin-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.admin-info-row i {
    color: var(--accent-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* =========================================
   IMAGE GÉNÉRÉE — THUMBNAIL + ACTIONS
========================================= */

.img-gen-wrapper {
    margin-top: 10px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
    width: 100%;
}

.img-gen-thumb {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    object-fit: cover;
    max-height: 280px;
}

.img-gen-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.img-gen-actions {
    display: flex;
    gap: 8px;
}

.img-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    font-family: var(--font-sans);
}

.img-action-btn:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.lightbox-overlay.open {
    opacity: 1;
}

.lightbox-box {
    position: relative;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fadeUpAnim 0.25s ease both;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.18s;
}

.lightbox-close:hover {
    background: rgba(255,71,87,0.5);
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-actions {
    display: flex;
    gap: 10px;
}

.lightbox-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--accent-primary);
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.lightbox-dl-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* =========================================
   REVIEWS & STAR SYSTEM
========================================= */

.star-rating i {
    cursor: pointer;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.15);
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating i:hover,
.star-rating i.hovered,
.star-rating i.selected {
    color: #f1c40f !important;
    transform: scale(1.1);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(10px);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52,211,153,0.2);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

.review-user-name {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-card-stars {
    color: #f1c40f;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.review-card-comment {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    font-style: italic;
}

.review-card-improvements {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ADMIN PANEL - REVIEWS TAB */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-btn.active {
    background: rgba(52,211,153,0.1);
    color: var(--accent-primary);
}

.admin-review-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.admin-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-review-actions {
    display: flex;
    gap: 8px;
}

.admin-review-toggle-btn {
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2);
    color: var(--accent-primary);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.admin-review-toggle-btn.visible {
    background: #00ff88;
    color: black;
    font-weight: bold;
}

.admin-review-delete-btn {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.2);
    color: #ff4757;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.admin-review-delete-btn:hover {
    background: #ff4757;
    color: white;
}

/* =========================================
   REVIEWS CAROUSEL
========================================= */

.reviews-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-carousel-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex: 1;
    overflow: hidden;
    min-height: 120px;
    align-items: stretch;
}

.reviews-carousel-row .review-card {
    flex: 1;
    min-width: 0;
    min-width: 180px;
}

.reviews-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    z-index: 2;
}

.reviews-nav-btn:hover {
    background: rgba(52,211,153,0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.08);
}

/* =========================================
   FAQ ACCORDION PREMIUM
========================================= */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-acc-item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
    overflow: hidden;
}

.faq-acc-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.07);
}

.faq-acc-trigger {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 8px;
    text-align: left;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1;
}

.faq-acc-trigger:hover {
    background: rgba(52,211,153,0.04);
}

.faq-acc-trigger[aria-expanded="true"] {
    background: rgba(52,211,153,0.05);
}

.faq-acc-num {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 6px;
    padding: 3px 8px;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
}

.faq-acc-trigger[aria-expanded="true"] .faq-acc-num {
    background: rgba(52,211,153,0.18);
    box-shadow: 0 0 12px rgba(52,211,153,0.2);
}

.faq-acc-question {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.4;
    transition: color 0.2s;
}

.faq-acc-trigger:hover .faq-acc-question,
.faq-acc-trigger[aria-expanded="true"] .faq-acc-question {
    color: #fff;
}

.faq-acc-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #aaa);
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s ease;
}

.faq-acc-trigger:hover .faq-acc-icon {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.faq-acc-trigger[aria-expanded="true"] .faq-acc-icon {
    background: rgba(52,211,153,0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(45deg);
}

/* Slide down animation */
.faq-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-acc-body.open {
    grid-template-rows: 1fr;
}

.faq-acc-body > div {
    overflow: hidden;
}

.faq-acc-answer {
    padding: 0 8px 22px calc(20px + 8px + 20px);
    color: var(--text-secondary, #aaa);
    font-size: 0.97rem;
    line-height: 1.7;
}

.faq-acc-answer strong {
    color: rgba(255,255,255,0.85);
}

.faq-acc-answer a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Glow line on open */
.faq-acc-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.faq-acc-item.active::before {
    opacity: 1;
}
