/* Advanced Blue Glass Theme - RevenueQR Platform */
:root {
    --primary-blue: #0066ff;
    --secondary-blue: #004dd9;
    --accent-blue: #3388ff;
    --light-blue: #66aaff;
    --dark-blue: #003399;
    --neon-blue: #00ccff;
    /* Change these from glass to solid blue: */
    --glass-bg: #0066ff;  /* Changed from rgba(0, 102, 255, 0.1) to solid blue */
    --glass-bg-strong: #004dd9;  /* Changed from rgba(0, 102, 255, 0.2) to darker blue */
    --glass-border: #3388ff;  /* Changed from rgba(0, 204, 255, 0.3) to solid blue border */
    --glass-border-strong: #00ccff;  /* Changed from rgba(0, 204, 255, 0.5) to brighter blue */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-accent: #00ccff;
    --shadow-blue: rgba(0, 102, 255, 0.4);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-glass: linear-gradient(135deg, #0066ff 0%, #004dd9 100%);  /* Changed to solid blue gradient */
}

/* CSS Reset removed - was causing layout issues */

body {
    background: linear-gradient(135deg, #001122 0%, #002244 25%, #003366 50%, #001133 75%, #000011 100%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =====================================
   UNIVERSAL GLASSMORPHISM OVERRIDES
   ===================================== */

/* Fix Navigation Dropdowns */
.navbar .dropdown-menu {
    background: rgba(30, 60, 114, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 0.5rem 0 !important;
}

.navbar .dropdown-item {
    color: #ffffff !important;
    background: transparent !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateX(5px) !important;
}

.navbar .dropdown-header {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem 0.25rem 1rem !important;
}

.navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 0.5rem 0 !important;
}

/* Fix Card Headers and Backgrounds */
.card-header.bg-white,
.card-header {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 12px 12px 0 0 !important;
}

.card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.card-body {
    background: transparent !important;
    color: #ffffff !important;
}

/* Fix Table Headers and Cells */
.table thead th,
.bg-light {
    background: rgba(30, 60, 114, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.table tbody td {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Fix Form Elements */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-select option {
    background: rgba(30, 60, 114, 0.95) !important;
    color: #ffffff !important;
}

/* Fix Input Groups */
.input-group-text {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}

/* Fix Buttons */
.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

/* Fix Text Colors */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
}

p, div, span, label, small {
    color: rgba(255, 255, 255, 0.95) !important;
}

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

/* Fix Pagination */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.pagination .page-item.active .page-link {
    background: rgba(59, 130, 246, 0.8) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #ffffff !important;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Fix Alert Messages */
.alert {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}

.alert-success {
    border-left: 4px solid #22c55e !important;
}

.alert-danger {
    border-left: 4px solid #ef4444 !important;
}

.alert-warning {
    border-left: 4px solid #f59e0b !important;
}

.alert-info {
    border-left: 4px solid #3b82f6 !important;
}

/* Glass Background Animation */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.01;
    animation: float 30s infinite linear;
    font-size: 2rem;
    color: var(--neon-blue);
}

.floating-element:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 20%; right: 10%; animation-delay: 10s; }
.floating-element:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 20s; }
.floating-element:nth-child(4) { top: 60%; right: 20%; animation-delay: 5s; }
.floating-element:nth-child(5) { bottom: 20%; right: 5%; animation-delay: 15s; }
.floating-element:nth-child(6) { top: 40%; left: 25%; animation-delay: 25s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.01; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.015; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.01; }
}

/* Compact Navigation */
.navbar-glass {
    background: rgba(0, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--neon-blue);
    text-decoration: none;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 0.2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.nav-link:hover {
    color: var(--neon-blue) !important;
    background: var(--glass-bg);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%);
    padding: 80px 0 0 0;
}

.hero-badge {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-blue);
    animation: pulse 3s infinite;
    box-shadow: 0 8px 32px var(--shadow-blue);
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 8px 32px var(--shadow-blue);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 48px var(--shadow-blue);
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: auto;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    background-clip: unset;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 650px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-blue);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-blue);
    color: white;
    text-decoration: none;
}

.cta-secondary {
    border: 1px solid var(--glass-border);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
}

.cta-secondary:hover {
    background: var(--glass-bg-strong);
    color: var(--neon-blue);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Glass Cards - Professional */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-8px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 204, 255, 0.3);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;  /* Thicker border for solid blue */
    background: var(--neon-blue);  /* Bright blue accent */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    background-clip: unset;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Feature Icons - Professional */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--shadow-blue);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-blue);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* Screenshot Containers */
.screenshot {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--glass-bg);
}

.screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.2);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Avatar Showcase */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.avatar-item {
    text-align: center;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.avatar-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 204, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 204, 255, 0.3);
}

.avatar-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    margin-bottom: 0.5rem;
}

.avatar-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000011 0%, #001133 100%);
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: var(--neon-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
    }
    
    .cta-primary, .cta-secondary {
        justify-content: center;
        width: 100%;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom animations for better UX */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Comprehensive Modal Fix for Mobile Brightness - Especially for QR Code Displays */
.modal-backdrop.show {
  opacity: 0.15 !important; /* Much lighter backdrop for better visibility */
}

/* Ensure modal content is bright and clear on mobile */
/* DISABLED: Conflicts with glass theme - now handled by business-theme-fixes.css */
/*
.modal-content {
  background-color: #ffffff !important; 
  color: #000000 !important; 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}
*/

/* Mobile-specific modal fixes */
@media (max-width: 768px) {
  /* DISABLED: Modal white backgrounds conflict with glass theme */
  /*
  .modal-content {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 12px !important;
    margin: 10px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  */
  
  /* Ensure QR codes and images are bright and clear */
  .modal-content img,
  .modal-content canvas,
  .modal-content svg {
    background-color: #ffffff !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Force bright text in modals */
  .modal-content h1,
  .modal-content h2,
  .modal-content h3,
  .modal-content h4,
  .modal-content h5,
  .modal-content h6,
  .modal-content p,
  .modal-content span,
  .modal-content div {
    color: #000000 !important;
  }
  
  /* Ensure buttons are visible */
  .modal-content .btn {
    color: #ffffff !important;
    border: none !important;
  }
  
  /* Fix z-index stacking for mobile */
  .modal {
    z-index: 1060 !important; /* Higher than backdrop */
  }
  
  .modal-backdrop {
    z-index: 1055 !important; /* Lower than modal */
  }
}
/* Mobile Navigation Fixes - Added to existing main.css */
