﻿/* ========================================
   LEGALFACTU - ADVANCED MODERN DESIGN SYSTEM
   ======================================== */

/* CSS Variables */
:root {
    /* Modern Brand Colors - Updated to match user panel */
    --brand-primary: #1e40af;
    --brand-secondary: #3b82f6;
    --brand-accent: #10b981;
    --brand-gradient: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    
    /* Client Panel Colors - Modern Blue Theme */
    --client-primary: #1e40af;
    --client-primary-light: #3b82f6;
    --client-primary-dark: #1e3a8a;
    
    /* Admin Panel Colors - Dark Professional Theme */
    --admin-primary: #111827;
    --admin-primary-light: #374151;
    --admin-primary-dark: #030712;
    --admin-accent: #f59e0b;
    --admin-accent-dark: #d97706;
    
    /* Status Colors */
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-dark: #2563eb;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 var(--space-4) 0;
    color: var(--gray-900);
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ========================================
   CLIENT PANEL LAYOUT
   ======================================== */

/* Client Header */
.modern-header, .topbar, .navbar {
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-primary-dark) 100%) !important;
    color: white !important;
    padding: 0 !important;
    box-shadow: var(--shadow-lg) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 70px !important;
    border: none !important;
}

.navbar-brand {
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: var(--space-4) var(--space-5) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    margin: 0 var(--space-1) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.navbar-nav .nav-link i {
    margin-right: var(--space-2) !important;
    font-size: 0.9rem !important;
}

/* Client Content */
.main-content, .content, .content-wrapper {
    margin-top: 70px !important;
    padding: var(--space-8) !important;
    min-height: calc(100vh - 70px) !important;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%) !important;
}

/* Modern Cards */
.modern-card, .card {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--gray-200) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.modern-card:hover, .card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px) !important;
}

/* Default card header for public pages */
.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%) !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: var(--space-6) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    color: var(--gray-800) !important;
}

/* Modern dark card headers only for dashboard pages */
.modern-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-bottom: 1px solid var(--primary-dark) !important;
    padding: var(--space-6) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    color: white !important;
}

.modern-card-header h1, .modern-card-header h2, .modern-card-header h3, 
.modern-card-header h4, .modern-card-header h5, .modern-card-header h6 {
    color: white !important;
}

.modern-card-body, .card-body {
    padding: var(--space-6) !important;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-primary-light) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
}

.stats-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-xl) !important;
}

.stats-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%) !important;
    z-index: 1 !important;
}

.stats-card .card-body {
    position: relative !important;
    z-index: 2 !important;
    padding: var(--space-6) !important;
}

.stats-icon {
    font-size: 2.5rem !important;
    opacity: 0.9 !important;
    margin-bottom: var(--space-3) !important;
}

.stats-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    opacity: 0.9 !important;
    margin-bottom: var(--space-2) !important;
}

.stats-value {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: var(--space-2) !important;
}

/* ========================================
   ADMIN PANEL LAYOUT
   ======================================== */

/* Admin Header */
.admin-header, .admin-navbar {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%) !important;
    color: white !important;
    padding: 0 !important;
    box-shadow: var(--shadow-lg) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 70px !important;
    border-bottom: 3px solid var(--admin-accent) !important;
}

.admin-header .navbar-brand, .admin-navbar .navbar-brand {
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

.admin-header .navbar-brand:hover, .admin-navbar .navbar-brand:hover {
    color: var(--admin-accent) !important;
}

.admin-badge {
    background: var(--admin-accent) !important;
    color: var(--admin-primary) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 0.25rem !important;
    margin-left: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.admin-header .nav-link, .admin-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: var(--space-4) var(--space-5) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    margin: 0 var(--space-1) !important;
}

.admin-header .nav-link:hover, .admin-navbar .nav-link:hover,
.admin-header .nav-link.active, .admin-navbar .nav-link.active {
    color: var(--admin-accent) !important;
    background-color: rgba(245, 158, 11, 0.15) !important;
}

/* Admin Content */
.admin-content {
    margin-top: 70px !important;
    padding: var(--space-8) !important;
    min-height: calc(100vh - 70px) !important;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%) !important;
}

/* Admin Cards */
.admin-card {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--gray-200) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.admin-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px) !important;
}

.admin-card-header {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-light) 100%) !important;
    color: white !important;
    border-bottom: none !important;
    padding: var(--space-6) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.admin-card-body {
    padding: var(--space-6) !important;
}

/* Admin Stats Cards */
.admin-stats-card {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-light) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
}

.admin-stats-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-xl) !important;
}

.admin-stats-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 100%) !important;
    z-index: 1 !important;
}

.admin-stats-card .card-body {
    position: relative !important;
    z-index: 2 !important;
    padding: var(--space-6) !important;
}

.admin-stats-icon {
    font-size: 2.5rem !important;
    opacity: 0.9 !important;
    margin-bottom: var(--space-3) !important;
    color: var(--admin-accent) !important;
}

.admin-stats-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    opacity: 0.9 !important;
    margin-bottom: var(--space-2) !important;
}

.admin-stats-value {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: var(--space-2) !important;
}

/* Admin User Avatar */
.admin-user-avatar {
    border-radius: var(--radius-full) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--admin-accent) !important;
    color: var(--admin-primary) !important;
    font-weight: 700 !important;
    border: 2px solid var(--admin-accent) !important;
}

/* Admin Language Switcher */
.admin-language-switcher {
    background: rgba(245, 158, 11, 0.15) !important;
    border-radius: var(--radius-full) !important;
    padding: var(--space-1) var(--space-3) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--space-1) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.admin-language-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: var(--space-1) var(--space-2) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
}

.admin-language-link:hover {
    color: var(--admin-accent) !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.admin-language-link.active {
    background: var(--admin-accent) !important;
    color: var(--admin-primary) !important;
}

.admin-language-divider {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem !important;
}

/* Admin Tables */
.admin-table th {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    color: var(--admin-primary) !important;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%) !important;
    padding: var(--space-4) var(--space-5) !important;
    border-bottom: 2px solid var(--admin-accent) !important;
}

.admin-table td {
    padding: var(--space-4) var(--space-5) !important;
    color: var(--gray-700) !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--gray-200) !important;
    font-size: 0.875rem !important;
}

.admin-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
}

/* Admin Badges */
.admin-badge-primary {
    background: var(--admin-accent) !important;
    color: var(--admin-primary) !important;
    padding: var(--space-2) var(--space-3) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.admin-badge-dark {
    background: var(--admin-primary) !important;
    color: white !important;
    padding: var(--space-2) var(--space-3) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Admin Buttons */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--admin-accent) 0%, var(--admin-accent-dark) 100%) !important;
    color: var(--admin-primary) !important;
    font-weight: 600 !important;
    border: none !important;
    padding: var(--space-3) var(--space-5) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    font-size: 0.875rem !important;
}

.btn-admin-primary:hover {
    background: linear-gradient(135deg, var(--admin-accent-dark) 0%, var(--admin-accent) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--admin-primary) !important;
}

.btn-admin-dark {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-light) 100%) !important;
    color: white !important;
    font-weight: 500 !important;
    border: none !important;
    padding: var(--space-3) var(--space-5) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    font-size: 0.875rem !important;
}

.btn-admin-dark:hover {
    background: linear-gradient(135deg, var(--admin-primary-light) 0%, var(--admin-primary) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

/* ========================================
   SHARED COMPONENTS
   ======================================== */

/* Buttons */
.btn {
    font-weight: 500 !important;
    padding: var(--space-3) var(--space-5) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    font-size: 0.875rem !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-dark) 100%) !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--info-dark) 0%, var(--info) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%) !important;
    color: white !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--success) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%) !important;
    color: white !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-dark) 0%, var(--danger) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-dark) 100%) !important;
    color: white !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--info-dark) 0%, var(--info) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%) !important;
    color: white !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-dark) 0%, var(--warning) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.btn-sm {
    padding: var(--space-2) var(--space-4) !important;
    font-size: 0.8rem !important;
}

/* Forms */
.form-control {
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--radius) !important;
    padding: var(--space-3) var(--space-4) !important;
    transition: all 0.2s ease !important;
    background: white !important;
    font-size: 0.875rem !important;
    color: var(--gray-700) !important;
}

.form-control:focus {
    border-color: var(--info) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

.form-label {
    font-weight: 600 !important;
    color: var(--gray-700) !important;
    margin-bottom: var(--space-2) !important;
    font-size: 0.875rem !important;
}

/* Tables */
.table th {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    color: var(--gray-600) !important;
    background: var(--gray-50) !important;
    padding: var(--space-4) var(--space-5) !important;
    border-bottom: 2px solid var(--gray-200) !important;
}

.table td {
    padding: var(--space-4) var(--space-5) !important;
    color: var(--gray-700) !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--gray-200) !important;
    font-size: 0.875rem !important;
}

.table tbody tr:hover {
    background: var(--gray-50) !important;
}

.table-responsive {
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--gray-200) !important;
}

/* Badges */
.badge {
    padding: var(--space-2) var(--space-3) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.badge-primary, .bg-primary {
    background: var(--info) !important;
    color: white !important;
}

.badge-success, .bg-success {
    background: var(--success) !important;
    color: white !important;
}

.badge-danger, .bg-danger {
    background: var(--danger) !important;
    color: white !important;
}

.badge-secondary, .bg-secondary {
    background: var(--gray-500) !important;
    color: white !important;
}

.badge-warning, .bg-warning {
    background: var(--warning) !important;
    color: white !important;
}

.bg-dark {
    background: var(--gray-800) !important;
    color: white !important;
}

/* Alerts */
.alert {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-5) !important;
    margin-bottom: var(--space-5) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--space-3) !important;
    font-weight: 500 !important;
    box-shadow: var(--shadow-sm) !important;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
    color: var(--success-dark) !important;
    border-left: 4px solid var(--success) !important;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%) !important;
    color: var(--danger-dark) !important;
    border-left: 4px solid var(--danger) !important;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
    color: var(--warning-dark) !important;
    border-left: 4px solid var(--warning) !important;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
    color: var(--info-dark) !important;
    border-left: 4px solid var(--info) !important;
}

/* Dropdown */
.dropdown-menu {
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-2) 0 !important;
    background: white !important;
    border: 1px solid var(--gray-200) !important;
}

.dropdown-item {
    padding: var(--space-3) var(--space-5) !important;
    transition: all 0.2s ease !important;
    color: var(--gray-700) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background: var(--gray-50) !important;
    color: var(--gray-900) !important;
}

/* User Avatar */
.user-img, .user-avatar {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: var(--radius-full) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Language Switcher */
.language-switcher {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-full) !important;
    padding: var(--space-1) var(--space-3) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--space-1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.language-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: var(--space-1) var(--space-2) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
}

.language-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.language-link.active {
    background: white !important;
    color: var(--gray-800) !important;
}

.language-divider {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem !important;
}

/* Avatars */
.avatar-initial {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    border-radius: var(--radius-full) !important;
    background-color: var(--info) !important;
    color: white !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation - ensure content is always visible */
.fade-in {
    opacity: 1 !important;
    animation: fadeInUp 0.6s ease-out forwards !important;
    animation-delay: var(--delay, 0s) !important;
}

.admin-fade-in {
    opacity: 1 !important;
    animation: fadeInUp 0.6s ease-out forwards !important;
    animation-delay: var(--delay, 0s) !important;
}

/* Ensure all main content is visible by default - prevent disappearing content */
.main-content, .main-content > *, .main-content .row, .main-content .col-md-4, .main-content .col-md-3, .main-content .col-12,
.admin-content, .admin-content > *, .admin-content .row,
.content, .content > *, .content .row,
.content-wrapper, .content-wrapper > *, .content-wrapper .row,
.modern-card, .stats-card, .card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Specific dashboard content visibility */
body .main-content .row {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Footer */
.footer {
    background: white !important;
    border-top: 1px solid var(--gray-200) !important;
    padding: var(--space-6) 0 !important;
    margin-top: auto !important;
    color: var(--gray-600) !important;
    font-size: 0.875rem !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-content, .admin-content, .content, .content-wrapper {
        padding: var(--space-4) !important;
    }
    
    .stats-value, .admin-stats-value {
        font-size: 2rem !important;
    }
    
    .stats-icon, .admin-stats-icon {
        font-size: 2rem !important;
    }
    
    .navbar-nav {
        padding: var(--space-4) 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: var(--space-3) var(--space-4) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modern-card-body, .admin-card-body, .card-body {
        padding: var(--space-4) !important;
    }
    
    .modern-card-header, .admin-card-header, .card-header {
        padding: var(--space-4) !important;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    
    .btn {
        font-size: 0.8rem !important;
        padding: var(--space-2) var(--space-4) !important;
    }
}

/* ========================================
   MODERN FRONTEND STYLES
   ======================================== */

/* Modern Header (User Panel Style) */
.modern-header {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.98) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.15);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    background: 
        linear-gradient(135deg, rgba(29, 78, 216, 0.98) 0%, rgba(30, 64, 175, 1) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-header .navbar-brand {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-header .navbar-brand:hover {
    color: white !important;
    transform: translateY(-1px);
}

.modern-header .navbar-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.modern-header .navbar-brand:hover .navbar-logo {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.1);
}

.modern-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    position: relative;
    overflow: hidden;
}

.modern-header .nav-link:hover,
.modern-header .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.modern-header .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.modern-header .brand-icon {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 0.6rem;
    border-radius: 14px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-header .brand-icon i {
    color: #3b82f6;
    font-size: 1.25rem;
    font-weight: 600;
}

.modern-header .navbar-brand:hover .brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.modern-header .btn-outline-light.btn-auth {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

.modern-header .btn-outline-light.btn-auth:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.modern-header .btn-light.btn-auth {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #3b82f6 !important;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.modern-header .btn-light.btn-auth:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    color: #1d4ed8 !important;
}

/* Mobile Responsive Styles for Public Header */
@media (max-width: 992px) {
    .modern-header .navbar-collapse {
        background: rgba(59, 130, 246, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .modern-header .navbar-nav {
        margin-bottom: 1rem;
    }

    .modern-header .nav-item {
        margin-bottom: 0.5rem;
    }

    .modern-header .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .modern-header .nav-link:hover,
    .modern-header .nav-link.active {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    }

    .modern-header .auth-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .modern-header .btn-auth {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        border-radius: 25px;
    }

    .modern-header .btn-outline-light.btn-auth {
        border-width: 2px;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .modern-header .btn-outline-light.btn-auth:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
    }

    .modern-header .btn-light.btn-auth {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #1e40af !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }

    .modern-header .btn-light.btn-auth:hover {
        background: white !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 768px) {
    .modern-header {
        height: 65px;
        padding: 0.5rem 0;
    }

    .modern-header .navbar-brand {
        font-size: 1.3rem;
    }

    .modern-header .navbar-logo {
        height: 40px;
        max-width: 150px;
    }

    .modern-header .brand-icon {
        padding: 0.5rem;
        margin-right: 0.5rem;
    }

    .modern-header .brand-icon i {
        font-size: 1.1rem;
    }

    .modern-header .navbar-toggler {
        border: none !important;
        padding: 0.5rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
    }

    .modern-header .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.2);
    }

    .modern-header .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        filter: brightness(1.2);
    }

    .modern-header .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: 12px;
    }

    .modern-header .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.95rem;
    }

    .modern-header .btn-auth {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .modern-header {
        height: 60px;
        padding: 0.4rem 0;
    }

    .modern-header .navbar-brand {
        font-size: 1.2rem;
    }

    .modern-header .navbar-logo {
        height: 35px;
        max-width: 130px;
    }

    .modern-header .brand-icon {
        padding: 0.4rem;
        margin-right: 0.4rem;
    }

    .modern-header .brand-icon i {
        font-size: 1rem;
    }

    .modern-header .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.8rem;
        border-radius: 10px;
    }

    .modern-header .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .modern-header .auth-buttons {
        gap: 0.5rem;
        margin-top: 0.8rem;
    }

    .modern-header .btn-auth {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Mobile menu active state */
    .modern-header .navbar-collapse.show {
        animation: slideDown 0.3s ease-out;
    }

    .modern-header .navbar-collapse.collapsing {
        animation: slideUp 0.3s ease-in;
    }
}

/* Mobile menu animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Ensure mobile menu is above other content */
.modern-header .navbar-collapse {
    z-index: 1001;
}

/* Improve mobile touch targets */
@media (max-width: 992px) {
    .modern-header .nav-link,
    .modern-header .btn-auth {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Modern Clean Navbar with Scroll Effects */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    position: fixed;
    top: 0;
    width: 100%;
}

.modern-navbar.scrolled {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 40px rgba(30, 41, 59, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}



/* Scrolled state text colors */
.modern-navbar.scrolled .navbar-brand {
    color: white !important;
}

.modern-navbar.scrolled .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modern-navbar.scrolled .navbar-nav .nav-link:hover,
.modern-navbar.scrolled .navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.modern-navbar.scrolled .language-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-navbar.scrolled .language-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modern-navbar.scrolled .language-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.modern-navbar.scrolled .language-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.modern-navbar.scrolled .language-divider {
    color: rgba(255, 255, 255, 0.4) !important;
}

.modern-navbar.scrolled .btn-outline-light.btn-auth {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

.modern-navbar.scrolled .btn-outline-light.btn-auth:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
}

.modern-navbar .navbar-brand {
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
}

.modern-navbar .brand-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.6rem;
    border-radius: 14px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-navbar .brand-icon i {
    font-size: 1.5rem;
    color: white;
}

.modern-navbar .navbar-brand:hover .brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modern-navbar .navbar-nav .nav-link {
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    margin: 0 0.25rem !important;
    position: relative;
}

.modern-navbar .navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.modern-navbar .navbar-nav .nav-link:hover,
.modern-navbar .navbar-nav .nav-link.active {
    color: #1e293b !important;
    background: rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px);
}

.modern-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-navbar .navbar-nav .nav-link:hover::after,
.modern-navbar .navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Modern Language Switcher */
.modern-navbar .language-switcher {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    margin-right: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.modern-navbar .language-link {
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.modern-navbar .language-link:hover {
    color: #1e293b !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.modern-navbar .language-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.modern-navbar .language-divider {
    color: rgba(100, 116, 139, 0.5) !important;
    margin: 0 0.25rem;
}

/* Clean Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-auth {
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    font-size: 0.85rem !important;
    text-decoration: none;
    min-width: 70px;
    text-align: center;
}

.btn-outline-light.btn-auth {
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
}

.btn-outline-light.btn-auth:hover {
    color: #1e293b !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.btn-light.btn-auth {
    color: white !important;
    background: #4f46e5 !important;
    border: 1px solid #4f46e5 !important;
}

.btn-light.btn-auth:hover {
    background: #4338ca !important;
    border-color: #4338ca !important;
}

.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Old footer styles removed - using modern dark footer below */

/* Modern Button Enhancements */
.btn-accent {
    background: var(--brand-accent) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3) !important;
}

.btn-accent:hover {
    background: #00b147 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4) !important;
    color: white !important;
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.hover-lift {
    transition: all 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-2px) !important;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.pricing-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    color: var(--brand-primary) !important;
}

.contact-card h5 {
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card.border-primary {
    border-color: var(--brand-primary) !important;
    position: relative;
}

.pricing-card.border-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--brand-gradient);
    border-radius: 12px;
    z-index: -1;
}

.pricing-amount {
    color: var(--brand-primary) !important;
    font-weight: 800 !important;
}

.pricing-amount small {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Modern Alerts */
.modern-alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.modern-alert i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.modern-alert .btn-close {
    background: none !important;
    opacity: 0.7 !important;
}

.modern-alert .btn-close:hover {
    opacity: 1 !important;
}

/* Responsive Design for Modern Elements */
@media (max-width: 992px) {
    .modern-navbar .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .modern-navbar .language-switcher {
        margin: 1rem 0;
        justify-content: center;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .btn-auth {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Navbar Toggle Improvements */
.modern-navbar .navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
}

.modern-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.modern-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-badges {
        justify-content: flex-start;
    }
    
    .footer-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .modern-navbar .brand-text {
        font-size: 1.4rem;
    }
    
    .modern-navbar .brand-icon {
        padding: 0.4rem;
        margin-right: 0.5rem;
    }
    
    .modern-navbar .brand-icon i {
        font-size: 1.2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
}

/* Professional Modern Styles for Legal Factu */

/* AOS Animation Library Styles */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 40px, 0);
}

[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="fade-left"] {
    transform: translate3d(-40px, 0, 0);
}

[data-aos="fade-left"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="zoom-in"] {
    transform: scale3d(0.6, 0.6, 0.6);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale3d(1, 1, 1);
}

/* Professional Features Section */
.features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-icon.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Professional Pricing Section */
.pricing-section {
    background: white;
    padding: 3rem 0;
}

.pricing-card {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.pricing-card.featured {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

.popular-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pricing-plan {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card.featured .pricing-plan {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.pricing-card.featured .pricing-amount {
    color: white;
}

.pricing-period {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-card.featured .pricing-period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.4rem 0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pricing-card.featured .pricing-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features .fas.fa-check {
    color: #10b981;
    font-size: 0.8rem;
}

.pricing-card.featured .pricing-features .fas.fa-check {
    color: #34d399;
}

.pricing-features .fas.fa-times {
    color: #ef4444;
    font-size: 0.8rem;
}

.pricing-card.featured .pricing-features .fas.fa-times {
    color: #fca5a5;
}

/* Enhanced button styling for pricing cards */
.btn-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Professional Testimonials - Compact */
.testimonials-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 3rem 0;
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    height: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Professional CTA Section */
.cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-cta-white {
    background: white;
    color: #10b981;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #10b981;
}

/* Modern Professional Footer - Clean Design */
.modern-footer {
    background: 
        linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
}



.footer-content {
    margin-bottom: 3rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--client-primary-light) 0%, var(--client-primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding-left: 0;
    position: relative;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #60a5fa;
    padding-left: 12px;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -8px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #60a5fa;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.footer-contact-item:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
}

.footer-contact-item i {
    width: 20px;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.footer-contact-item:hover i {
    color: #3b82f6;
    transform: scale(1.1);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social-link:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.certification-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-weight: 600;
}

.certification-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.certification-badge i {
    color: #10b981;
    transition: all 0.3s ease;
}

.certification-badge:hover i {
    color: #34d399;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #10b981;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #10b981;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Professional Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.6s ease-out;
}

/* Professional Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-3px);
    }
    
    .pricing-card {
        max-width: 400px;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 768px) {
    .feature-card,
    .pricing-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .pricing-amount {
        font-size: 2rem;
    }
    
    .testimonials-section {
        padding: 2rem 0;
    }
    
    .testimonial-card {
        padding: 1.2rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========================================
   ENHANCED HERO SECTION ANIMATIONS
   ======================================== */

/* Advanced Background Wave */
@keyframes backgroundWave {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(10px) translateY(-5px) rotate(1deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-5px) translateY(10px) rotate(-0.5deg);
        opacity: 0.4;
    }
    75% {
        transform: translateX(5px) translateY(-10px) rotate(0.5deg);
        opacity: 0.6;
    }
}

/* Grid Flow Animation */
@keyframes gridFlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Enhanced Float Animation */
@keyframes enhancedFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(8px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) translateX(-12px) rotate(180deg) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(5px) rotate(270deg) scale(1.05);
        opacity: 0.7;
    }
}

/* Morph Shape Animation */
@keyframes morphShape {
    0%, 100% {
        border-radius: 50%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1.1) rotate(90deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
        transform: scale(1.05) rotate(270deg);
    }
}

/* Badge Glow Animation */
@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    }
    50% {
        box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    }
}

/* Badge Shine Animation */
@keyframes badgeShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Rocket Bounce Animation */
@keyframes rocketBounce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-5deg);
    }
    75% {
        transform: translateY(-1px) rotate(5deg);
    }
}

/* Text Glow Animation */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 0 6px 25px rgba(30, 41, 59, 0.15);
    }
}

/* Advanced Gradient Flow */
@keyframes advancedGradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 25%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 25% 0%;
    }
}

/* Text Pulse Animation */
@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* Ultra Card Float */
@keyframes ultraCardFloat {
    0%, 100% {
        transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
    }
}

/* Grid Move Animation */
@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* Feature Badge Float */
@keyframes featureBadgeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Title Glow Animation */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 0 6px 25px rgba(30, 41, 59, 0.15);
    }
}

/* Dot Pulse Animation */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Button Shine Animation */
@keyframes buttonShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Number Count Animation */
@keyframes numberCount {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Revolutionary Card Float */
@keyframes revolutionaryCardFloat {
    0%, 100% {
        transform: perspective(1200px) rotateY(-4deg) rotateX(3deg) translateY(0px);
    }
    50% {
        transform: perspective(1200px) rotateY(-4deg) rotateX(3deg) translateY(-8px);
    }
}

/* Speed Badge Pulse */
@keyframes speedBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
    }
}

/* Zap Spin Animation */
@keyframes zapSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* VeriFáctu Badge Pulse */
@keyframes veriBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }
}

/* QR Glow Animation */
@keyframes qrGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
        border-color: #10b981;
    }
    50% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        border-color: #059669;
    }
}

/* QR Center Pulse */
@keyframes qrCenterPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

/* QR Scan Line */
@keyframes qrScanLine {
    0%, 100% {
        top: 0;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        top: calc(100% - 2px);
    }
}

/* QR Verification Pulse */
@keyframes qrVerificationPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
    }
}

/* Subtle Background Movement */
@keyframes subtleMove {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.8;
    }
}

/* Gentle Floating Animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-8px) translateX(5px);
        opacity: 0.8;
    }
}

/* Enhanced Card Float */
@keyframes enhancedCardFloat {
    0%, 100% {
        transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-5px);
    }
}

/* Enhanced Badge Pulse */
@keyframes enhancedBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }
}

/* Gradient Flow Animation */
@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Shine Effect */
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* QR Code Blink */
@keyframes qrBlink {
    0%, 50% {
        opacity: 0.3;
    }
    25%, 75% {
        opacity: 1;
    }
}

/* Line Shimmer Effect */
@keyframes lineShimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Total Pulse Animation */
@keyframes totalPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

/* Decorative Spin */
@keyframes decorativeSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Decorative Bob */
@keyframes decorativeBob {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Badge Pulse Animation */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Rocket Spin Animation */
@keyframes rocketSpin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Card Float Animation */
@keyframes cardFloat {
    0%, 100% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px);
    }
}

/* Badge Bounce Animation */
@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* Decorative Rotate Animation */
@keyframes decorativeRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Decorative Float Animation */
@keyframes decorativeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Enhanced Gradient Animation for Text */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Compact Hero Section Responsive Design */
.compact-hero-section {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.compact-hero-section .container {
    position: relative;
    z-index: 10;
}

.enhanced-invoice-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact Hero Content Responsive Scaling */
@media (max-width: 1200px) {
    .compact-hero-section {
        min-height: 70vh;
        padding: 80px 0 50px 0;
    }
    
    .compact-hero-section .enhanced-invoice-card {
        max-width: 350px !important;
    }
}

@media (max-width: 992px) {
    .compact-hero-section {
        min-height: auto;
        padding: 80px 0 40px 0;
    }
    
    .compact-hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .compact-hero-section h1 {
        font-size: clamp(2rem, 6vw, 3rem) !important;
        text-align: center;
    }
    
    .compact-hero-section .hero-content {
        text-align: center !important;
    }
    
    .compact-hero-section .enhanced-invoice-card {
        max-width: 320px !important;
        padding: 1.5rem !important;
        transform: none !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .compact-hero-section {
        padding: 70px 0 30px 0;
    }
    
    .compact-hero-section .hero-badge {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .compact-hero-section .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }
    
    .compact-hero-section .cta-buttons a {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .compact-hero-section .enhanced-invoice-card {
        padding: 1.2rem !important;
        border-radius: 20px !important;
        max-width: 300px !important;
    }
    
    .compact-hero-section .floating-elements {
        opacity: 0.3;
    }
}

@media (max-width: 576px) {
    .compact-hero-section h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
        line-height: 1.3 !important;
    }
    
    .compact-hero-section p {
        font-size: 1rem !important;
    }
    
    .compact-hero-section .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
    }
    
    .compact-hero-section .enhanced-invoice-card {
        padding: 1rem !important;
        max-width: 280px !important;
    }
    
    .compact-hero-section .enhanced-invoice-card h3 {
        font-size: 1.2rem !important;
    }
    
    .compact-hero-section .enhanced-invoice-card .total-amount {
        font-size: 1.8rem !important;
    }
}

/* Performance Optimization - Reduce Animations on Mobile */
@media (prefers-reduced-motion: reduce) {
    .compact-hero-section *,
    .modern-hero-section * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Glassmorphism Support */
.compact-hero-section .hero-badge,
.compact-hero-section .enhanced-invoice-card,
.enhanced-hero-section .hero-badge,
.enhanced-hero-section .revolutionary-invoice-card,
.modern-hero-section .hero-badge,
.modern-hero-section .feature-pill,
.modern-hero-section .stat-item,
.modern-hero-section .btn-hero-secondary,
.modern-hero-section .invoice-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Ultra Compact Enhanced Hero Section */
@media (max-width: 768px) {
    .enhanced-hero-section {
        padding: 80px 0 30px 0 !important;
    }
    
    .enhanced-hero-section h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
        margin-bottom: 0.8rem !important;
    }
    
    .enhanced-hero-section p {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .enhanced-hero-section .revolutionary-invoice-card {
        padding: 1.5rem !important;
        max-width: 350px !important;
    }
    
    .enhanced-hero-section .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .enhanced-hero-section .cta-buttons a {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Ensure content is visible by default */
.compact-hero-section .hero-content,
.compact-hero-section .hero-visual,
.compact-hero-section h1,
.compact-hero-section .cta-buttons,
.modern-hero-section .hero-content,
.modern-hero-section .hero-visual,
.modern-hero-section .hero-title,
.modern-hero-section .feature-pills,
.modern-hero-section .cta-buttons,
.modern-hero-section .hero-stats {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* AOS fallback - ensure content is always visible */
.compact-hero-section [data-aos],
.modern-hero-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.6s ease;
}

/* Webkit specific fixes for better cross-browser support */
@supports (-webkit-backdrop-filter: blur(20px)) {
    .compact-hero-section .hero-badge,
    .compact-hero-section .enhanced-invoice-card,
    .modern-hero-section .hero-badge,
    .modern-hero-section .feature-pill,
    .modern-hero-section .stat-item,
    .modern-hero-section .btn-hero-secondary,
    .modern-hero-section .invoice-card {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Firefox fallback for backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .modern-hero-section .hero-badge {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .modern-hero-section .feature-pill {
        background: rgba(16, 185, 129, 0.25) !important;
    }
    
    .modern-hero-section .stat-item {
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    .modern-hero-section .btn-hero-secondary {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .modern-hero-section .invoice-card {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}