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

:root {
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Palette claire - dashboard */
    --bg-deep: #f5f7fb;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);

    --primary-color: #3b5bfd;
    --primary-glow: rgba(59, 91, 253, 0.25);
    --secondary-color: #15b8a6;
    --secondary-glow: rgba(21, 184, 166, 0.25);

    --accent-pink: #f59e0b;

    --text-primary: #1a1f2b;
    --text-secondary: #5f6b7a;
    --text-dim: #94a3b8;

    --border-light: #e2e8f0;
    --border-glow: #d7dee8;

    --shadow-glow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --gradient-main: linear-gradient(135deg, #3b5bfd 0%, #63d6c3 100%);
    --topbar-height: 72px;

    /* Anciennes variables mappées pour compatibilité */
    --bg-primary: var(--bg-deep);
    --bg-secondary: var(--bg-surface);
    --border-color: var(--border-light);
    --primary-dark: #3147c2;
    --accent-color: var(--secondary-color);
    --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.16);
    --text-light: var(--text-dim);
}

/* Theme overrides */
.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(59, 91, 253, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(59, 91, 253, 0.28);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: #c7d2fe;
    color: var(--primary-color);
}

body {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 18% 20%, rgba(59, 91, 253, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(21, 184, 166, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 251, 0.9) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

/* Scrollbar Customisation */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(3, 0, 20, 0.6); /* Glass dark */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-brand span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(112, 0, 255, 0.5));
}

.logo-container img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
    transition: transform 0.3s ease;
    display: block;
}

.nav-brand:hover .logo-container img {
    transform: scale(1.1) rotate(5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language selector */
.language-selector {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-light);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.flag-icon {
    width: 20px;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 10rem 2rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Canvas Background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Effet de grille arrière-plan Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(112, 0, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    z-index: -2; /* Behind canvas */
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) scale(2);
    opacity: 0.4;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: linear-gradient(to right, #ffffff, #b4b0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons Modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

/* Workflow Animation Center */
.workflow-animation {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
}

/* Glow border effect */
.workflow-animation::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 2rem;
    padding: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    min-width: 140px;
    transition: all 0.4s ease;
}

.workflow-step:hover {
    transform: translateY(-10px) !important;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.2);
}

.workflow-step i {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(112, 0, 255, 0.4));
}

.workflow-step span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--text-dim);
    opacity: 0.5;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Glow under title */
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-main);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary-color);
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
}

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

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    border-color: var(--secondary-color);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Workflows Section */
.workflows {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-deep), var(--bg-surface));
}

.workflows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Réduit pour éviter le scroll horizontal mobile */
    gap: 2.5rem;
}

.workflow-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s ease;
    overflow: hidden;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 4px;
    background: var(--gradient-main);
    transition: width 0.4s ease;
    z-index: 10;
}

.workflow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(112, 0, 255, 0.3);
}

.workflow-card:hover::before {
    width: 100%;
}

.workflow-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.15);
}

.workflow-card.coming-soon {
    opacity: 0.7;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.01),
        rgba(255,255,255,0.01) 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.workflow-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(112, 0, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(112, 0, 255, 0.2);
}

.workflow-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.workflow-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(112, 0, 255, 0.3);
}

.coming-soon-badge {
    background: var(--border-light);
    box-shadow: none;
}

.workflow-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.workflow-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.feature-item {
    margin-bottom: 0.75rem;
}

.feature-item i {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 5px var(--secondary-color));
    margin-right: 0.5rem;
}

.feature-item span {
    color: var(--text-secondary);
}

.workflow-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.workflow-btn {
    width: 100%;
}

/* Pricing Section */
.pricing {
    padding: 8rem 0;
    background: var(--bg-deep);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: 1fr; /* Make all cards same height */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    padding: 2.75rem 2rem;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Espacement des boutons d'abonnement */
.pricing-card .subscribe-btn {
    margin-top: auto; /* Push button to bottom of card */
    margin-bottom: 1rem;
    margin-top: 2rem; /* Additional space between text and button */
    width: auto; /* Prevent button from taking full width */
    display: inline-block; /* Keep button inline */
    position: relative; /* Ensure proper positioning */
    z-index: 5; /* Lower than badges */
    pointer-events: auto; /* Explicitly enable only on button */
    max-width: 200px; /* Limit maximum width */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Handle long text */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Fix subscription buttons in pricing cards - prevent interference */
.pricing-card {
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px); /* Lift effect on card instead of button */
}

.pricing-card * {
    pointer-events: auto;
}

/* Ensure subscription buttons have proper cursor */
.pricing-card .subscribe-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Highlight button when card is hovered (uniform feedback) */
.pricing-card:hover .subscribe-btn {
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.6);
}

.pricing-card.featured {
    background: linear-gradient(160deg, rgba(112, 0, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.15);
    padding-top: 2.75rem;
}

/* Free plan styling */
.pricing-card.free-plan {
    border: 1px solid var(--secondary-color);
    background: linear-gradient(160deg, rgba(0, 243, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.pricing-badge.free-badge {
    background: var(--secondary-color);
    color: var(--bg-deep);
    position: relative;
    z-index: 20;
    pointer-events: none;
}

.pricing-badge.popular-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 25;
    pointer-events: none;
    border-radius: 1.94em 1.94rem 0 0;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

/* Colorer les icônes check et times dans les fonctionnalités */
.pricing-features .fa-check {
    color: #28a745; /* Vert pour les checks */
}

.pricing-features .fa-times {
    color: #dc3545; /* Rouge pour les X */
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    width: 18px;
    text-align: center;
    flex: 0 0 18px;
}

/* Uniform badge hover effects covering entire badge */
.pricing-card:hover .pricing-badge {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

.pricing-card:hover .pricing-badge.free-badge {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Popular badge subtle enhancement on card hover */
.pricing-card:hover .pricing-badge.popular-badge {
    transform: translateY(-0px);
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
    z-index: 30;
}

/* Free Plan Styles */
.free-plan-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.free-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.free-plan-header {
    margin-bottom: 1.5rem;
}

.free-plan-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.free-plan-header h3 i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.free-plan-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.free-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.free-plan-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.free-plan-features li i {
    width: 20px;
    margin-right: 0.5rem;
}

.free-plan-features li i.fa-check {
    color: var(--secondary-color);
}

.free-plan-features li i.fa-times {
    color: var(--text-dim);
}

/* One-time purchase section header */
.one-time-section h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-top: 4rem; /* Added spacing before the title */
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.one-time-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-main);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary-color);
}

.one-time-section > p {
    font-size: 1.3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.one-time-section.compact h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.one-time-section.compact h2::after {
    display: none;
}

.one-time-section.compact > p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.one-time-section.compact .one-time-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.one-time-section.compact .one-time-card {
    padding: 1.5rem;
}

/* One-time purchase grid */
.one-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.one-time-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.one-time-header {
    margin-bottom: 1rem;
}

.one-time-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.one-time-header h3 i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.one-time-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.one-time-price .amount {
    color: var(--secondary-color);
}

.one-time-price .period {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.one-time-description {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 0.9rem;
}

.pricing-credits-highlight {
    font-size: 2.5rem;
    background: linear-gradient(to bottom, white, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-amount .currency,
.pricing-amount .amount {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.pricing-amount .amount {
    font-size: 3rem;
}


.pricing-badge {
    background: var(--secondary-color);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--secondary-color);
    position: relative;
    z-index: 20;
    pointer-events: none;
}

/* Center title and price in pricing cards */
.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
}

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

.pricing-card.featured .pricing-header {
    margin-bottom: 1rem;
    padding-top: 0;
}

.pricing-amount {
    text-align: center;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(to top, #000000, var(--bg-deep));
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
    border: 1px solid var(--border-light);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item div strong {
    color: var(--text-primary);
    display: inline;
    margin-right: 0.5rem;
}

.contact-item div a {
    color: var(--secondary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.consultation-section {
    margin-top: 4rem;
}

.consultation-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem; /* Espace ajouté demandé */
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: white;
    border-radius: 1rem;
    padding: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

/* Footer */
.footer {
    background: black;
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary); /* Improved contrast */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

.footer-links p {
    color: var(--text-dim);
    margin-left: 1rem;
}

/* Notification & Cookie Styles */
.notification {
    background: rgba(17, 12, 45, 0.95) !important;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(3, 0, 20, 0.95);
    border-top: 1px solid var(--primary-color);
    box-shadow: 0 -10px 50px rgba(112, 0, 255, 0.2);
    z-index: 10000;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

#cookieSettings, #cookieDecline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cookieSettings:hover, #cookieDecline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

#cookieAccept {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(59, 91, 253, 0.2);
    transition: all 0.3s ease;
}

#cookieAccept:hover {
    background: var(--primary-dark);
    box-shadow: 0 16px 30px rgba(59, 91, 253, 0.28);
    transform: translateY(-2px);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
}

.cookie-modal.visible {
    display: flex;
}

/* Modal Content Customization */
.cookie-modal-content {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    max-width: 600px;
    width: 90%;
}

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

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

.cookie-modal-close {
    color: var(--text-secondary);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.cookie-modal-close:hover {
    color: var(--primary-color);
}

.cookie-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar for modal */
.cookie-modal-body::-webkit-scrollbar {
    width: 8px;
}
.cookie-modal-body::-webkit-scrollbar-track {
    background: #eef2f7;
}
.cookie-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.cookie-category {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(59, 91, 253, 0.3);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.cookie-category h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cookie-category p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Neon Toggles */
.cookie-category-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cookie-category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
}

input:disabled + .cookie-toggle-slider {
    background-color: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
}

#cookieSaveSettings {
    width: auto;
    min-width: 200px;
}

/* Email Popup */
.email-popup {
    background: #110c2d !important;
    border: 1px solid var(--border-light);
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.3) !important;
}

.email-popup h3 {
    color: white !important;
}

.email-popup p {
    color: var(--text-secondary) !important;
}

.email-popup input {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid var(--border-light) !important;
    color: white !important;
}

.email-popup input:focus {
    border-color: var(--secondary-color) !important;
}

/* AI Chat Interface */
.ai-chat-interface {
    margin-top: 4rem;
    padding: 3rem 0;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.chat-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.chat-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chat-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 1rem;
    animation: messageSlideIn 0.3s ease-out;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--secondary-color);
}

.user-message .message-avatar i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.ai-message .message-avatar {
    background: rgba(112, 0, 255, 0.1);
    border: 2px solid var(--primary-color);
}

.ai-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar i {
    color: white;
    font-size: 1rem;
}

.message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.user-message .message-content {
    background: rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.2);
    margin-left: 2rem;
}

.ai-message .message-content {
    background: rgba(112, 0, 255, 0.05);
    border-color: rgba(112, 0, 255, 0.2);
    margin-right: 2rem;
}

.message-content p {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.ai-response strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.ai-response ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ai-response li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.ai-response ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ai-response li strong {
    color: var(--text-primary);
}

.ai-response em {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

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

.chat-input-area {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    min-height: 60px;
    resize: vertical;
    line-height: 1.5;
}

#chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

#chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-button {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-progress {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#step-indicator {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav {
        background: rgba(3, 0, 20, 0.95);
        padding: 1rem;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block !important;
        z-index: 1001;
        width: 40px;
        height: 40px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(3, 0, 20, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-light);
        padding: 1rem;
        gap: 1rem;
        align-items: center;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
        z-index: 2000;
    }

    /* Ensure language selector is visible or handled */
    .language-selector {
        margin: 0;
        padding: 0;
        border: none;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

    /* Reduce card padding on mobile */
    .workflow-card, .pricing-card, .feature-card {
        padding: 1.5rem;
    }
    
    /* Fix Contact Responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Fix Footer Responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-separator {
        display: none;
    }

    .footer-links p {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Fix Cookie Banner Responsive */
    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-buttons button {
        width: 100%;
    }

    /* Workflow Animation Mobile */
    .workflow-animation {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }
}

/* Dashboard Styles */
.auth-section, .dashboard-section {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}



/* Styles pour le bouton "Se connecter" comme les boutons des badges */
.auth-container .btn-primary {
    margin-top: 1rem;
    width: auto;
    display: inline-block;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.auth-container .btn-primary:hover {
    box-shadow: 0 16px 34px rgba(59, 91, 253, 0.28);
    transform: translateY(-2px);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 91, 253, 0.15);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    background: #dc3545;
    width: 33%;
}

.strength-fill.medium {
    background: #ffc107;
    width: 66%;
}

.strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.medium {
    color: #ffc107;
}

.strength-text.strong {
    color: #28a745;
}

/* Password Match Indicator */
.password-match {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.password-match.match {
    color: #28a745;
}

.password-match.no-match {
    color: #dc3545;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative; /* Contain absolute positioned pseudo-elements like ::before */
    overflow: hidden;
}

.btn-google {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    background: #ffffff;
    color: #4285f4;
    width: 100%;
    margin-top: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
    border-radius: 0.5rem !important; /* Preserve rounded corners */
}

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

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

.btn-google {
    background: #ffffff;
    color: #4285f4;
    width: 100%;
    margin-top: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.btn-google:hover {
    background: #f1f5f9;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    padding: 0 1rem;
}

.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.credits-info {
    text-align: center;
    margin-bottom: 2rem;
}

.credits-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.workflows-section {
    margin-top: 2rem;
}

.workflows-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.workflow-card h3 {
    margin-bottom: 1rem;
}

.workflow-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* Dashboard Layout Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-deep);
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-container {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.auth-container h2 {
    margin-bottom: 0.75rem;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 70px;
    transition-delay: 0.2s;
}

.sidebar-header {
    height: var(--topbar-height);
    padding: 0 1.2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: padding 0.32s ease;
}

.sidebar.collapsed .sidebar-header {
    justify-content: flex-start;
    padding: 0 1.2rem;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar.collapsed .sidebar-logo {
    width: 32px;
    height: 32px;
    transform: none;
}

.sidebar.collapsing .sidebar-logo {
    opacity: 1;
    transform: none;
}

.sidebar.collapsing .sidebar-header {
    justify-content: flex-start;
    padding: 0 1.2rem;
}

.sidebar.collapsed h2 {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    gap: 0.75rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-item.active:hover {
    background: rgba(112, 0, 255, 0.15);
    color: var(--secondary-color);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-item.active {
    background: rgba(112, 0, 255, 0.1);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.nav-item i {
    width: 20px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.nav-item span {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition-property: opacity, transform, max-width;
    transition-duration: 0.2s, 0.2s, 0.2s;
    transition-timing-function: ease, ease, ease;
    transition-delay: 0s, 0s, 0s;
}

.sidebar.collapsed .nav-item {
    padding: 1rem 1.5rem;
    justify-content: flex-start;
    gap: 0.75rem;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    max-width: 0;
    margin: 0;
    overflow: hidden;
    transition-delay: 0s, 0s, 0s;
}

.sidebar.collapsed .nav-item i {
    margin-right: 1rem;
}

.sidebar.collapsing h2,
.sidebar.collapsing .nav-item span {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* Dashboard Header */
.dashboard-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 0 2rem;
    height: var(--topbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

#page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 0;
}

.credits-display i {
    color: var(--secondary-color);
}

.user-menu {
    position: relative;
    z-index: 2;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-btn #user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.user-menu-btn i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(17, 12, 45, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.user-menu-dropdown a:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.user-menu-dropdown a:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.25rem 0;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
}

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

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(112, 0, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.action-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-card.coming-soon:hover {
    transform: none;
    border-color: var(--border-light);
    box-shadow: none;
}

.action-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.action-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.action-card .cost {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.cost-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

/* Workflows Grid */
.workflows-grid {
    display: grid;
    gap: 1.5rem;
}

.workflow-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.workflow-icon {
    width: 50px;
    height: 50px;
    background: rgba(112, 0, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.workflow-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.workflow-info {
    flex: 1;
}

.workflow-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.workflow-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.workflow-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ScanFlow Interface */
.scanflow-interface {
    display: grid;
    gap: 2rem;
}

.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.01);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--secondary-color);
    background: rgba(0, 243, 255, 0.05);
}

.upload-zone i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: block;
}

.upload-zone h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--text-secondary);
}

.processing-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
}

.success-message {
    text-align: center;
}

.success-message i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.success-message h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Usage Table */
.usage-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    overflow: hidden;
}

.usage-table table {
    width: 100%;
    border-collapse: collapse;
}

.usage-table th,
.usage-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.usage-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
}

.usage-table td {
    color: var(--text-secondary);
}

.no-data {
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
}

/* Profile Section */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(112, 0, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-settings {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
}

.profile-settings h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Minimal cursor fixes - only essential rules */
.btn-primary {
    cursor: pointer;
}

input[type="text"] {
    cursor: text;
}

/* Fix credits display - prevent any interference */
.credits-display {
    cursor: default !important;
    pointer-events: none !important;
    margin-right: 0rem !important; /* Increased margin for safety */
    padding: 0.5rem 0.5rem !important; /* Add padding to create buffer zone */
    border-radius: 0.5rem !important; /* Visual separation */
}

.credits-display * {
    cursor: default !important;
    pointer-events: none !important;
}

/* But allow the button next to it with clear separation - same style as subscription buttons in cards */
#subscribe-btn {
    margin-top: 0.5rem; /* Reduced margin to prevent header height increase */
    margin-bottom: 0.5rem;
    width: auto; /* Prevent button from taking full width */
    display: inline-block; /* Keep button inline */
    position: relative; /* Ensure proper positioning */
    z-index: 5; /* Lower than badges */
    pointer-events: auto; /* Explicitly enable only on button */
    max-width: 200px; /* Limit maximum width */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Handle long text */
    white-space: nowrap; /* Prevent text wrapping */
    cursor: pointer !important;
}

/* Keep credits and subscription button aligned with tight, consistent spacing */
.header-right {
    gap: 0.75rem !important;
}

/* Prevent cursor issues with overlapping elements */
.dashboard-header {
    position: relative;
    z-index: 100;
}

.user-menu-dropdown {
    z-index: 1001;
}

.sidebar {
    z-index: 50;
}

.main-content {
    position: relative;
    z-index: 10;
}

/* Fix subscription button cursor */
#subscribe-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Force cursor for subscribe button to override all other rules */
#subscribe-btn:hover,
#subscribe-btn:focus,
#subscribe-btn:active {
    cursor: pointer !important;
}



/* Fix for mobile link display cursor */
.mobile-link-input {
    cursor: text;
    pointer-events: auto;
}

.copy-link-btn {
    cursor: pointer;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }

    .nav-item {
        flex-shrink: 0;
        padding: 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--secondary-color);
    }

    .sidebar.collapsed .nav-item {
        padding: 1rem;
    }

    .dashboard-header {
        height: auto;
        padding: 0.75rem 1rem;
    }

    .header-right {
        gap: 0.75rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .workflow-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .usage-table {
        overflow-x: auto;
    }
}
