/* Glassmorphism Design System */

/* Modern Circle Dropdown Styling - Dashboard Header Style */
.circle-selector {
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin-top: 30px !important;
    margin-left: 0 !important;
    width: auto !important;
}

/* Exact measurements from dashboard: padding 2rem 1rem = 32px left padding */
body:has(.circle-container) .circle-selector {
    margin-left: 2rem !important;
    margin-top: 2rem !important;
}

/* Circle dropdown styling - matches h1 welcome text exactly but ONLY on circle page */
body:has(.circle-container) .circle-dropdown,
body:has(.circle-container) select.circle-dropdown,
body:has(.circle-container) #circle-dropdown {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    text-align: left !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-family: 'Inter', sans-serif !important;
    text-rendering: optimizeLegibility !important;
    text-shadow: none !important;
    margin-right: 15px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
    max-width: none !important;
    transition: none !important;
}

.circle-dropdown:hover,
select.circle-dropdown:hover,
#circle-dropdown:hover {
    background: none !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.circle-dropdown:focus,
select.circle-dropdown:focus,
#circle-dropdown:focus {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.circle-dropdown option,
select.circle-dropdown option,
#circle-dropdown option {
    background: rgba(20, 20, 25, 0.95) !important;
    color: white !important;
    padding: 14px 18px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif !important;
}

.circle-dropdown option:hover,
.circle-dropdown option:checked,
select.circle-dropdown option:hover,
select.circle-dropdown option:checked,
#circle-dropdown option:hover,
#circle-dropdown option:checked {
    background: rgba(40, 40, 50, 0.95) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Style the native dropdown text display only */
body:has(.circle-container) .circle-dropdown {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif !important;
    letter-spacing: -0.5px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Custom dropdown container */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

/* Current selection display - styled like welcome text */
.dropdown-current {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
    letter-spacing: -0.5px !important;
}

/* Custom dropdown menu */
.custom-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1)) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    margin-top: 8px !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
}

.custom-dropdown-menu.open {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 12px 18px !important;
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
}

.custom-dropdown-option.selected {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

.dropdown-arrow-indicator {
    position: absolute !important;
    left: 220px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    color: #000000 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.dropdown-arrow-indicator.open {
    transform: translateY(-50%) rotate(180deg) !important;
}

.dropdown-arrow-indicator:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-arrow-indicator.open:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.05) !important;
}

/* Base glassmorphism effect for all cards, modals, and containers */
.glass-effect {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove opaque backgrounds from existing components - make main containers transparent */
.dashboard-container,
.manage-subscription-container,
.checkout-container,
.landing-container,
.how-it-works-container,
.login-container,
.register-container,
.auth-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Cards and inventory items */
.pricing-card,
.leaderboard-card,
.card,
.dashboard-section,
.subscription-header,
.checkout-form,
.owned-packs-section,
.progress-section {
    background: rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Remove box overlays from stat items */
.card-stats,
.stat-item {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Remove nesting containers - only cards should have backgrounds */
.dashboard-grid .dashboard-section,
.dashboard-grid .owned-packs-section,
.dashboard-grid .progress-section,
.dashboard-section.owned-packs-section,
.dashboard-section.progress-section,
.owned-packs-section {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Only individual cards get glassmorphism - inventory-card styling moved to dashboard.html */

/* Remove glassmorphism from hero section */
.hero-section {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Modal overlays and popups */
.modal-content,
.modal-dialog,
.success-modal,
.success-modal .success-content,
.checkout-modal,
.confirmation-modal,
.transcript-modal,
.lab-modal,
.modal.fade,
.adaptive-modal,
.case-modal {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal backdrop with glassmorphism */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Header with stronger glass effect and white text */
.main-header {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Navigation text and icons - make them black */
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus,
.nav-link,
.nav-link:hover,
.nav-link:focus,
.navbar-nav .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-text,
.mobile-nav-link,
.mobile-nav-link:hover,
.mobile-nav-link:focus,
.notification-btn,
.notification-btn:hover,
.notification-btn:focus {
    color: #000000 !important;
    text-shadow: none;
}

/* Navigation icons specifically - only for non-simulator pages */
body:not(.simulator-page) .nav-link svg,
body:not(.simulator-page) .navbar-brand svg,
body:not(.simulator-page) .notification-btn svg,
body:not(.simulator-page) .mobile-menu-toggle svg,
body:not(.simulator-page) .mobile-nav-link svg {
    stroke: #000000 !important;
    fill: #000000 !important;
}

/* Simulator page notification bell - black for visibility on white background */
body.simulator-page .notification-btn,
body.simulator-page .notification-btn i,
body.simulator-page .notification-btn svg,
body.simulator-page .notification-btn svg path {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle,
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Mobile menu overlay solid styling override */
.mobile-menu-overlay {
    background: rgb(255, 255, 255) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.mobile-nav-link {
    color: #000000 !important;
}

/* Apple-style nav pills */
.nav-pills .nav-link {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Override Apple nav CSS variables for white theme */
:root {
    --nav-text: #000000 !important;
    --nav-text-hover: #000000 !important;
    --nav-logout: #000000 !important;
}

/* Brand and logo colors */
.nav-brand a,
.nav-brand a:hover,
.nav-brand a:focus {
    color: #000000 !important;
    text-shadow: none;
}

/* Logout button specifically */
.logout-btn,
.logout-btn:hover,
.logout-btn:focus {
    color: #000000 !important;
    text-shadow: none;
}

/* Additional header elements */
.header-info,
.header-status,
.header-badge,
.notification-count {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Remove nested white backgrounds and containers */
.card-body,
.card-header,
.modal-body,
.modal-header,
.modal-footer,
.section-content,
.content-wrapper,
.inner-container,
.checkout-form-container,
.payment-section,
.order-summary,
.pricing-card-content,
.subscription-content,
.dashboard-content,
.main-content,
.container-wrapper {
    background: transparent !important;
    border: none !important;
}

/* Remove any hardcoded background colors and opaque containers */
div[style*="background-color: white"],
div[style*="background-color: #ffffff"],
div[style*="background-color: #f9f9f9"],
div[style*="background: white"],
div[style*="background: #ffffff"],
div[style*="background: #f9f9f9"],
.container-fluid,
.main-wrapper,
.page-wrapper,
.content-wrapper,
.dashboard-wrapper,
.app-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure all potential container classes are transparent */
.row,
.col,
.col-12,
.col-md-6,
.col-lg-4,
.col-xl-3,
[class*="col-"] {
    background: transparent !important;
}

/* Override Bootstrap container backgrounds */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    background: transparent !important;
}

/* Remove any body or html glassmorphism backgrounds */
body,
html,
.dashboard-body,
.main-body,
.app-body,
.page-body {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Force remove glassmorphism from any potential wrapper divs */
.glassmorphism-wrapper,
.bg-glass,
.background-glass,
.main-bg,
.page-bg,
.app-bg,
.dashboard-bg,
body > div,
html > div {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Critical: Remove any glassmorphism from top-level containers that may be obscuring background */
body::before,
body::after,
html::before,
html::after,
.container::before,
.container::after,
.main-content::before,
.main-content::after {
    display: none !important;
}

/* Remove any overlay or backdrop effects that may cover the WebGL background */
*:not(.main-header):not(.card):not(.modal-content):not(.auth-card):not(.demo-access):not(.simulator-shortcut):not(.inventory-card):not(.progress-card):not(.dashboard-card):not(.leaderboard-cards-container) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Absolutely ensure no background overlays on main layout elements */
body,
.dashboard-container,
.main-content,
.content-area,
.page-content,
.container,
.container-fluid,
.row,
.col,
[class*="col-"],
.dashboard-wrapper,
.content-wrapper,
.page-wrapper {
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Specifically target elements that might have background applied */
.dashboard-content,
.content-area,
.page-content,
.main-section,
.content-section,
.dashboard-section:not(.dashboard-card) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure text remains readable with black text for visibility */
.glass-effect,
.dashboard-container,
.manage-subscription-container,
.checkout-container,
.welcome-title,
.main-title,
.section-title,
.pack-name,
.welcome-section h1,
.dashboard-header h1,
h1, h2, h3, h4, h5, h6 {
    color: #000000 !important;
    text-shadow: none;
}

/* Subtitle and secondary text */
.welcome-subtitle,
.main-subtitle,
.pack-description,
.section-subtitle,
p {
    color: #333333 !important;
    text-shadow: none;
}

/* Status text and labels */
.tier-name,
.stat-label,
.stat-value,
.pack-count,
.status-text,
span {
    color: #000000 !important;
}

/* Button enhancements with black text */
.dashboard-section .btn-primary,
.inventory-card .btn-primary,
.start-learning-btn,
.confirm-payment-btn,
.btn-demo,
.btn-simulator {
    background: rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #000000 !important;
    text-shadow: none;
    transition: all 0.3s ease;
}

/* Start Learning button - white with black text */
.btn-open-simulation,
a.btn-open-simulation,
.dashboard-section .btn-open-simulation,
.inventory-card .btn-open-simulation {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

.dashboard-section .btn-primary:hover,
.inventory-card .btn-primary:hover,
.start-learning-btn:hover,
.confirm-payment-btn:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.btn-open-simulation:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* Special styling for secondary button - white with black text */
.dashboard-section .btn-secondary,
.inventory-card .btn-secondary {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none !important;
    border-radius: 12px;
    color: rgba(0, 0, 0, 0.9) !important;
    text-shadow: none;
    transition: all 0.3s ease;
}

.dashboard-section .btn-secondary:hover,
.inventory-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: rgba(0, 0, 0, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* Navigation pills */
.nav-pill {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
}

/* Form inputs with black text */
input,
textarea,
select,
.form-control {
    background: rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #000000 !important;
}

input::placeholder,
textarea::placeholder {
    color: #666666 !important;
}

/* Remove any remaining opaque backgrounds */
.bg-white,
.bg-light,
.bg-gray-50,
.bg-gray-100 {
    background: transparent !important;
}

/* Stats and metric cards */
.stat-card,
.metric-item,
.performance-card {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
}

/* Pricing cards specific styling */
.pricing-plan {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Leaderboard and friend circle components */
.leaderboard-item,
.friend-circle-item,
.performance-metric {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    padding: 16px;
}

/* Toast notifications with black text */
.toast,
.alert {
    background: rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
    text-shadow: none;
}

/* Transcript modal specific */
.transcript-container,
.clinical-events {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ensure dropdowns and popovers also use glass effect */
.dropdown-menu,
.popover {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tab content areas */
.tab-content,
.tab-pane {
    background: transparent !important;
}

/* Remove any box-shadow from nested elements that might interfere */
.card-body,
.modal-body,
.tab-content > *,
.content-area > * {
    box-shadow: none !important;
}

/* Ensure proper spacing without nested containers */
.glass-spacing {
    padding: 24px;
    margin: 12px 0;
}

/* Additional component coverage - containers are transparent, content cards have glass effect */
.subscription-container,
.onboarding-section,
.universal-pricing-container,
.checkout-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Individual content cards have glassmorphism */
.universal-pricing-card,
.payment-methods,
.order-summary-card,
.feature-list,
.pricing-features,
.auth-card,
.demo-access,
.simulator-shortcut {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dashboard specific - main grid and sections are transparent, only cards have glass */
.dashboard-grid,
.dashboard-section,
.owned-packs-section,
.progress-section,
.leaderboard-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Security notice and status messages with black text */
.security-notice,
.status-message,
.alert-info,
.alert-success,
.alert-warning {
    background: rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
    text-shadow: none;
}

/* Progress bars and indicators */
.progress,
.loading-spinner,
.status-indicator {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
}

/* Breadcrumbs and navigation */
.breadcrumb,
.nav-tabs,
.nav-pills {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Table styling */
table,
.table,
th,
td {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.table thead th {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .glass-effect,
    .modal-content,
    .universal-pricing-card,
    .leaderboard-card {
        border-radius: 12px;
        margin: 8px;
        padding: 16px;
    }
    
    /* Main containers remain transparent on mobile */
    .dashboard-container,
    .manage-subscription-container,
    .checkout-container,
    .subscription-container {
        background: transparent !important;
        margin: 8px;
        padding: 16px;
    }
    
    /* Ensure glass effects are maintained on mobile */
    .universal-pricing-card {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* LEADERBOARD STYLING FIX - Architect Solution */
/* Consistent glassmorphism and hover interactivity fix */
:root { 
    --glass-alpha: 0.15; 
    --glass-blur: 20px; 
}

.leaderboard-cards-container { 
    background: rgba(255,255,255,var(--glass-alpha)) !important; 
    backdrop-filter: blur(var(--glass-blur)) !important; 
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important; 
}

/* Ensure rows don't add extra glass overlays */
.user-entry { 
    background: transparent !important; 
    transition: background-color 0.2s ease !important; 
}

/* Disable ALL hover effects for leaderboard entries */
.leaderboard-cards-container .user-entry,
.leaderboard-item {
    cursor: default !important;
    background: transparent !important;
    transition: none !important;
}

.leaderboard-cards-container .user-entry:hover,
.leaderboard-item:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Selected row styling only */
.user-entry.current-user {
    background: transparent !important; 
    cursor: default !important; 
}

/* Prevent accidental click-through only on selected row's links */
.user-entry.current-user a { 
    pointer-events: none !important; 
}

/* FINAL MOBILE MENU FIX - Architect Solution */
/* Ensure active mobile menu overlay captures clicks and blocks page behind */
.mobile-menu-overlay.active { 
    pointer-events: auto !important; 
    opacity: 1; 
    visibility: visible; 
    z-index: 10000; 
}