/* ===================================================================
   JULIANA PRO — Design System Premium
   Inovai.Lab © 2026
   Paleta: Dark Tech com gradiente azul → roxo → rosa
   Inspiração: Stripe, Linear, Notion AI, OpenAI
   =================================================================== */

/* -------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------------- */
:root {
    /* Canvas / Fundo */
    --color-bg-deep:    #070B14;
    --color-bg-surface: #0B1020;
    --color-bg-card:    #111627;
    --color-bg-card-hover: #181D33;
    --color-bg-elevated:#1A1F38;

    /* Brand */
    --color-blue:       #5B6CFF;
    --color-purple:     #7C4DFF;
    --color-magenta:    #E04FBF;
    --color-gradient:   linear-gradient(135deg, var(--color-blue), var(--color-purple), var(--color-magenta));

    /* Texto */
    --color-text:       #F5F7FF;
    --color-text-soft:  #C8CCDD;
    --color-text-muted: #AAB1C5;
    --color-text-dim:   #6B7194;

    /* Bordas */
    --color-border:     rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.10);

    /* Glass */
    --glass-bg:         rgba(17, 22, 39, 0.65);
    --glass-border:     rgba(255, 255, 255, 0.08);
    --glass-blur:       16px;

    /* Sombras */
    --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md:        0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg:        0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 60px rgba(91, 108, 255, 0.15);
    --shadow-glow-purple: 0 0 60px rgba(124, 77, 255, 0.12);

    /* Tipografia */
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Layout */
    --max-width:  1200px;
    --header-h:   72px;
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Transições */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast:   150ms;
    --dur-normal: 300ms;
    --dur-slow:   500ms;
}

/* -------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg-deep);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(91, 108, 255, 0.35);
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -------------------------------------------------------------------
   Container
   ------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------------------------------------
   Tipografia utilitária
   ------------------------------------------------------------------- */
.text-gradient {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------------------------------------------------------
   Botões
   ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

/* Tamanhos */
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    height: 38px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    height: 52px;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

/* Primary */
.btn-primary {
    background: var(--color-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(91, 108, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(91, 108, 255, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-icon-right {
    flex-shrink: 0;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}

.header.scrolled {
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon svg {
    display: block;
}

.brand-icon-img {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 12px rgba(91, 108, 255, 0.35), 0 0 24px rgba(124, 77, 255, 0.15);
    transition: box-shadow var(--dur-normal) var(--ease-out);
}

.nav-brand:hover .brand-icon-img {
    box-shadow: 0 0 20px rgba(91, 108, 255, 0.5), 0 0 36px rgba(224, 79, 191, 0.25);
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

.brand-text-highlight {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--dur-normal) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* -------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
}

.hero-glow-primary {
    width: 600px;
    height: 600px;
    background: var(--color-blue);
    top: -200px;
    right: -150px;
}

.hero-glow-secondary {
    width: 500px;
    height: 500px;
    background: var(--color-purple);
    bottom: -150px;
    left: -100px;
    opacity: 0.18;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-soft);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-blue);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(91, 108, 255, 0.6); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 8px rgba(91, 108, 255, 0); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--color-text-muted);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-subtitle strong {
    color: var(--color-text-soft);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-blue);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* -------------------------------------------------------------------
   ABOUT / TECH GRID
   ------------------------------------------------------------------- */
.about {
    background: var(--color-bg-surface);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-soft);
    transition: all var(--dur-normal) var(--ease-out);
}

.tech-chip:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------------
   FEATURES GRID
   ------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-gradient);
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease-out);
}

.feature-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    margin-bottom: 18px;
}

.feature-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------
   HOW IT WORKS (Method Grid)
   ------------------------------------------------------------------- */
.how-it-works {
    background: var(--color-bg-surface);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.method-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--dur-normal) var(--ease-out);
}

.method-item:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.method-number {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 600;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.method-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.method-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* -------------------------------------------------------------------
   CTA / FORM SECTION
   ------------------------------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: var(--color-blue);
    filter: blur(150px);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

.cta-text strong {
    color: var(--color-text-soft);
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-soft);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.cta-form-card {
    padding: 36px;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
}

/* Form Elements */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    transition: all var(--dur-fast) var(--ease-out);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-dim);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23AAB1C5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Feedback */
.form-feedback {
    min-height: 24px;
    font-size: 14px;
    font-weight: 500;
}

.form-feedback.success {
    color: #4ADE80;
}

.form-feedback.error {
    color: #F87171;
}

/* -------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------- */
.footer {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 14px;
    line-height: 1.55;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 6px 0;
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-dim);
}

/* -------------------------------------------------------------------
   AUTH PAGES (Login)
   ------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-deep);
    padding: 24px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--color-blue);
    filter: blur(180px);
    opacity: 0.08;
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--color-magenta);
    filter: blur(180px);
    opacity: 0.06;
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    padding: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-logo-img {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 16px rgba(91, 108, 255, 0.4), 0 0 32px rgba(124, 77, 255, 0.2);
}

.auth-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group input {
    height: 48px;
    font-size: 15px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    transition: color var(--dur-fast);
}

.auth-back-link:hover {
    color: var(--color-text);
}

/* Flash messages */
.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.flash-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ADE80;
}

.flash-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #F87171;
}

.flash-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #FBBF24;
}

.flash-info {
    background: rgba(91, 108, 255, 0.1);
    border: 1px solid rgba(91, 108, 255, 0.25);
    color: #5B6CFF;
}

/* -------------------------------------------------------------------
   ADMIN PANEL
   ------------------------------------------------------------------- */
.admin-page {
    min-height: 100vh;
    background: var(--color-bg-deep);
}

.admin-header {
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    border: 1px solid var(--color-border);
}

.admin-user-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
}

.admin-main {
    padding: 32px 0 80px;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.admin-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.admin-stats-pill {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.admin-stats-count {
    font-size: 28px;
    font-weight: 700;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stats-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Table */
.admin-table-wrapper {
    padding: 0;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-dim);
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border);
}

.admin-table td {
    font-size: 13px;
    padding: 14px 16px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.admin-table tbody tr {
    transition: background var(--dur-fast);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-dim);
}

.cell-strong {
    color: var(--color-text-soft);
    font-weight: 500;
}

.cell-need {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-date {
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
}

.badge-segment {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 9999px;
    background: rgba(91, 108, 255, 0.12);
    color: var(--color-blue);
}

/* Empty State */
.admin-empty {
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.admin-empty h3 {
    font-size: 18px;
    font-weight: 600;
}

.admin-empty p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* -------------------------------------------------------------------
   RESPONSIVO
   ------------------------------------------------------------------- */

/* Tablet & Mobile (< 960px) */
@media (max-width: 960px) {
    .hero-stats {
        gap: 24px;
        padding: 16px 24px;
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-info {
        text-align: center;
    }

    .cta-benefits {
        align-items: center;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }
}

/* Mobile (< 640px) */
@media (max-width: 640px) {
    :root {
        --header-h: 64px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 11, 20, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dur-normal) var(--ease-out);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        flex-direction: column;
        margin-left: 0;
        gap: 16px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 20px);
        padding-bottom: 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-form-card {
        padding: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    /* Admin mobile */
    .admin-header-inner {
        height: 56px;
    }

    .admin-user-badge {
        display: none;
    }

    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 900px;
    }

    .auth-card {
        padding: 28px;
    }
}

/* -------------------------------------------------------------------
   Botão de exclusão de lead (admin)
   ------------------------------------------------------------------- */
.cell-action-col {
    width: 90px;
    text-align: center;
}

.cell-actions {
    text-align: center;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
}

.btn-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.btn-delete:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.15);
}

.delete-lead-form {
    display: inline-block;
    margin: 0;
}

/* ===================================================================
   ADMIN LAYOUT — SIDEBAR + MAIN
   =================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

/* --- Sidebar --- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--color-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--dur-normal) var(--ease-out);
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    box-shadow: 0 0 16px rgba(123, 77, 255, 0.25);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
}

.sidebar-link.active {
    background: rgba(91, 108, 255, 0.12);
    color: #5B6CFF;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #5B6CFF;
    border-radius: 0 4px 4px 0;
}

.sidebar-badge {
    margin-left: auto;
    background: rgba(91, 108, 255, 0.15);
    color: #5B6CFF;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.sidebar-user-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--dur-fast) var(--ease-out);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* --- Main Area --- */
.admin-main-area {
    flex: 1;
    margin-left: 240px;
    padding: 28px 32px;
    min-height: 100vh;
}

.admin-topbar-header {
    margin-bottom: 20px;
}

.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px;
}

.admin-page-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- Stats Row --- */
.admin-stats-row {
    margin-bottom: 20px;
}

.admin-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 77, 255, 0.1);
    border: 1px solid rgba(123, 77, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
}

.admin-stats-count {
    font-size: 20px;
    font-weight: 700;
    color: #7C4DFF;
}

.admin-stats-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* --- Flash messages --- */
.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.flash-info {
    background: rgba(91, 108, 255, 0.1);
    color: #5B6CFF;
    border: 1px solid rgba(91, 108, 255, 0.2);
}

/* --- Badges --- */
.badge-crm {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.badge-crm-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 8px;
}

/* --- Buttons --- */
.btn-evoluir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #7C4DFF;
    background: rgba(123, 77, 255, 0.1);
    border: 1px solid rgba(123, 77, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
}

.btn-evoluir:hover {
    background: rgba(123, 77, 255, 0.2);
    border-color: rgba(123, 77, 255, 0.4);
    box-shadow: 0 0 12px rgba(123, 77, 255, 0.15);
}

.btn-evoluir:active {
    transform: scale(0.95);
}

/* ===================================================================
   CRM PIPELINE KANBAN
   =================================================================== */
.crm-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: calc(100vh - 240px);
    align-items: start;
}

.pipeline-col {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: all var(--dur-fast) var(--ease-out);
}

.pipeline-col.drag-over {
    background: rgba(91, 108, 255, 0.04);
    border-color: rgba(91, 108, 255, 0.3);
    box-shadow: 0 0 24px rgba(91, 108, 255, 0.08);
}

.pipeline-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pipeline-col-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.pipeline-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    flex: 1;
    letter-spacing: -0.01em;
}

.pipeline-col-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 2px 9px;
    min-width: 24px;
    text-align: center;
}

.pipeline-cards {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

.pipeline-col-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    padding: 28px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    opacity: 0.5;
}

.pipeline-col-empty svg {
    opacity: 0.3;
}

/* --- CRM Card --- */
.crm-card {
    background: #0B0E17;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: grab;
    transition: all var(--dur-fast) var(--ease-out);
    overflow: hidden;
}

.crm-card:hover {
    border-color: rgba(91, 108, 255, 0.25);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.crm-card:active {
    cursor: grabbing;
}

.crm-card.dragging {
    opacity: 0.4;
    transform: scale(0.96) rotate(1deg);
}

.crm-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 0;
}

.crm-card-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-card-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--dur-fast);
    padding: 0;
}

.crm-card-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.crm-card-empresa {
    font-size: 11px;
    font-weight: 700;
    color: #7C4DFF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.crm-card-data {
    font-size: 10px;
    color: var(--color-text-muted);
}

.crm-card-body {
    padding: 10px 14px;
}

.crm-card-nome {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1px;
    letter-spacing: -0.01em;
}

.crm-card-cargo {
    font-size: 11px;
    color: var(--color-text-muted);
    margin: 0 0 10px;
}

.crm-card-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.crm-card-contact-item {
    font-size: 11px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-card-contact-item svg {
    flex-shrink: 0;
    opacity: 0.4;
}

.crm-card-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
}

/* --- Card Sections (comentarios/docs) --- */
.crm-card-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.crm-section-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--dur-fast);
    user-select: none;
}

.crm-section-toggle:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.015);
}

.crm-section-count {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1px 7px;
}

.crm-section-chevron {
    margin-left: auto;
    transition: transform var(--dur-fast);
    opacity: 0.4;
}

.crm-section-toggle.open .crm-section-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.crm-section-content {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    animation: crmSlideDown 0.2s ease-out;
}

@keyframes crmSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

.crm-comments-inner,
.crm-docs-inner {
    padding: 8px 14px;
    max-height: 180px;
    overflow-y: auto;
}

.crm-comment-item {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.crm-comment-item:last-child {
    border-bottom: none;
}

.crm-comment-text {
    font-size: 12px;
    color: var(--color-text);
    margin: 0 0 3px;
    line-height: 1.45;
}

.crm-comment-meta {
    font-size: 10px;
    color: var(--color-text-muted);
}

.crm-empty-hint {
    font-size: 11px;
    color: var(--color-text-muted);
    padding: 4px 0;
    font-style: italic;
    opacity: 0.5;
}

.crm-comment-form {
    display: flex;
    gap: 6px;
    padding: 8px 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.crm-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--color-text);
    font-size: 12px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--dur-fast);
}

.crm-input:focus {
    border-color: rgba(91, 108, 255, 0.4);
}

.crm-btn-send {
    background: rgba(91, 108, 255, 0.15);
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    color: #5B6CFF;
    cursor: pointer;
    transition: all var(--dur-fast);
    flex-shrink: 0;
}

.crm-btn-send:hover {
    background: rgba(91, 108, 255, 0.28);
}

/* --- Docs --- */
.crm-doc-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    font-size: 11px;
    color: #5B6CFF;
    text-decoration: none;
    transition: opacity var(--dur-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.crm-doc-link:hover {
    opacity: 0.75;
}

.crm-doc-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-doc-date {
    font-size: 10px;
    color: var(--color-text-muted);
}

.crm-upload-row {
    padding: 8px 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.crm-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #5B6CFF;
    cursor: pointer;
    font-weight: 500;
    transition: opacity var(--dur-fast);
}

.crm-upload-btn:hover {
    opacity: 0.75;
}

/* --- Card Footer --- */
.crm-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
}

.crm-btn-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
    background: transparent;
    border: 1px solid;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

.crm-btn-move:hover {
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 0 14px currentColor;
}

.crm-cliente-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #10B981;
}

/* --- Responsivo CRM --- */
@media (max-width: 1400px) {
    .crm-pipeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .crm-pipeline {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
    }

    .admin-main-area {
        margin-left: 0;
        padding: 16px 12px;
    }

    .sidebar-toggle-mobile {
        display: flex !important;
    }
}

/* --- Mobile sidebar toggle --- */
.sidebar-toggle-mobile {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 110;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--color-text);
    cursor: pointer;
}

/* -------------------------------------------------------------------
   Animações de scroll (fade-in)
   ------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DE DETALHES DO CARD (CRM)
   ═══════════════════════════════════════════════════════════════════════════ */
.crm-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 24px;
}
.crm-modal-overlay.open { opacity: 1; visibility: visible; }

.crm-modal {
    background: linear-gradient(160deg, #111527 0%, #0c0f1d 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%; max-width: 640px; max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,77,255,0.1);
    animation: modalSlideIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalSlideIn {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.crm-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.crm-modal-close:hover { background: rgba(239,68,68,0.15); color: #EF4444; border-color: rgba(239,68,68,0.3); }

/* Header */
.crm-modal-header { text-align: center; margin-bottom: 28px; }
.crm-modal-status {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #A5AAC0;
    background: rgba(255,255,255,0.04); padding: 6px 14px;
    border-radius: 20px; margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.crm-modal-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.crm-modal-nome { font-size: 26px; font-weight: 700; color: #fff; margin: 6px 0 4px; letter-spacing: -0.01em; }
.crm-modal-empresa { font-size: 14px; color: #7C4DFF; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Grid */
.crm-modal-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 28px;
}
.crm-modal-field { display: flex; flex-direction: column; gap: 4px; }
.crm-modal-field-full { grid-column: 1 / -1; }
.crm-modal-label {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.crm-modal-value {
    font-size: 14px; color: #E0E2F0; font-weight: 500;
    word-break: break-word;
}
.crm-modal-value a { color: #7C4DFF; text-decoration: none; }
.crm-modal-value a:hover { text-decoration: underline; }

/* Sections */
.crm-modal-section {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.crm-modal-section-title {
    font-size: 14px; font-weight: 700; color: #fff;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.crm-modal-section-title::before {
    content: ''; width: 3px; height: 14px;
    background: linear-gradient(180deg, #7C4DFF, #E04FBF);
    border-radius: 2px;
}

/* Empty hint */
.crm-empty-hint { font-size: 13px; color: rgba(255,255,255,0.25); font-style: italic; padding: 12px 0; }

/* Actions */
.crm-modal-actions {
    display: flex; gap: 12px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.crm-modal-action {
    flex: 1; padding: 12px 18px; border-radius: 12px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #C0C4D8;
    transition: all 0.2s;
}
.crm-modal-action:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.crm-modal-action-move { border-color: rgba(124,77,255,0.3); color: #7C4DFF; }
.crm-modal-action-move:hover { background: rgba(124,77,255,0.1); }
.crm-modal-action-delete:hover { background: rgba(239,68,68,0.1); color: #EF4444; border-color: rgba(239,68,68,0.3); }

/* Comment form inside modal */
.crm-modal-comment-form {
    display: flex; gap: 8px; margin-top: 12px;
}
.crm-modal-comment-form .crm-input {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff; padding: 10px 14px; border-radius: 10px;
    font-size: 13px; outline: none;
    transition: border-color 0.2s;
}
.crm-modal-comment-form .crm-input:focus { border-color: rgba(124,77,255,0.5); }
.crm-modal-comment-form .crm-input::placeholder { color: rgba(255,255,255,0.25); }

.crm-btn-send {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #7C4DFF, #E04FBF);
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.crm-btn-send:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(124,77,255,0.35); }

/* Upload button in modal */
.crm-upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5); font-size: 13px; cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.crm-upload-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(124,77,255,0.4); color: #7C4DFF; }

/* Card cursor */
.crm-card { cursor: pointer; }
.crm-card:hover { border-color: rgba(124,77,255,0.35); }

/* Make delete button inside card not trigger modal */
.crm-card-delete { position: relative; z-index: 2; }
.crm-card .crm-btn-mover { position: relative; z-index: 2; }
