/* Ultra Modern Dark Theme for Wealth Management Dashboard */

:root {
    /* Fixed nav clearance — keep in sync with .glass-navbar-shell + .glass-navbar-panel height */
    --navbar-total-offset: 5.75rem;
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #6c757d;
    --success-color: #04ff8b;
    --success-gradient: linear-gradient(135deg, #04ff8b 0%, #00d9ff 100%);
    --danger-color: #dc3545;
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --warning-color: #ffc107;
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-color: #0dcaf0;
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(30, 35, 60, 0.8);
    --card-bg-light: rgba(40, 45, 70, 0.9);
    --border-color: rgba(100, 110, 140, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0a0e27 100%);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.6;
    padding-top: var(--navbar-total-offset);
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(4, 255, 139, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5%, 5%) rotate(120deg);
    }
    66% {
        transform: translate(-5%, 5%) rotate(240deg);
    }
}

/* Subtle grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Modern Typography System */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, #ffffff 0%, #04ff8b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p {
    color: #e9ecef;
    font-size: 1rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Gradient text utilities */
.gradient-text-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-success {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-danger {
    background: var(--danger-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card text improvements */
.card-title {
    color: #ffffff !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-text {
    color: #e9ecef !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-body p {
    color: #e9ecef;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-body span,
.card-body div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Table text improvements */
.table-dark {
    color: #ffffff;
}

/* Mobile-friendly chart containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }

    /* Mobile-specific card adjustments */
    .card-body {
        padding: 1rem 0.75rem;
    }

    /* Reduce font sizes on mobile */
    .card-title {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    /* Mobile button groups */
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    /* Stack info cards on mobile */
    .row .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    @media (max-width: 576px) {
        .row .col-6 {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 0.5rem;
        }
    }

    /* Responsive text sizes */
    p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Mobile-friendly progress bars */
    .progress {
        height: 0.75rem;
    }

    /* Adjust spacing for mobile */
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .chart-container {
        height: 200px;
    }

    /* Extra small mobile adjustments */
    .card-body {
        padding: 0.75rem 0.5rem;
    }

    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    /* Ensure text is readable on very small screens */
    p, span, div {
        font-size: 0.85rem;
    }

    strong {
        font-size: 0.9rem;
    }
}

/* Trading signal styles */
.progress-bar {
    transition: width 0.6s ease;
}

/* Risk meter specific styles */
#riskMeter .progress-bar {
    transition: all 0.8s ease;
}

/* Enhanced hover effects for mobile */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
}

/* Touch-friendly buttons */
.btn {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    .btn {
        min-height: 40px;
        padding: 0.5rem 0.75rem;
    }
}

.table-dark td,
.table-dark th {
    color: #ffffff;
}

/* Form label improvements */
.form-label {
    color: #ffffff !important;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

/* Navbar brand improvements */
.navbar-brand {
    color: #ffffff !important;
}

.navbar-brand:hover {
    color: #ffffff !important;
}

/* Button text contrast */
.btn-outline-primary {
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: var(--primary-color);
}

/* Alert text improvements */
.alert-info {
    color: #055160;
}

.alert-success {
    color: #0a3622;
}

.alert-warning {
    color: #664d03;
}

.alert-danger {
    color: #58151c;
}

/* Enhanced limit reached UI */
.limit-reached-card {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease-in-out;
}

.limit-reached-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.limit-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.gradient-btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffca2c);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.gradient-btn-warning:hover {
    background: linear-gradient(45deg, #ffca2c, #ffd43b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.gradient-btn-success {
    background: linear-gradient(45deg, #04ff8b, #00e676);
    border: none;
    box-shadow: 0 5px 15px rgba(4, 255, 139, 0.3);
    transition: all 0.3s ease;
}

.gradient-btn-success:hover {
    background: linear-gradient(45deg, #00e676, #00c853);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 255, 139, 0.4);
}

.benefits-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

/* Small text and badge improvements */
.small,
small {
    color: #adb5bd !important;
}

.badge {
    font-weight: 600;
    font-size: 0.75rem;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
    color: #ffffff !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
    color: #ffffff !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #000000 !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
    color: #000000 !important;
}

/* List group improvements */
.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: #e9ecef;
}

.list-group-item:hover {
    background-color: var(--border-color);
}

/* Dropdown improvements */
.dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dropdown-item {
    color: #e9ecef !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--border-color);
    color: #ffffff !important;
}

/* Dropdown toggle improvements */
.nav-link.dropdown-toggle {
    color: #ffffff !important;
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* Navbar toggler improvements */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile navigation improvements */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 0.25rem;
    }
}

/* Modal improvements */
.modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.modal-header,
.modal-body,
.modal-footer {
    color: #e9ecef;
}

.modal-title {
    color: #ffffff !important;
}

/* Pagination improvements */
.page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: #e9ecef;
}

.page-link:hover {
    background-color: var(--border-color);
    color: #ffffff;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Ultra Modern Card Design */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(102, 126, 234, 0.5);
}

/* Gradient card variants */
.card.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(135deg, #667eea, #764ba2, #04ff8b) border-box;
}

.card.glow-effect {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3),
                0 8px 32px rgba(0, 0, 0, 0.3);
}

.card.glow-effect:hover {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5),
                0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Ultra Modern Button Designs */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Gradient Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-info {
    background: var(--info-gradient);
    color: white;
}

/* Outline buttons with gradient borders */
.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    border-radius: 14px;
}

/* Enhanced card animations */
.card-body {
    transition: all 0.3s ease-in-out;
}

.card:hover .card-body {
    transform: scale(1.02);
}

/* Modern Wealth Management Enhancements */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Card header improvements */
.card-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Chart container enhancements */
.chart-container {
    position: relative;
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: scale(1.01);
}

/* Metric card styling */
.card .fa-wallet,
.card .fa-piggy-bank,
.card .fa-chart-line,
.card .fa-percentage {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.card:hover .fa-wallet,
.card:hover .fa-piggy-bank,
.card:hover .fa-chart-line,
.card:hover .fa-percentage {
    opacity: 1;
    transform: scale(1.1);
}

/* Glass morphism effect for special cards */
.glass-card {
    background: rgba(52, 58, 64, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Performance indicator animations */
@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

.performance-positive {
    animation: pulse-success 2s infinite;
}

.performance-negative {
    animation: pulse-danger 2s infinite;
}

/* Enhanced button styling for chart controls */
.btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-group-sm .btn:hover {
    transform: translateY(-1px);
}

.btn-group-sm .btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* Wealth planner specific styles */
.goal-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(13, 110, 253, 0.1) 100%);
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
}

.goal-card:hover {
    border-left-width: 8px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(13, 110, 253, 0.15) 100%);
}

/* Progress bar enhancements */
.progress {
    height: 12px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.progress-bar {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Stat card number styling */
.card h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Dashboard grid improvements */
@media (min-width: 1200px) {
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Chart legend improvements */
.chartjs-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.chartjs-legend-item {
    display: flex;
    align-items: center;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.chartjs-legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   ULTRA MODERN VISUAL ENHANCEMENTS
   ============================================ */

/* Floating Elements Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Modern Input Fields */
.form-control {
    background-color: rgba(30, 35, 60, 0.6);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: #ffffff;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background-color: rgba(40, 45, 70, 0.8);
    border-color: rgba(102, 126, 234, 0.8);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Modern Select Dropdowns */
.form-select {
    background-color: rgba(30, 35, 60, 0.6);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-select:focus {
    background-color: rgba(40, 45, 70, 0.8);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.2);
}

/* Badge Enhancements */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge.bg-success {
    background: var(--success-gradient) !important;
    box-shadow: 0 4px 15px rgba(4, 255, 139, 0.3);
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.badge.bg-info {
    background: var(--info-gradient) !important;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}

.badge.bg-danger {
    background: var(--danger-gradient) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Icon Enhancements */
.fas, .far, .fab {
    transition: all 0.3s ease;
}

.card:hover .fas,
.card:hover .far,
.card:hover .fab {
    transform: scale(1.1) rotate(5deg);
}

/* Stat Number Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Tooltip Modern Style */
.tooltip {
    backdrop-filter: blur(10px);
}

.tooltip-inner {
    background: rgba(30, 35, 60, 0.95);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Alert Modern Design */
.alert {
    border-radius: 15px;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: visible;
    z-index: 1040;
    animation: slideInDown 0.4s ease-out;
}

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

.alert-success {
    background: linear-gradient(135deg, rgba(4, 255, 139, 0.2), rgba(0, 217, 255, 0.15)) !important;
    border-color: rgba(4, 255, 139, 0.5);
    color: #ffffff !important;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 159, 64, 0.15)) !important;
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffffff !important;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(255, 107, 107, 0.15)) !important;
    border-color: rgba(220, 53, 69, 0.5);
    color: #ffffff !important;
}

.alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(79, 172, 254, 0.15)) !important;
    border-color: rgba(13, 202, 240, 0.5);
    color: #ffffff !important;
}

.alert h5,
.alert h6 {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.alert p {
    color: #ffffff !important;
    margin-bottom: 0;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 35, 60, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid rgba(30, 35, 60, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #04ff8b);
}

/* Loading Spinner Modern */
.spinner-border {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
}

/* Table Modern Enhancements */
.table-dark {
    background-color: transparent;
}

.table-dark thead th {
    background: rgba(40, 45, 70, 0.6);
    border-color: var(--glass-border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table-dark tbody tr {
    border-color: var(--glass-border);
    transition: all 0.3s ease;
}

.table-dark tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
}

/* Modal Modern Design */
.modal-content {
    background: rgba(30, 35, 60, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(40, 45, 70, 0.5);
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(40, 45, 70, 0.5);
    border-radius: 0 0 20px 20px;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.1) 40px, rgba(255, 255, 255, 0.05) 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}

/* Micro Interactions */
.micro-interaction {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-interaction:active {
    transform: scale(0.95);
}

/* Gradient Divider */
.gradient-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #04ff8b, transparent);
    margin: 2rem 0;
    border: none;
}

/* Success/Error States with Icons */
.state-success {
    position: relative;
    padding-left: 3rem;
}

.state-success::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    :root {
        --navbar-total-offset: 4.5rem;
    }

    .glass-navbar .navbar-brand {
        font-size: 1.4rem;
    }

    .glass-navbar .nav-link {
        padding: 0.65rem 1rem !important;
        margin: 0.15rem 0;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-total-offset: 4.25rem;
    }

    .card {
        border-radius: 15px;
        margin-bottom: 1rem;
    }

    .btn {
        border-radius: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .glass-navbar .navbar-brand {
        font-size: 1.3rem;
    }

    .toast {
        min-width: 280px;
        max-width: 90vw;
    }

    .alert {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    :root {
        --navbar-total-offset: 4rem;
    }

    .glass-navbar .navbar-brand {
        font-size: 1.2rem;
    }

    .card {
        border-radius: 12px;
    }
}

/* Improved responsiveness */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Main app nav only — avoid stripping padding from other potential navbars */
.glass-navbar.navbar {
    padding: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.btn {
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #ffffff;
}

.form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.form-select {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #ffffff;
}

.form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

.nav-tabs .nav-link {
    color: #adb5bd;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    border-bottom-color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    color: white;
    border-color: transparent;
    border-bottom-color: var(--primary-color);
}

.table-dark {
    --bs-table-bg: var(--card-bg);
}

.progress {
    background-color: var(--border-color);
}

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

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

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

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

@media (min-width:1200px) {
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 300px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Global text readability fixes */
.text-dark {
    color: #ffffff !important;
}

.text-secondary {
    color: #adb5bd !important;
}

/* Bootstrap card text improvements */
.card .card-body p,
.card .card-body li,
.card .card-body span:not(.badge) {
    color: #e9ecef;
}

.card .card-body strong,
.card .card-body .card-title {
    color: #ffffff;
}

.card .card-header h5,
.card .card-header h6 {
    color: #ffffff !important;
}

/* List styling improvements */
.card ul li,
.card ol li {
    color: #e9ecef;
}

main ul li,
main ol li {
    color: #e9ecef;
}

/* Strong and emphasis text */
strong,
b {
    color: #ffffff;
}

em,
i {
    color: #e9ecef;
}

/* Bootstrap utility classes override */
.text-light {
    color: #e9ecef !important;
}

/* Form text improvements */
.form-text {
    color: #adb5bd !important;
}

/* Main content area text visibility */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
    color: #ffffff;
}

main p {
    color: #e9ecef;
}

main .list-unstyled li {
    color: #e9ecef;
}

/* Container text visibility */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6 {
    color: #ffffff;
}

.container p {
    color: #e9ecef;
}

/* Ensure all text content is visible */
body * {
    color: inherit;
}

body {
    color: #e9ecef;
}

/* Ultra Modern Glassmorphic Navbar — outer track + floating panel (desktop) */
.glass-navbar {
    background: transparent;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0);
    transition: box-shadow 0.35s ease;
}

.glass-navbar-shell {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem 0;
    margin: 0 auto;
    transition: padding 0.35s ease;
}

@media (max-width: 991.98px) {
    .glass-navbar-shell {
        padding: 0;
    }
}

.glass-navbar.scrolled .glass-navbar-shell {
    padding-top: 0.4rem;
}

.glass-navbar-panel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 0.65rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .glass-navbar-panel .navbar-collapse {
        flex-grow: 1;
    }
}

@media (max-width: 991.98px) {
    .glass-navbar-panel {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0.5rem 0.75rem;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }
}

.glass-navbar-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #04ff8b, transparent);
    opacity: 0.75;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .glass-navbar-panel::before {
        border-radius: 0;
    }
}

.glass-navbar.scrolled .glass-navbar-panel {
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
    background: rgba(8, 11, 32, 0.97);
}

@media (min-width: 992px) {
    .glass-navbar-nav-secondary {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        padding-left: 1rem !important;
        margin-left: 0.5rem;
    }
}

.navbar-brand-icon {
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.navbar-user-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    vertical-align: middle;
}

.navbar-user-avatar--solo {
    width: 32px;
    height: 32px;
    margin: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Logged-in account: pill + glass dropdown */
.glass-navbar .navbar-user-cluster {
    display: flex;
    align-items: center;
    align-self: flex-start;
}

.glass-navbar .navbar-user-pill {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-navbar .navbar-user-pill:hover,
.glass-navbar .navbar-user-pill:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.glass-navbar .navbar-user-pill--active {
    background: rgba(102, 126, 234, 0.22);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.35);
}

.glass-navbar .navbar-user-profile-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 999px 0 0 999px;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.glass-navbar .navbar-user-profile-link:hover,
.glass-navbar .navbar-user-profile-link:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.glass-navbar .navbar-user-pill--active .navbar-user-profile-link {
    color: #fff !important;
}

.navbar-user-fallback-icon {
    font-size: 1.25rem;
    opacity: 0.92;
}

.navbar-user-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-user-name {
        max-width: 11rem;
    }
}

.glass-navbar .navbar-user-pill-divider {
    align-self: stretch;
    width: 1px;
    min-height: 2rem;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.glass-navbar .navbar-user-pill .dropdown {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.glass-navbar .navbar-account-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    margin: 0;
    border: none;
    border-radius: 0 999px 999px 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.glass-navbar .navbar-account-menu-toggle:hover,
.glass-navbar .navbar-account-menu-toggle:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.glass-navbar .navbar-account-menu-toggle::before {
    display: none;
}

/* Account dropdown panel (scoped) */
.glass-navbar .navbar-account-dropdown {
    min-width: 15rem;
    padding: 0.35rem 0;
    margin-top: 0.5rem !important;
    background: rgba(18, 22, 45, 0.96) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
}

.glass-navbar .navbar-account-dropdown .dropdown-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.glass-navbar .navbar-account-dropdown .dropdown-item {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    border-radius: 0;
}

.glass-navbar .navbar-account-dropdown .dropdown-item:hover,
.glass-navbar .navbar-account-dropdown .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

.glass-navbar .navbar-account-dropdown-icon {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.glass-navbar .navbar-account-dropdown .dropdown-item:hover .navbar-account-dropdown-icon,
.glass-navbar .navbar-account-dropdown .dropdown-item:focus .navbar-account-dropdown-icon {
    color: rgba(255, 255, 255, 0.88);
}

.glass-navbar .navbar-account-dropdown-logout {
    color: rgba(255, 200, 200, 0.95) !important;
}

.glass-navbar .navbar-account-dropdown-logout:hover,
.glass-navbar .navbar-account-dropdown-logout:focus {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #fff !important;
}

.glass-navbar .navbar-account-dropdown-logout .navbar-account-dropdown-icon {
    color: rgba(248, 170, 170, 0.95);
}

.glass-navbar .navbar-account-dropdown-logout:hover .navbar-account-dropdown-icon {
    color: #fff;
}

@media (max-width: 991.98px) {
    .glass-navbar .navbar-user-cluster {
        width: 100%;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .glass-navbar .navbar-user-pill {
        width: 100%;
        justify-content: space-between;
    }

    .glass-navbar .navbar-user-profile-link {
        flex: 1 1 auto;
        min-width: 0;
        border-radius: 999px 0 0 999px;
    }

    .glass-navbar .navbar-account-menu-toggle {
        flex-shrink: 0;
    }
}

.glass-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem !important;
    margin: 0 0.15rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-navbar .nav-link.dropdown-toggle::before {
    display: none;
}

.glass-navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--success-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.glass-navbar .nav-link:hover::before {
    width: 80%;
}

.glass-navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.glass-navbar .nav-link.active {
    background: rgba(102, 126, 234, 0.25);
    color: #ffffff !important;
}

.glass-navbar .nav-link.active::before {
    width: 70%;
}

.glass-navbar .navbar-brand {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.glass-navbar .navbar-brand:hover {
    transform: scale(1.03);
}

.glass-navbar .btn-outline-light:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.suggestions-list {
    position: absolute;
    z-index: 1000;
    width: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

.strikethrough-price {
    text-decoration: line-through;
    color: #888;
    /* Optional: Make the text lighter */
    margin-right: 5px;
    /* Optional: Add space between prices */
}

/* Toast Notifications - Ultra Modern */
.toast-container {
    z-index: 1060; /* Higher than navbar and modals */
    position: fixed !important;
}

.toast {
    background-color: rgba(30, 35, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 420px;
    animation: slideInRight 0.4s ease-out;
}

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

.toast-header {
    background: rgba(40, 45, 70, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 15px 15px 0 0;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1rem;
}

.toast-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.toast-header .btn-close:hover {
    opacity: 1;
}

.toast-body {
    background: rgba(30, 35, 60, 0.6);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
}

/* Toast type-specific styling with gradients */
.toast-header.bg-success {
    background: var(--success-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(4, 255, 139, 0.3);
}

.toast-header.bg-danger {
    background: var(--danger-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.toast-header.bg-warning {
    background: var(--warning-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.toast-header.bg-info {
    background: var(--info-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}

.toast-header.bg-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Ensure text visibility with proper contrast */
.toast-header.text-white,
.toast-header.text-dark {
    color: #ffffff !important;
}

/* Toast show animation */
.toast.showing {
    animation: slideInRight 0.4s ease-out;
}

.toast.hide {
    animation: slideOutRight 0.4s ease-out;
}

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

/* Enhanced Home Page Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.stats-preview .stat-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 58, 64, 0.8) 100%);
}

.stats-preview .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefits-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.social-proof-section {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1) 0%, rgba(108, 117, 125, 0.1) 100%);
}

.why-choose-section {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 110, 253, 0.05) 100%);
}

.cta-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.cta-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%) !important;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-benefits {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%) !important;
}

/* Avatar styling for testimonials */
.avatar {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Enhanced card hover effects */
.why-choose-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

/* Trust indicators styling */
.trust-indicators {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive improvements for hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .stats-preview .row {
        gap: 0.5rem;
    }

    .cta-content {
        padding: 2rem !important;
    }

    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Global Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.page-loader.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.page-loader-content {
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Premium Features Showcase Styles */
.premium-showcase-section {
    position: relative;
    overflow: hidden;
}

.premium-feature-card {
    transition: all 0.3s ease;
    border-width: 2px !important;
}

.premium-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3) !important;
    border-color: #ffc107 !important;
}

.premium-icon {
    transition: all 0.3s ease;
}

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

.premium-cta-btn {
    position: relative;
    overflow: hidden;
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
    }
}

/* Pricing Comparison Table Styles */
.pricing-comparison-section {
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.pricing-comparison-section .table {
    border-radius: 12px;
    overflow: hidden;
}

.pricing-comparison-section .table thead th {
    background: rgba(30, 35, 60, 0.9);
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    font-weight: 600;
}

.pricing-comparison-section .table tbody tr {
    transition: all 0.2s ease;
}

.pricing-comparison-section .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.pricing-comparison-section .table tbody td {
    vertical-align: middle;
    padding: 1rem;
}

/* Testimonials Section Styles */
.testimonials-section .card {
    transition: all 0.3s ease;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.testimonials-section .avatar {
    font-size: 1.1rem;
}

/* Value Proposition Section */
.value-proposition-section {
    position: relative;
}

.value-icon {
    transition: all 0.3s ease;
}

.value-points .d-flex:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.premium-benefits-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Enhanced CTA Section */
.cta-section .cta-content {
    position: relative;
    overflow: hidden;
}

.cta-section .cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

/* Responsive improvements for premium sections */
@media (max-width: 768px) {
    .premium-feature-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-comparison-section .table {
        font-size: 0.85rem;
    }
    
    .value-proposition-section .display-5 {
        font-size: 2rem;
    }
    
    .premium-benefits-list {
        padding: 1rem;
    }
}