/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Tech-Futuriste */
    --bg-deep: #030014;
    --bg-surface: #110c2d; /* #0f0728 */
    --bg-glass: rgba(17, 12, 45, 0.7);
    
    --primary-color: #7000ff; /* Electric Purple */
    --primary-glow: rgba(112, 0, 255, 0.5);
    --secondary-color: #00f3ff; /* Cyber Cyan */
    --secondary-glow: rgba(0, 243, 255, 0.5);
    
    --accent-pink: #ff00aa;
    
    --text-primary: #ffffff;
    --text-secondary: #b4b0c4;
    --text-dim: #6c6783;
    
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 255, 255, 0.2);
    
    --shadow-glow: 0 0 20px rgba(112, 0, 255, 0.3);
    --gradient-main: linear-gradient(135deg, #7000ff 0%, #00f3ff 100%);
    
    /* Anciennes variables mappées pour compatibilité */
    --bg-primary: var(--bg-deep);
    --bg-secondary: var(--bg-surface);
    --border-color: var(--border-light);
    --primary-dark: #5a00cc;
    --accent-color: var(--secondary-color);
    --shadow-sm: 0 4px 6px rgba(0,0,0, 0.3);
    --shadow-md: 0 8px 12px rgba(0,0,0, 0.4);
    --shadow-lg: 0 0 25px rgba(112, 0, 255, 0.2);
    --shadow-xl: 0 0 40px rgba(0, 243, 255, 0.15);
    --text-light: var(--text-dim);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 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: 2.5rem;
}

.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 {
    margin-left: 0.5rem;
    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: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    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));
    gap: 3rem;
    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: 3rem 2rem;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.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);
}

.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: 3.5rem;
}

.pricing-badge {
    background: var(--secondary-color);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--secondary-color);
}

/* 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 0 15px rgba(112, 0, 255, 0.4);
    transition: all 0.3s ease;
}

#cookieAccept:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.6);
    transform: translateY(-2px);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.cookie-modal.visible {
    display: flex;
}

/* Modal Content Customization */
.cookie-modal-content {
    background: rgba(17, 12, 45, 0.95);
    border: 1px solid var(--primary-color);
    color: white;
    border-radius: 1.5rem;
    box-shadow: 0 0 40px rgba(112, 0, 255, 0.3);
    max-width: 600px;
    width: 90%;
}

.cookie-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #b4b0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    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(--accent-pink);
}

.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: rgba(0,0,0,0.2);
}
.cookie-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    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(112, 0, 255, 0.3);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.cookie-category h4 {
    color: white;
    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 Consultation Floating Widget */
.consultation-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 12000;
}

.consultation-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.consultation-toggle-text {
    background: rgba(17, 12, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    white-space: nowrap;
    animation: whisperPulse 2.2s ease-in-out infinite;
}

.door-icon {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(112, 0, 255, 0.6), rgba(0, 243, 255, 0.5));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(112, 0, 255, 0.35);
    animation: doorFloat 2.5s ease-in-out infinite;
}

.door-panel {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(8, 8, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 90% 50%;
    animation: doorKnock 2.8s ease-in-out infinite;
}

.door-panel i {
    color: #f4f6ff;
    font-size: 1.1rem;
}

.knock {
    position: absolute;
    right: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.9);
    opacity: 0;
}

.knock-1 { top: 20px; animation: knockPing 2.8s ease-in-out infinite; }
.knock-2 { top: 31px; animation: knockPing 2.8s ease-in-out infinite 0.12s; }
.knock-3 { top: 42px; animation: knockPing 2.8s ease-in-out infinite 0.24s; }

@keyframes doorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes doorKnock {
    0%, 14%, 100% { transform: rotate(0deg); }
    3% { transform: rotate(-8deg); }
    6% { transform: rotate(6deg); }
    9% { transform: rotate(-4deg); }
    12% { transform: rotate(3deg); }
}

@keyframes knockPing {
    0%, 12%, 100% { transform: scale(0.4); opacity: 0; }
    6% { transform: scale(1); opacity: 1; }
}

@keyframes whisperPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.consultation-chat-panel {
    position: absolute;
    right: 0;
    bottom: 90px;
    width: 380px;
    max-width: calc(100vw - 2rem);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: all 0.28s ease;
}

.consultation-widget.open .consultation-chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.consultation-widget.open .consultation-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
}

.chat-container {
    background: rgba(17, 12, 45, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    min-height: 520px;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}

.chat-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

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

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

.consultation-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.consultation-close:hover {
    color: white;
    border-color: var(--secondary-color);
    background: rgba(0, 243, 255, 0.15);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    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: 0.8rem;
}

.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) {
    .consultation-widget {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .consultation-toggle-text {
        display: none;
    }

    .consultation-chat-panel {
        right: 0;
        bottom: 82px;
        width: min(92vw, 420px);
    }

    .chat-container {
        min-height: 62vh;
        max-height: 75vh;
    }

    .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;
    }
}

/* Portal Styles */
.auth-section, .portal-section {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
}

.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);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-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-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-primary, .btn-secondary, .btn-google {
    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;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.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: #4285f4;
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-google:hover {
    background: #3367d6;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-dim);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    padding: 0 1rem;
}

.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;
}

/* Portal Layout Styles */
.portal-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(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 1rem;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
}

.sidebar.collapsed .sidebar-logo {
    width: 24px;
    height: 24px;
}

.sidebar.collapsed h2 {
    display: 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;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
}

.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;
}

.sidebar.collapsed .nav-item {
    padding: 1rem;
    justify-content: center;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* Portal Header */
.portal-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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: 2rem;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 1rem;
}

.credits-display i {
    color: var(--secondary-color);
}

.user-menu {
    position: relative;
}

.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;
    width: 100%;
}

.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: 1000;
}

.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;
}

/* 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;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-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;
    }

    .portal-header {
        padding: 1rem;
    }

    .header-right {
        gap: 1rem;
    }

    .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;
    }
}
