@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700;900&display=swap');
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-100: #f1f5f9;
    --font-sans: 'Inter', sans-serif;
    --color-background-primary: #ffffff;
    --color-background-secondary: #f8fafc;
    --color-border-tertiary: #f1f5f9;
    --color-border-secondary: #e2e8f0;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important;
    background-color: #fff !important;
    transform: translateY(0px) !important;
}
.glass-modal {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}
.glass-premium {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 10px -1px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.glass-premium:hover {
    border-color: rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-3px) !important;
}
.bg-gradient-premium {
    background: radial-gradient(circle at 100% 0%, #3b82f6 0%, #1d4ed8 50%, #1e3a8a 100%) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px -15px rgba(29, 78, 216, 0.3) !important;
}
.bg-gradient-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}
.bg-gradient-warning {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%) !important;
}
.hover-lift {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.hover-lift:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08) !important;
}
.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.text-gradient {
    background: linear-gradient(to right, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.premium-shadow {
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.02) !important;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.hidden-page { display: none !important; }
.nav-item {
    border-radius: 10px !important;
    margin: 4px 14px !important;
    padding: 10px 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    border-left: 4px solid transparent !important;
}
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}
.nav-item.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.04) 100%) !important;
    border-left: 4px solid var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06) !important;
}
#sidebar nav::-webkit-scrollbar {
    display: none;
}
#sidebar nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#sidebar {
    background-color: #0b0f19 !important;
    border-right: 1px solid #1e293b !important;
}
.sidebar-header {
    background-color: #0b0f19 !important;
    border-bottom: 1px solid #1e293b !important;
}
header {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01) !important;
}
#global-search-input {
    background-color: #f1f5f9 !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    padding: 10px 4rem 10px 3rem !important; /* Force correct padding using shorthand to prevent conflicts */
}
#global-search-input:focus {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(0px) !important;
}
#greeting {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
#digital-clock {
    font-size: 0.65rem !important;
    letter-spacing: 0.15em !important;
    font-weight: 600 !important;
    color: #64748b !important;
}
[id^="modal-"] > div.bg-white {
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden !important;
}
[id^="modal-"] .bg-slate-50 {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1.25rem 1.75rem !important;
}
[id^="modal-"] h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 1.125rem !important;
}
.bg-white {
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.bg-white.hover-lift:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
}
.divide-y > tr, tr.border-b {
    border-bottom-color: rgba(226, 232, 240, 0.5) !important;
    transition: background-color 0.2s ease !important;
}
.divide-y > tr:hover, tr.border-b:hover {
    background-color: rgba(248, 250, 252, 0.6) !important;
}
thead.bg-slate-50\/50, thead {
    background-color: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}
.kanban-col { flex: 1; min-width: 280px; max-width: 400px; }
.k-card {
    background: white !important;
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01), 0 4px 12px rgba(0,0,0,0.02) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 4px solid #e2e8f0 !important;
}
.k-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(226, 232, 240, 1) !important;
}
.status-green { border-left-color: #10b981 !important; }
.status-orange { border-left-color: #f59e0b !important; }
.status-red { border-left-color: #ef4444 !important; }
.status-gray { border-left-color: #94a3b8 !important; }
.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#toast-container {
    position: fixed; top: 24px; right: 24px; z-index: 1000;
    display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.premium-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}
.toast {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    padding: 16px 24px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05) !important;
    display: flex; align-items: center; gap: 16px;
    min-width: 340px; max-width: 500px;
    transform: translateX(120%);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
    border: 1px solid #f1f5f9;
}
.toast.show { transform: translateX(0); }
.toast.error { border-bottom: 4px solid #ef4444; }
.toast.success { border-bottom: 4px solid #10b981; }
.toast.info { border-bottom: 4px solid var(--primary); }
.toast-title { font-family: 'Outfit'; font-weight: 700; font-size: 0.95rem; color: var(--slate-900); }
.toast-message { font-size: 0.85rem; color: #64748b; font-weight: 500; }
@media (max-width: 768px) {
    header { height: 4.5rem !important; padding: 0 1rem !important; }
    .nav-item { margin: 2px 8px; padding: 12px 16px !important; }
    #sidebar { width: 280px; }
    #global-search-input { padding: 10px 2rem 10px 3rem !important; }
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
    table { min-width: 600px; }
    .glass-modal {
        border-radius: 24px 24px 0 0 !important;
        max-height: 92vh !important;
    }
    #modal-nova-empresa .p-10 { padding: 1.5rem !important; }
    #modal-nova-empresa .px-10 { padding: 1.5rem !important; }
    h2 { font-size: 1.5rem !important; }
}
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

#page-producao:not(.hidden-page) {
    height: calc(100vh - 8rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

@media (min-width: 768px) {
    #page-producao:not(.hidden-page) {
        height: calc(100vh - 12rem) !important;
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.kanban-board-container {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 0;
}

.kanban-col {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.kanban-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

#app-content-wrapper:has(#page-producao:not(.hidden-page)) {
    overflow-y: hidden !important;
}

.lp {
    font-family: var(--font-sans);
    width: 100%;
    background: var(--color-background-primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 2rem;
    border-bottom: 1px solid var(--color-border-tertiary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: var(--slate-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--slate-900);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn-nav-out {
    background: transparent;
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--border-radius-md);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-900);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav-out:hover {
    background: var(--slate-100);
}

.btn-nav-in {
    background: var(--slate-900);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-nav-in:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.hero {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    padding: 6rem 2rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-hero-p {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-hero-p:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

.btn-hero-s {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-hero-s:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.hero-screen {
    background: #1e293b;
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
}

.hs-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.hs-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.hs-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.hs-card-lbl {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hs-card-val {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.hs-card.red {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.hs-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
}

.hs-row-lbl {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.hs-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.hs-badge.g {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.logos {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--color-border-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logos span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-pill {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
    background: var(--slate-100);
    border-radius: 100px;
    padding: 8px 24px;
    transition: all 0.2s;
}

.logo-pill:hover {
    background: var(--slate-200);
}

.feat {
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feat.rev {
    direction: rtl;
}

.feat.rev>* {
    direction: ltr;
}

.feat-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.feat h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.feat h2 strong {
    font-weight: 900;
    color: var(--primary);
}

.feat p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.pill {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.feat-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.feat-link:hover {
    transform: translateX(5px);
}

.feat-visual {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--color-border-tertiary);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.fv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fv-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
}

.fv-badge {
    font-size: 12px;
    font-weight: 700;
    background: #e1f5ee;
    color: #085041;
    border-radius: 100px;
    padding: 4px 14px;
}

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

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

.fv-lbl {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.fv-val {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
}

.fv-val.blue {
    color: var(--primary);
}

.fv-val.red {
    color: #ef4444;
}

.kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kb-col {
    background: var(--slate-100);
    border-radius: 16px;
    padding: 12px;
}

.kb-col-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kb-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.kb-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.kb-card-sub {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.kb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.divider {
    height: 1px;
    background: var(--color-border-tertiary);
    margin: 0 4rem;
}

.plans {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--color-background-secondary);
}

.plans-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.plans h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 1rem;
}

.plans-sub {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    border: 1px solid var(--color-border-tertiary);
    border-radius: 24px;
    padding: 2.5rem;
    background: #fff;
    transition: all 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.plan-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.plan-price span {
    font-size: 16px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.plan-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary);
    border-radius: 100px;
    padding: 4px 14px;
    display: inline-block;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.plan-features li {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    font-size: 18px;
    color: #10b981;
}

.btn-plan {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--color-border-secondary);
    background: transparent;
    color: var(--slate-900);
    transition: all 0.2s;
}

.btn-plan:hover {
    background: var(--slate-100);
}

.btn-plan.p {
    background: var(--slate-900);
    color: #fff;
    border: none;
}

.btn-plan.p:hover {
    background: #000;
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.faq {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1rem;
}

.faq h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--slate-900);
    text-align: center;
    margin-bottom: 4rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-tertiary);
    padding: 1.5rem 0;
}

.faq-q {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--primary);
}

.faq-a {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
}

.faq-item .faq-a {
    display: none;
}

.faq-item:first-child .faq-a {
    display: block;
}

.cta-final {
    max-width: 1100px;
    width: calc(100% - 4rem);
    margin: 4rem auto;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    border-radius: 40px;
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.3);
}

.cta-final h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-final p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-p {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-cta-p:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-cta-s {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

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

.footer {
    padding: 6rem 2rem;
    border-top: 1px solid var(--color-border-tertiary);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 2rem;
    border-top: 1px solid var(--color-border-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom span {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

[id^="modal-"] .bg-white > div:first-child {
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

[id^="modal-"] .bg-white > div:first-child:active {
    cursor: grabbing !important;
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 1rem !important;
        position: sticky !important;
        top: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    .nav-links {
        display: none !important;
    }
    .nav-actions {
        gap: 8px !important;
    }
    .btn-nav-out, .btn-nav-in {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .hero {
        padding: 4rem 1rem 0 !important;
    }
    .hero h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .hero-sub {
        font-size: 14px !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
        line-height: 1.5 !important;
    }
    .hero-btns {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 1rem !important;
        margin-bottom: 3rem !important;
    }
    .btn-hero-p, .btn-hero-s {
        width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
    }
    .hero-screen {
        padding: 1rem !important;
        border-radius: 16px 16px 0 0 !important;
    }
    .hs-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .hs-card {
        padding: 10px !important;
    }
    .hs-card-val {
        font-size: 16px !important;
    }
    .hs-row {
        padding: 8px 10px !important;
    }
    .hs-row-lbl {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 180px !important;
    }
    .hs-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .logos {
        padding: 2rem 1rem !important;
        gap: 1rem !important;
    }
    .logo-pill {
        font-size: 12px !important;
        padding: 6px 16px !important;
    }

    .feat {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 4rem 1rem !important;
    }
    .feat.rev {
        direction: ltr !important;
    }
    .feat.rev > * {
        direction: ltr !important;
    }
    .feat h2 {
        font-size: 24px !important;
    }
    .feat p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .feat-visual {
        padding: 1.5rem !important;
    }
    .kanban {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .plans {
        padding: 4rem 1rem !important;
    }
    .plans-sub {
        margin-bottom: 2.5rem !important;
    }
    .plans-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
    .plan-card {
        padding: 1.5rem !important;
    }

    .faq {
        padding: 4rem 1rem !important;
    }
    .faq h2 {
        font-size: 24px !important;
        margin-bottom: 2rem !important;
    }
    .faq-q {
        font-size: 14px !important;
    }
    .faq-a {
        font-size: 13px !important;
    }

    .cta-final {
        margin: 2rem auto !important;
        width: calc(100% - 2rem) !important;
        padding: 3rem 1rem !important;
        border-radius: 24px !important;
    }
    .cta-final h2 {
        font-size: 26px !important;
    }
    .cta-final p {
        font-size: 14px !important;
        margin-bottom: 2rem !important;
    }
    .cta-final-btns {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 1rem !important;
    }
    .btn-cta-p, .btn-cta-s {
        width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
        justify-content: center !important;
    }

    .footer {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 4rem 1rem 2rem !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
    }

    .page-section > div.flex.justify-between.items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    .page-section > div.flex.justify-between.items-center > div.flex.gap-2 {
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    
    /* Financial Tables fluid layout (No scroll horizontal) */
    .page-section table:not(.table-financeiro) {
        min-width: 650px !important;
    }
    .table-financeiro {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: auto !important;
    }
    .table-financeiro th {
        font-size: 9px !important;
        padding: 8px 4px !important;
    }
    .table-financeiro td {
        font-size: 11px !important;
        padding: 10px 4px !important;
    }
    
    .page-section .overflow-y-auto {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Dashboard and general layout optimizations on Mobile */
    .flex-1.overflow-y-auto.p-6,
    .flex-1.overflow-y-auto.p-6.md:p-10.lg:p-12.relative {
        padding: 1rem !important; /* Reduces top/side margins on mobile */
    }
    .bg-gradient-premium {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }
    .bg-gradient-premium h2 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }
    .bg-gradient-premium p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-top: 4px !important;
    }
    .bg-gradient-premium .flex.gap-4 {
        margin-top: 4px !important;
        width: 100% !important;
    }
    .bg-gradient-premium button {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
        border-radius: 1rem !important;
    }

    /* Kanban Horizontal Scroll on Mobile */
    #kanban-container {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        min-height: 0 !important;
        height: auto !important;
    }
    #kanban-container > div {
        flex: 0 0 82vw !important;
        max-width: 310px !important;
        scroll-snap-align: start !important;
        height: 70vh !important;
        min-height: 420px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    #kanban-container h3 {
        padding-top: 4px !important;
        padding-bottom: 8px !important;
    }

    /* EiAI Chat box full viewport behavior on Mobile */
    #flow-ai-box {
        position: fixed !important;
        bottom: 80px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        height: 72vh !important;
        max-height: 520px !important;
        z-index: 50 !important;
        transform-origin: bottom center !important;
    }
    #flow-ai-bubble {
        bottom: 16px !important;
        right: 16px !important;
    }

    /* Financial filter improvements on mobile */
    .flex-wrap.items-center.gap-4.w-full {
        gap: 8px !important;
    }
    .flex-wrap.items-center.gap-4.w-full > .flex-1 {
        min-width: 46% !important; /* Forces start and end dates side by side in row */
        padding: 8px 12px !important;
        border-radius: 12px !important;
    }
    .flex-wrap.items-center.gap-4.w-full > button {
        width: 100% !important; /* Button takes full width below inputs */
        padding: 12px !important;
        border-radius: 12px !important;
    }
}

@media (min-width: 768px) {
    #sidebar {
        transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    #sidebar.collapsed {
        width: 76px !important;
    }
    #sidebar.collapsed .sidebar-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 7.5rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        gap: 0.75rem !important;
    }
    #sidebar.collapsed #btn-toggle-sidebar {
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #sidebar.collapsed .sidebar-logo-container {
        order: 2 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    #sidebar.collapsed .sidebar-logo-container img {
        height: 2.25rem !important;
        width: 2.25rem !important;
        margin-right: 0 !important;
    }
    #sidebar.collapsed .logo-text,
    #sidebar.collapsed nav span,
    #sidebar.collapsed .nav-section-title,
    #sidebar.collapsed .logout-text {
        display: none !important;
    }
    #sidebar.collapsed .nav-section-divider {
        display: block !important;
    }
    #sidebar.collapsed .nav-item {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 4px 8px !important;
    }
    #sidebar.collapsed .logout-container {
        padding: 8px !important;
    }
    #sidebar.collapsed .logout-container button {
        padding: 12px 0 !important;
        justify-content: center !important;
    }
}
