:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #0ea5e9;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --gradient-main: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --gradient-danger: linear-gradient(135deg, #ef4444, #ec4899);
    --gradient-success: linear-gradient(135deg, #10b981, #0ea5e9);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ec4899);
    --gradient-cool: linear-gradient(135deg, #0ea5e9, #10b981);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(14, 165, 233, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --grid-size: 60px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: -1;
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(1.5%, -1.5%) rotate(0.5deg); }
    50% { transform: translate(-1%, 2%) rotate(-0.5deg); }
    75% { transform: translate(1%, 1%) rotate(0.3deg); }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
    50% { box-shadow: 0 0 50px rgba(14, 165, 233, 0.5); }
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.3), 0 0 20px rgba(14, 165, 233, 0.1); }
    50% { box-shadow: 0 0 10px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.2); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(0.5deg); }
    66% { transform: translateY(3px) rotate(-0.3deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(14, 165, 233, 0.2); }
    50% { border-color: rgba(14, 165, 233, 0.5); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes rippleExpand {
    0% { width: 0; height: 0; opacity: 0.5; }
    100% { width: 400px; height: 400px; opacity: 0; }
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-in-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-in-delay-5 { animation-delay: 0.5s; opacity: 0; }

.animate-scale { animation: scaleIn 0.5s ease forwards; }
.animate-slide-right { animation: slideInRight 0.5s ease forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }

/* ===== NAVBAR ===== */
.navbar-saas {
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-saas::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    opacity: 0.6;
}

.navbar-saas .navbar-brand {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    position: relative;
}

.navbar-saas .navbar-brand i {
    -webkit-text-fill-color: initial;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4));
}

.navbar-saas .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.navbar-saas .nav-link:hover,
.navbar-saas .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.navbar-saas .nav-link i { margin-right: 6px; }

/* ===== SIDEBAR ===== */
.sidebar-saas {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    width: 240px;
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-glass);
    padding: 1rem 0;
    overflow-y: auto;
    z-index: 1020;
    transition: transform 0.3s ease;
}

.sidebar-saas::before {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.3), rgba(139, 92, 246, 0.3), transparent);
    opacity: 0.5;
}

.sidebar-saas .nav-item {
    padding: 0 0.75rem;
    position: relative;
}

.sidebar-saas .nav-link {
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-saas .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-main);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-saas .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
    transform: translateX(4px);
}

.sidebar-saas .nav-link:hover::before {
    transform: scaleY(0.6);
}

.sidebar-saas .nav-link.active {
    color: #fff;
    background: var(--gradient-main);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3), 0 0 30px rgba(14, 165, 233, 0.1);
}

.sidebar-saas .nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-saas .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.sidebar-saas .nav-link.nav-sub-link {
    padding-left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 400;
}

.sidebar-saas .nav-link.nav-sub-link.active {
    font-weight: 600;
}

.sidebar-saas .nav-sub-items {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 0;
}

.sidebar-saas .nav-sub-items.expanded {
    max-height: 500px;
}

.sidebar-saas .nav-link.nav-parent {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.sidebar-saas .nav-chevron.rotated {
    transform: rotate(180deg);
}

.sidebar-saas .nav-section-title {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.main-saas {
    margin-left: 240px;
    margin-top: 60px;
    padding: 1.5rem 2rem;
    min-height: calc(100vh - 60px);
    animation: fadeIn 0.6s ease;
}

@media (max-width: 767.98px) {
    .sidebar-saas {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar-saas.show { transform: translateX(0); }
    .main-saas { margin-left: 0; padding: 1rem; }
}

/* ===== CARDS ===== */
.card-saas {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.5s ease forwards;
    overflow: hidden;
    position: relative;
}

.card-saas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    transition: left 0.6s ease;
}

.card-saas:hover::before {
    left: 100%;
}

.card-saas:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 12px 40px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

.card-saas .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-glass);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.card-saas .card-body { padding: 1.5rem; }

.card-saas .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-glass);
    padding: 1rem 1.5rem;
}

/* ===== 3D TILT CARDS ===== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card .card-saas {
    transition: transform 0.1s ease;
}

/* Stat cards */
.stat-card-saas {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    transition: all 0.4s ease;
    cursor: default;
}

.stat-card-saas::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card-saas:hover::after {
    opacity: 1;
}

.stat-card-saas:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-glow);
}

.stat-card-saas .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
}

.stat-card-saas .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-card-saas .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    animation: countUp 0.6s ease;
}

.stat-card-saas .stat-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-cyan { background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05)); border-color: rgba(14, 165, 233, 0.2); }
.stat-cyan .stat-icon { background: rgba(14, 165, 233, 0.2); color: var(--accent-cyan); box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
.stat-cyan .stat-value { color: var(--accent-cyan); }

.stat-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)); border-color: rgba(16, 185, 129, 0.2); }
.stat-green .stat-icon { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
.stat-green .stat-value { color: var(--accent-green); }

.stat-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)); border-color: rgba(239, 68, 68, 0.2); }
.stat-red .stat-icon { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
.stat-red .stat-value { color: var(--accent-red); }

.stat-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)); border-color: rgba(139, 92, 246, 0.2); }
.stat-purple .stat-icon { background: rgba(139, 92, 246, 0.2); color: var(--accent-purple); box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
.stat-purple .stat-value { color: var(--accent-purple); }

.stat-yellow { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); border-color: rgba(245, 158, 11, 0.2); }
.stat-yellow .stat-icon { background: rgba(245, 158, 11, 0.2); color: var(--accent-yellow); box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
.stat-yellow .stat-value { color: var(--accent-yellow); }

/* ===== TABLES ===== */
.table-saas {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    margin-bottom: 0;
}

.table-saas th {
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 0.85rem 0.75rem;
}

.table-saas td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--text-secondary);
}

.table-saas tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.table-saas tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.table-saas tbody tr {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== FORMS ===== */
select.form-select:not([style*="background"]),
select.form-control:not([style*="background"]) {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.3s ease;
}

.form-saas .form-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.form-saas .form-control,
.form-saas .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-saas .form-control:focus,
.form-saas .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15), 0 0 20px rgba(14, 165, 233, 0.1);
    color: var(--text-primary);
}

.form-saas .form-control::placeholder { color: var(--text-muted); }

select.form-select,
select.form-control,
.form-saas select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 10px 6px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-select option,
select.form-control option,
.form-saas select option {
    background-color: #1a1f2e;
    color: #e2e8f0;
}

.form-saas .form-control-color {
    height: 42px;
    padding: 4px;
}

/* ===== BUTTONS ===== */
.btn-saas {
    border-radius: var(--radius-md);
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-saas::after {
    content: '';
    position: absolute;
    top: var(--my, 50%);
    left: var(--mx, 50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn-saas:active::after {
    transform: translate(-50%, -50%) scale(4);
}

.btn-saas-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

.btn-saas-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(14, 165, 233, 0.5), 0 0 60px rgba(14, 165, 233, 0.1);
    color: #fff;
}

.btn-saas-danger {
    background: var(--gradient-danger);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

.btn-saas-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.5), 0 0 60px rgba(239, 68, 68, 0.1);
    color: #fff;
}

.btn-saas-success {
    background: var(--gradient-success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

.btn-saas-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5), 0 0 60px rgba(16, 185, 129, 0.1);
    color: #fff;
}

.btn-saas-ghost {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.btn-saas-ghost:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-saas-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

/* ===== BADGES ===== */
.badge-saas {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* ===== ALERTS ===== */
.alert-saas {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
}

.alert-saas.alert-danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.alert-saas.alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.alert-saas.alert-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: var(--accent-yellow); }
.alert-saas.alert-info { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.2); color: var(--accent-cyan); }

/* ===== PROGRESS ===== */
.progress-saas {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-saas::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
    background-size: 200% 100%;
}

.progress-saas .progress-bar {
    border-radius: 50px;
    background: var(--gradient-main);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    transition: width 1s ease;
}

/* ===== LANDING PAGE ===== */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.landing-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.7;
}

.hero-cta { margin-top: 2rem; }

.hero-cta .btn {
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 { color: var(--text-primary); font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== PRICING ===== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.15), 0 0 80px rgba(14, 165, 233, 0.05);
    transform: scale(1.03);
}

.pricing-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-cyan));
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

.pricing-card.featured::after {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-main);
    color: #fff;
    padding: 0.3rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-card .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card .pricing-features li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.pricing-card .pricing-features li:hover {
    padding-left: 5px;
    color: var(--text-primary);
}

.pricing-card .pricing-features li i { width: 20px; text-align: center; }
.pricing-card .pricing-features li .bi-check-circle-fill { color: var(--accent-green); }
.pricing-card .pricing-features li .bi-x-circle-fill { color: var(--text-muted); }
.pricing-card .pricing-features li .bi-dash-circle-fill { color: var(--text-muted); }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== LOGIN / REGISTER ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06), transparent 70%);
    top: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 6s ease-in-out infinite reverse;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card);
    animation: scaleIn 0.6s ease;
    position: relative;
    z-index: 1;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-logo i {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card .auth-logo h3 {
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.5rem;
}

.auth-card .auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== MISC ===== */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

.valor-positivo { color: var(--accent-green) !important; }
.valor-negativo { color: var(--accent-red) !important; }

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 3px;
}

.text-muted-saas { color: var(--text-muted) !important; }

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== MODAL SAAS ===== */
.modal-saas .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.modal-saas .modal-header {
    border-bottom: 1px solid var(--border-glass);
    padding: 1.25rem 1.5rem;
}

.modal-saas .modal-footer {
    border-top: 1px solid var(--border-glass);
    padding: 1rem 1.5rem;
}

.modal-saas .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ===== LOADING ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent-cyan);
    border-bottom-color: var(--accent-purple);
    border-radius: 50%;
    animation: spinSlow 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

/* ===== FOOTER ===== */
.footer-saas {
    background: rgba(10, 14, 26, 0.8);
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ===== GLOW EFFECT ===== */
.glow-cyan { box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
.glow-purple { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
.glow-green { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }

/* ===== NEON TEXT ===== */
.neon-text {
    text-shadow: 0 0 7px var(--accent-cyan), 0 0 20px rgba(14, 165, 233, 0.3);
}

/* ===== CYBER DIVIDER ===== */
.cyber-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.cyber-divider-vertical {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    margin: 0 1rem;
}

/* ===== PAGINATION ===== */
.pagination-saas .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pagination-saas .page-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

.pagination-saas .page-item.active .page-link {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* ===== DROPDOWN ===== */
.dropdown-menu-saas {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.dropdown-menu-saas .dropdown-item {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.dropdown-menu-saas .dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* ===== LIST GROUP ===== */
.list-group-saas .list-group-item {
    background: transparent;
    border-color: var(--border-glass);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.list-group-saas .list-group-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ===== REPORT PRINT HEADER ===== */
.report-print-header {
    display: none;
}

@media print {
    @page { margin: 15mm 10mm; }
    body { background: #fff !important; color: #000 !important; }
    .navbar-saas, .sidebar-saas, .sidebar-overlay, .btn-saas-ghost,
    .btn-saas-primary, .btn-saas-danger, .btn-saas-success,
    .navbar-toggler, .alert-saas, .card-header .btn { display: none !important; }
    .main-saas { margin: 0 !important; padding: 0 !important; }
    .report-print-header { display: block !important; margin-bottom: 20px; }
    .report-print-header-table { width: 100%; border-collapse: collapse; }
    .report-print-logo-cell { width: 80px; vertical-align: middle; }
    .report-print-logo { max-width: 80px; max-height: 80px; }
    .report-print-info-cell { vertical-align: middle; padding: 0 15px; }
    .report-print-company { font-size: 16px; font-weight: 800; color: #1a1a2e; }
    .report-print-title { font-size: 12px; color: #666; margin-top: 2px; }
    .report-print-date-cell { width: 180px; vertical-align: middle; text-align: right; }
    .report-print-date { font-size: 10px; color: #888; }
    .report-print-divider { border: none; border-top: 2px solid #1a1a2e; margin: 10px 0; }
    .card-saas { background: #fff !important; border: 1px solid #ddd !important; backdrop-filter: none !important; box-shadow: none !important; }
    .card-saas .card-header { color: #000 !important; border-bottom-color: #ddd !important; }
    .card-saas::before, .stat-card-saas::after { display: none !important; }
    .table-saas { --bs-table-color: #000 !important; }
    .table-saas th { color: #555 !important; border-bottom-color: #ccc !important; }
    .table-saas td { color: #333 !important; border-bottom-color: #eee !important; }
    .stat-card-saas { background: #f8f9fa !important; border-color: #ddd !important; }
    .stat-card-saas .stat-value { color: #000 !important; }
    .stat-card-saas .stat-label { color: #666 !important; }
    .stat-card-saas .stat-sub { color: #888 !important; }
    .pagination-saas, .page-title::after, .animate-in { animation: none !important; opacity: 1 !important; transform: none !important; }
    * { animation: none !important; transition: none !important; }
    body::before, body::after { display: none !important; }
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1019;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.show { display: block; }
