/* --- VARIABLES & THEME --- */
:root {
    /* --- SHARED --- */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- LIGHT MODE (Intense Glass) --- */
:root {
    /* Background: Vibrant Mesh for strong glass effect */
    --bg-page: #ffffff;
    --bg-mesh-1: #8b5cf6;
    /* Vibrant Purple */
    --bg-mesh-2: #0ea5e9;
    /* Vibrant Cyan/Blue */
    --bg-mesh-3: #f43f5e;
    /* Vibrant Pink/Red */

    /* Text */
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-on-accent: #ffffff;

    /* Accents */
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --secondary: #06b6d4;

    /* Ultra Glass Surface */
    --glass-surface: rgba(255, 255, 255, 0.15);
    /* Very transparent */
    --glass-border: rgba(255, 255, 255, 0.6);
    /* Frosted border */
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --card-bg: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.2);
    /* Increased hover opacity for better visibility in light mode */
    --card-hover: rgba(255, 255, 255, 0.65);

    /* Logo Visibility: Strong shadow for light mode */
    --logo-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* --- DARK MODE (Deep Neon Glass) --- */
body.dark-mode {
    --bg-page: #000000;
    --bg-mesh-1: #7c3aed;
    /* Neon Violet */
    --bg-mesh-2: #2563eb;
    /* Strong Blue */
    --bg-mesh-3: #db2777;
    /* Neon Pink */

    --text-main: #ffffff;
    --text-muted: #cbd5e1;

    --primary: #a78bfa;
    --primary-glow: rgba(167, 139, 250, 0.6);

    /* Dark Glass */
    --glass-surface: rgba(255, 255, 255, 0.05);
    /* Highlighted darkness */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --card-bg: rgba(0, 0, 0, 0.3);
    --card-hover: rgba(255, 255, 255, 0.1);

    /* Logo Visibility: Glow for dark mode */
    --logo-filter: drop-shadow(0 0 5px var(--primary-glow));
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Mesh Background (More complex) */
    background-image:
        radial-gradient(at 0% 0%, var(--bg-mesh-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--bg-mesh-2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--bg-mesh-3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--bg-mesh-1) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: 150% 150%;
    animation: meshMove 15s infinite alternate ease-in-out;
}

@keyframes meshMove {
    0% {
        background-position: 0% 0%;
        background-size: 150% 150%;
    }

    100% {
        background-position: 100% 100%;
        background-size: 180% 180%;
    }
}

/* --- COMPONENT: GLASS PANEL --- */
.glass {
    background: var(--glass-surface);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-base);
}

.glass-card.subtle {
    background: rgba(255, 255, 255, 0.05);
    /* Matching Index Mockup */
    padding: 16px;
    margin-bottom: 12px;
}

.glass-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Specific component from Index Mockup */
.avatar-square {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Text with Gradient (like "Clients" title in image) */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    /* More rounded like buttons in img */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.95rem;
    gap: 10px;
}

/* Primary Button inspired by "+ Nouveau" button */
.btn-primary {
    background: var(--primary);
    color: var(--text-on-accent);
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: var(--text-on-accent);
}

/* Ghost / Secondary */
.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

/* --- HEADER / NAV --- */
header {
    position: sticky;
    top: 20px;
    /* Floating look */
    z-index: 100;
    padding: 0 24px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Glass Navbar floating */
    background: var(--glass-surface);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    /* Pill shape nav like top bar */
    box-shadow: var(--glass-shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    filter: var(--logo-filter);
    transition: var(--transition-base);
}

.logo:hover img {
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #cbd5e1, #64748b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- BUTTON VARIANTS --- */
/* Green Glass Button as requested */
.btn-glass-green {
    background: rgba(16, 185, 129, 0.15);
    /* Subtle green tint */
    color: #10b981;
    /* Emerald green text */
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-glass-green:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    color: #10b981;
}


.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition-base);
    /* smooth transition */
}

.nav-links a:hover {
    opacity: 1;
    color: var(--text-main);
}


/* --- UTILITIES & HELPERS (Refactored from Inline) --- */

/* Grid System for Lists/Tables */
.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 0.5fr;
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    transition: 0.2s;
}

/* Flexbox Helpers */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.flex-between-end {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Spacing */
.gap-10 {
    gap: 10px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-5 {
    margin-top: 5px;
}

/* Sizing & Text */
.w-full {
    width: 100%;
}

.max-w-1000 {
    max-width: 1000px;
    margin: 0 auto;
}

.text-right {
    text-align: right;
}

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

.text-xs {
    font-size: 0.8rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Components */
.pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.pill-primary {
    background: var(--primary);
    color: white;
}

.pill-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-weight: normal;
}

.tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.tag-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.tag-red {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}


.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 24px;
}

/* Hero Card replicating the "Table" look */
.hero-dashboard-mockup {
    margin-top: 60px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative fake sidebar in mockup */
.mock-sidebar {
    width: 250px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid var(--glass-border);
}

/* --- LAYOUT UTILS --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

/* --- GRID & CARDS --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    filter: grayscale(100%);
    opacity: 0.8;
}

/* --- PRICING --- */
.pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--glass-surface) 100%);
    position: relative;
    transform: scale(1.05);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.02);
    padding: 80px 0 40px;
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .bento-grid,
    .pricing-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .bento-grid,
    .pricing-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 20px;
        border-radius: 20px;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile */
    .hero-dashboard-mockup {
        padding: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Animation Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- WIZARD ONBOARDING --- */
.wizard-container {
    max-width: 800px;
    margin: 40px auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.step-content {
    display: none;
    /* hidden by default */
    animation: fadeIn 0.5s ease;
}

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

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

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

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
    transform: translateY(-50%);
}

.progress-line-fill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    z-index: 0;
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step-indicator.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.step-indicator.completed {
    background: var(--primary);
    color: white;
}

/* Form Inputs Override for Glass */
.glass-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Signature Canvas Mock */
.signature-area {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: crosshair;
    margin-bottom: 20px;
}

/* Style pour le lien actif */
.active {
    opacity: 1;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
}

/* Optionnel : Si tu veux donner un style de base à tous tes liens de navigation */
a {
    /* Tes styles par défaut ici, par exemple : */
    text-decoration: none;
    opacity: 0.7;
    /* Pour qu'on voit la différence avec l'actif qui est à 1 */
    transition: all 0.3s ease;
}

a:hover {
    opacity: 1;
    color: var(--primary);
}

/* --- WIZARD STYLES & FIXES --- */
.wizard-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-submit-container {
    text-align: right;
    margin-top: 20px;
}

/* Proposal Table (Step 2) Fixes */
.proposal-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-weight: bold;
}

.proposal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.proposal-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--glass-border);
    font-size: 1.2rem;
    font-weight: bold;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contract & Signature (Step 3) */
.contract-scroll-area {
    height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.signature-label {
    font-weight: 500;
    margin-bottom: 10px;
}

/* Welcome Step (Step 4) Fixes */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.welcome-card-link {
    padding: 20px;
    text-align: center;
    display: block;
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.welcome-card-active {
    border: 1px solid var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

/* --- COLLABS PAGE STYLES --- */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.bg-gradient-indigo {
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
    color: white;
}

.bg-gradient-red {
    background: linear-gradient(135deg, #fca5a5, #ef4444);
    color: white;
}

.bg-gradient-green {
    background: linear-gradient(135deg, #86efac, #22c55e);
    color: white;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-available {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-busy {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.profile-stats-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.profile-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
}

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

.card-dashed {
    border: 2px dashed var(--glass-border);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    height: 100%;
    /* Match height of grid items */
    min-height: 280px;
    /* Approximate height of profile cards */
}

.card-dashed:hover {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background on hover */
}

.card-dashed-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 300;
}

.card-dashed-text {
    color: var(--text-muted);
    font-weight: 500;
}
/* --- FAQ SECTION --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: var(--card-hover);
}

.faq-summary {
    padding: 24px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item[open] .faq-summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

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

/* --- SIGNATURE PAGE VISUALS --- */

/* Shield Glow Animation */
.shield-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    font-size: 5rem;
    z-index: 2;
    position: relative;
}

.shield-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    animation: pulseGlow 3s infinite alternate;
    z-index: 1;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Trust Badges */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

.trust-badge-icon {
    color: var(--primary);
}

/* Timeline Visual */
.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-content {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.timeline-meta {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: monospace;
}
