
/* ===========================================
CSS VARIABLES - MASCOT COLOR SCHEME
=========================================== */
:root {
    --mascot-pink: #E91E8C;
    --mascot-lime: #C5D93D;
    --primary-yellow: #C5D93D;
    --primary-black: #1a1a1a;
    --border-yellow: #C5D93D;
    --shadow-dark: rgba(0, 0, 0, 0.6);
    --shadow-light: rgba(0, 0, 0, 0.15);
    --courier-font: 'Courier Prime', monospace;
    --slackey-font: 'Slackey', sans-serif;
}

/* ===========================================
GLOBAL STYLES
=========================================== */
* { 
    line-height: 1 !important; 
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    padding-top: 65px;
    font-family: var(--courier-font) !important;
    font-size: 14px;
}

/* ===========================================
   STANDARDIZED COURIER FONT - 14px EVERYWHERE
   =========================================== */

/* Force 14px on all dashboard elements */
.financial-dashboard,
.geo-dashboard,
.deck-dashboard,
.monitoring-dashboard {
    font-size: 14px;
}

/* All elements using Courier font - standardized 14px */
input, select, textarea, button,
.form-control, .form-select,
.location-dropdown,
.geo-user-filter-select,
.deck-search,
.btn-filter,
.user-map-btn,
.modal-title-custom,
.form-label-custom,
.form-control-custom,
.form-check-label-custom,
.form-check-label-terms,
.form-select-custom,
.char-counter,
.image-preview-text,
.upload-btn-custom,
.btn-cancel-custom,
.btn-create-custom,
.deck-card-title,
.deck-card-description,
.user-stats-row .badge,
.terms-modal-body,
.map-search-input,
.map-btn-exact,
.map-btn-range,
.map-btn-country,
.range-display,
.location-marker-content,
.draw-button,
.clear-button,
.finish-button,
.map-popup-content,
.footer-link,
.footer-copyright,
.btn-yellow,
.download-modal-description,
.server-load-warning,
.map-back-link-anchor,
.courier-badge,
.user-filter-badge,
.map-time-filter,
.font-courier-prime-header {
    font-size: 14px !important;
}

/* Dashboard stat values and labels - 14px */
.stat-card .stat-number,
.stat-card .stat-label,
.analytics-value,
.analytics-day,
.finance-card-value,
.finance-card-label,
.finance-card-change,
.period-btn,
.chart-card-title,
.breakdown-label,
.breakdown-value,
.geo-user-name,
.geo-user-meta,
.geo-user-stats,
.geo-user-stats .value,
.geo-stat-value,
.geo-stat-label,
.geo-card-title,
.geo-card-count,
.geo-time-btn,
.geo-filter-btn,
.geo-selected-user,
.geo-locations-title,
.geo-locations-count,
.geo-location-name,
.geo-location-stat,
.geo-location-stat .value,
.geo-location-stat .label,
.deck-stat-value,
.deck-stat-label,
.deck-panel-title,
.deck-panel-count,
.deck-filter-btn,
.deck-grid-name,
.deck-grid-meta,
.deck-grid-stat,
.deck-grid-stat .value,
.deck-grid-stat .label,
.deck-grid-badge,
.deck-grid-image-placeholder span,
.deck-item-name,
.deck-item-meta,
.deck-item-stat,
.deck-item-stat .value,
.deck-item-stat .label,
.card-grid-name,
.card-grid-deck,
.card-grid-meta,
.card-grid-stat,
.card-grid-stat .value,
.card-grid-stat .label,
.platform-stat-item .value,
.platform-stat-item .label,
.monitoring-stat-badge,
.monitoring-cron-name,
.monitoring-cron-time,
.monitoring-cron-schedule,
.monitoring-cron-desc,
.monitoring-cron-count,
.monitoring-cron-runs,
.monitoring-cron-runs .value,
.monitoring-cron-runs .label,
.monitoring-cron-meta-item,
.monitoring-last-updated,
.empty-hint,
.dashboard-collapse-btn {
    font-size: 14px !important;
}

.cke_notifications_area { 
    display: none !important; 
}

/* ===========================================
TYPOGRAPHY
=========================================== */
header h1 {
    font-family: var(--slackey-font) !important;
    color: #1a1a1a !important;
    font-size: 2.5rem !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

/* ===========================================
NAVIGATION
=========================================== */
.top-navbar {
    position: fixed !important;
    top: 0; 
    left: 0; 
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%) !important;
    border-bottom: 3px solid #E91E8C !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.navbar-logo {
    max-height: 40px;
    width: auto;
}

.nav-link, 
.top-navbar .nav-link {
    font-family: var(--slackey-font);
    color: #fff !important;
    transition: all 0.3s ease;
}

.top-navbar .nav-link:hover {
    color: #fff !important;
    background-color: #E91E8C !important;
    border-radius: 0.5rem;
}

.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='%23E91E8C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.mobile-menu-toggle {
    color: #E91E8C !important;
    border: none !important;
    background: none !important;
    font-size: 1.5rem;
}

.mobile-menu-dropdown {
    position: fixed;
    top: 83px;
    left: 0; right: 0;
    background: var(--primary-yellow);
    box-shadow: 0 4px 12px var(--shadow-light);
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1rem;
    display: none;
    z-index: 1030;
}

.mobile-menu-dropdown.show { display: block; }

.mobile-menu-dropdown .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    background-color: var(--primary-yellow) !important;
    color: var(--primary-black) !important;
    text-decoration: none;
    font-family: var(--slackey-font);
}

.mobile-menu-dropdown .nav-link:hover {
    background-color: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
}

/* ===========================================
BUTTONS & FORMS
=========================================== */
.btn-primary, 
.btn-filter {
    background: var(--primary-yellow) !important;
    background-image: none !important;
    border: 2px solid var(--primary-yellow) !important;
    color: var(--primary-black) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary { 
    font-family: var(--slackey-font) !important; 
}

.btn-filter { 
    font-family: var(--courier-font) !important; 
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active, 
.btn-primary.active,
.btn-filter:hover, 
.btn-filter.active {
    background: var(--primary-black) !important;
    background-image: none !important;
    border-color: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
    box-shadow: none !important;
}

/* User action buttons hover effect */
.user-action-btn:hover i {
    color: var(--primary-yellow) !important;
}

/* Aura2 button active state */
#toggleAuraBtn.active {
    color: var(--primary-yellow) !important;
    background: var(--primary-black) !important;
    border-color: var(--primary-black) !important;
}

#toggleAuraBtn.active i {
    color: var(--primary-yellow) !important;
}

/* Square aspect ratio for map on all devices */
.ratio-16x9 {
    aspect-ratio: 1 / 1 !important;
}

/* Avatar upload hover effect */
.avatar-upload-wrapper:hover .avatar-overlay {
    opacity: 1 !important;
}

.avatar-upload-wrapper:hover img {
    opacity: 0.7 !important;
}

/* Hide dashed yellow bottom border on desktop */
@media (min-width: 769px) {
    .hero-section {
        border-bottom: none !important;
    }
}

.btn-primary i { 
    color: inherit !important; 
}

/* ===========================================
DROPDOWNS
=========================================== */
.dropdown-menu {
    background-color: var(--primary-yellow) !important;
    border: 1px solid var(--primary-black) !important;
}

.dropdown-item {
    color: var(--primary-black) !important;
    font-family: var(--slackey-font) !important;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
}

.dropdown-divider { 
    border-color: var(--primary-black) !important; 
}

/* ===========================================
CARDS & CONTAINERS
=========================================== */
.card-container, 
.user-map-container, 
.server-performance-card {
    border: none;
    border-radius: 12px;
    background: #f5f5f5;
}

.card-header-yellow, 
.user-map-header, 
.server-performance-header {
    background: #ececec;
    border-bottom: none;
    color: #1a1a1a;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.card-header.bg-dark {
    border-top-left-radius: 9px !important;
    border-top-right-radius: 9px !important;
    border-bottom: none !important;
}

/* ===========================================
USER MAP COMPONENT STYLES
=========================================== */
/* User Map Card Header */
.user-map-header h3 {
    color: var(--primary-yellow) !important;
    margin: 0;
}

/* Time Filter Button Group */
.user-map-btn-group {
    border-top: none !important;
    margin-top: -1px !important;
    position: relative;
    top: -1px;
}

/* Base Button Styles */
.user-map-btn {
    background: var(--primary-yellow) !important;
    background-image: none !important;
    border-color: var(--primary-black) !important;
    color: var(--primary-black) !important;
    font-family: var(--courier-font) !important;
    border-radius: 0 !important;
}

/* Active Button Styles */
.user-map-btn.active {
    background: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
    font-weight: bold !important;
    border-top: none !important;
}

/* Button Hover Effects */
.user-map-btn:hover {
    background: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
    border-color: var(--primary-black) !important;
}

.user-map-btn.active:hover {
    background: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
    border-color: var(--primary-black) !important;
}

.text-yellow, 
.user-map-title, 
.user-map-icon, 
.user-map-text,
.server-performance-title, 
.server-performance-icon, 
.server-performance-text {
    color: #1a1a1a;
}

.bg-yellow {
    background: #C5D93D !important;
    color: #000 !important;
}

.bg-yellow * {
    color: #000 !important;
}

/* ===========================================
LAYOUT COMPONENTS
=========================================== */
.container-16-9, 
.map-container, 
.chart-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.absolute-fill, 
.map-element, 
.chart-canvas, 
.chart-loader {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
}

.chart-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.scroll-horizontal, 
.status-scroll, 
.cpu-status-scroll {
    overflow-x: auto;
}

.min-width-480, 
.status-row, 
.cpu-status-row {
    min-width: 480px;
}

.status-row .col {
    border: 2px solid var(--primary-black) !important;
}

.status-row {
    border-top: none !important;
    border-bottom: none !important;
}

/* ===========================================
FORM ELEMENTS
=========================================== */
.select-styled, 
#timeFilter, 
.cpu-time-filter {
    background: var(--primary-yellow) !important;
    border: 2px solid var(--primary-yellow) !important;
    color: var(--primary-black) !important;
    font-family: var(--courier-font) !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 15px;
    padding: 6px 28px 6px 12px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

#timeFilter {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 5%22><path fill=%22%23000%22 d=%22M2 0L0 2h4zm0 5L0 3h4z%22/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

#timeFilter option {
    background: var(--primary-black) !important;
    color: var(--primary-yellow) !important;
    padding: 8px !important;
    font-family: var(--courier-font) !important;
}

#timeFilter option:hover, 
#timeFilter option:checked {
    background: var(--primary-yellow) !important;
    color: var(--primary-black) !important;
}

/* ===========================================
UTILITIES
=========================================== */
.hidden { 
    display: none; 
}

.user-map-spinner { 
    display: none; 
}

.loading-spinner { 
    opacity: 0; 
    transition: opacity 0.3s; 
}

.header-controls { 
    min-width: 180px; 
    justify-content: flex-end; 
}

.user-map-body { 
    position: relative; 
}

.error-warning-icon { 
    font-size: 2rem; 
}

.border-dark { 
    border-width: 3px !important; 
}

/* ===========================================
THEME CARDS
=========================================== */
.theme-card, 
.theme-card-active { 
    border: 3px solid var(--primary-yellow) !important; 
}

.theme-card .col-md-4 img {
    border: 2px dashed var(--primary-yellow) !important;
    border-radius: 10px !important;
    box-shadow: 2px 2px 8px var(--shadow-dark) !important;
}

/* ===========================================
RESPONSIVE DESIGN
=========================================== */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    header h1 { 
        font-size: 1.8rem !important; 
    }
    
    .navbar-logo {
        max-height: 36px;
        content: url('/assets/images/gamifeye-logo-blink.png');
        margin-left: 15px;
    }
    
    header {
        width: 75% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 991.98px) {
    .top-navbar { 
        border-right: none !important; 
    }
    
    .h-screen.flex-grow-1 { 
        padding-top: 80px; 
    }
}

@media (min-width: 992px) {
    .mobile-menu-dropdown { 
        display: none !important; 
    }
}

/* ===========================================
LEGACY SUPPORT
=========================================== */
.modal .form-label {
    font-size: 1rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem;
    color: #495057;
}

#logoPreview, 
#backgroundPreview {
    cursor: pointer !important;
    transition: opacity 0.2s ease-in-out !important;
}

#logoPreview:hover, 
#backgroundPreview:hover { 
    opacity: 0.8 !important; 
}

.col-lg-6.col-xl-3 .card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ========== THEME EDIT PAGE STYLES ========== */
/* Improved layout for side-by-side sections */
.text-theme-section {
    margin-bottom: 1.5rem;
}

.text-theme-section .card {
    height: 100%;
}

/* Fix for select box text cutoff - Enhanced */
.form-control {
    min-height: 38px;
    line-height: 1.5;
    box-sizing: border-box !important;
    width: 100% !important;
}

select.form-control {
    padding-right: 40px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 12px !important;
    background-color: #fff !important;
    width: 100% !important;
    min-width: 140px !important;
    min-height: 50px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

select.form-control option {
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 8px 12px !important;
    min-height: 24px !important;
    font-size: inherit !important;
}

/* Better dropdown appearance on focus */
select.form-control:focus {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow: visible !important;
    z-index: 1000 !important;
    position: relative !important;
    background-color: #fff !important;
}

/* Specific fixes for Font Family select */
select[name="font_family"] {
    min-width: 200px !important;
    font-size: 14px !important;
    max-width: none !important;
}

select[name="font_family"] option {
    font-size: 14px !important;
    padding: 10px 15px !important;
    white-space: normal !important;
}

/* Enhanced font weight select styling */
select[name*="fontWeight"] {
    min-width: 140px !important;
    font-size: 13px !important;
    max-width: none !important;
}

select[name*="fontWeight"] option {
    font-size: 13px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
}

/* Fix for select boxes in smaller containers */
.col-6 select.form-control {
    min-width: 120px !important;
    font-size: 13px !important;
}

/* Ensure select boxes don't get cut off */
.form-control:not(textarea) {
    min-height: 50px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Prevent text overflow in all select elements */
select {
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

/* Better select styling for theme sections */
.text-theme-section select.form-control {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
}

.text-theme-section select.form-control:focus {
    background-color: #fff !important;
    border-color: #4CAF50 !important;
}

/* Color input group styling */
.color-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input-group .color-picker {
    width: 32.5% !important;
    height: unset !important;
    min-height: unset !important;
    max-height: unset !important;
    padding: 0 !important;
    border-radius: 9px !important;
    border: 2px solid #ced4da !important;
    cursor: pointer !important;
    flex-shrink: 0;
    overflow: hidden !important;
    line-height: 1 !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

.color-input-group .color-picker:focus {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

/* Remove white gap underneath color pickers - Option 2 */
input[type="color"].form-control-color {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: unset !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: hidden !important;
}

/* Force color picker to be more compact */
input[type="color"] {
    height: unset !important;
    min-height: unset !important;
    max-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

/* Target the color picker's internal elements */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

input[type="color"]::-webkit-color-swatch {
    border: none !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Firefox specific styling */
input[type="color"]::-moz-color-swatch {
    border: none !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.color-input-group .hex-input {
    flex: 1;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    min-width: 100px !important;
}

.color-input-group .hex-input:focus {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

.color-input-group .hex-input::placeholder {
    text-transform: uppercase !important;
    color: #6c757d !important;
}

/* Responsive color input adjustments */
@media (max-width: 768px) {
    .color-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .color-input-group .color-picker {
        width: 100% !important;
        height: unset !important;
        min-height: unset !important;
        max-height: unset !important;
    }

    .text-theme-columns .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Form group spacing */
.form-group {
    margin-bottom: 1rem;
}

/* Card Images styling */
.image-preview {
    object-fit: cover;
}

/* Ensure proper text rendering */
select,
select option {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container improvements */
.row .col-md-6,
.row .col-md-4,
.row .col-lg-6 {
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Card spacing improvements */
.card-body {
    padding: 1.25rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Input and select alignment */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #4CAF50;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Label styling - FORCE OVERRIDE */
label.form-label,
.form-label,
label,
.form-group label,
.form-group .form-label,
div label {
    font-size: 1rem !important;
    font-weight: bold !important;
    text-transform: capitalize !important;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Compact layout for text theme inputs */
.text-theme-input-row {
    margin-bottom: 1rem;
}

.text-theme-input-row .form-label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

/* Accordion header styling */
.accordion-button {
    background-color: #000000 !important;
    color: #FFD700 !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button.collapsed {
    background-color: #000000 !important;
    color: #FFD700 !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: #FFD700 !important;
    color: #000000 !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.accordion-button:hover {
    background-color: #000000 !important;
    color: #FFD700 !important;
}

.accordion-button:not(.collapsed):hover {
    background-color: #FFD700 !important;
    color: #000000 !important;
}

/* Custom accordion arrow styling */
.accordion-button::after {
    background-image: none !important;
    content: "+" !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #FFD700 !important;
    transform: none !important;
    transition: transform 0.2s ease-in-out !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto !important;
}

.accordion-button.collapsed::after {
    content: "+" !important;
    color: #FFD700 !important;
    transform: rotate(0deg) !important;
}

.accordion-button:not(.collapsed)::after {
    content: "−" !important;
    color: #000000 !important;
    transform: rotate(0deg) !important;
}

/* Accordion button icons and text */
.accordion-button i,
.accordion-button span {
    color: inherit !important;
}

.accordion-button.collapsed i,
.accordion-button.collapsed span {
    color: #FFD700 !important;
}

.accordion-button:not(.collapsed) i,
.accordion-button:not(.collapsed) span {
    color: #000000 !important;
}

/* Update Theme button styling */
.btn-primary {
    background: #FFD700 !important;
    background-image: none !important;
    border-color: #FFD700 !important;
    color: #000000 !important;
    font-family: var(--slackey-font) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background: #000000 !important;
    background-image: none !important;
    border-color: #000000 !important;
    color: #FFD700 !important;
    box-shadow: none !important;
}

.btn-primary i {
    color: inherit !important;
}

/* Dropdown styling to match theme */
.dropdown-menu {
    background-color: #FFD700 !important;
    border: 1px solid #000000 !important;
}

.dropdown-item {
    color: #000000 !important;
    font-family: var(--slackey-font) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #000000 !important;
    color: #FFD700 !important;
}

.dropdown-divider {
    border-color: #000000 !important;
}

/* Make splash image preview clickable */
#splashPreview {
    cursor: pointer !important;
    transition: opacity 0.2s ease-in-out !important;
}

#splashPreview:hover {
    opacity: 0.8 !important;
}

/* Upload icon overlay */
.upload-icon-overlay {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease-in-out !important;
    pointer-events: none !important;
}

.current-splash-preview:hover .upload-icon-overlay {
    opacity: 1 !important;
}

.upload-icon-overlay i {
    font-size: 16px !important;
    color: white !important;
}

/* Font Weight Toggle Button Styling */
.font-weight-toggle {
    width: 100%;
    transition: all 0.3s ease;
    font-family: var(--slackey-font) !important;
}

.font-weight-toggle.bold {
    background-color: #FFD700 !important;
    border-color: #FFD700 !important;
    color: #000000 !important;
    font-weight: bold !important;
}

.font-weight-toggle.bold:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #FFD700 !important;
}

.font-weight-toggle.normal {
    background-color: #000000 !important;
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    font-weight: normal !important;
}

.font-weight-toggle.normal:hover {
    background-color: #FFD700 !important;
    border-color: #FFD700 !important;
    color: #000000 !important;
}

/* Custom Font Dropdown Styling */
.custom-font-dropdown {
    position: relative;
    width: 100%;
}

.font-dropdown-selected {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    font-size: 24px;
}

.font-dropdown-selected:hover {
    border-color: #86b7fe;
}

.font-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.font-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 24px;
}

.font-option:hover {
    background-color: #f8f9fa;
}

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

/* Perfect circle pagination for active page */
.nav-link.active {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

/* Modal stability fixes */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-content {
    position: relative !important;
    z-index: 1056 !important;
}

.modal-body {
    overflow-y: auto !important;
    max-height: 70vh !important;
}

/* Prevent table flickering */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Smooth transitions */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out !important;
    transform: translate(0, -50px) !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}

/* Loading spinner stability */
#assetsLoadingSpinner {
    position: relative !important;
    z-index: 1 !important;
}

/* Content container stability */
#assetsContent, #noAssetsMessage {
    position: relative !important;
    z-index: 1 !important;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    header {
        border: none !important;
        border-radius: 0 !important;
    }
}

#mobile-button {
    display: block !important;
}

#addHexesBtn {
    display: block !important;
}

#title {
    font-size: 0.875rem !important;
}

@media (max-width: 768px) {
    #map {
        height: 500px !important;
    }
}

@media (max-width: 767.98px) {
    .card-body img.float-left {
        float: none !important;
        display: block !important;
        margin: 0 auto !important;
        padding-bottom: 0 !important;
    }

    .desktop-logo {
        display: none !important;
    }
    
    .col-sm-6 h1, .col-sm-6 p {
        text-align: center !important;
    }
}

/* ========== GUEST DECKS STYLING (COPIED) ========== */

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background-color: #000;
    border-bottom: 2px dashed #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
    .hero-section {
        padding: 30px 0;
    }
}

/* Header Styles */
.ls-tight-header {
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    padding-top: 30px;
    margin-bottom: 20px;
    font-size: 5rem !important;
    font-weight: bold;
    color: #FFD700;
    text-transform: uppercase;
    font-family: "Slackey", sans-serif;
    line-height: 1 !important;
    text-align: center;
}

.ls-tight-header-small {
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    padding-top: 30px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 3rem !important;
    font-weight: bold;
    color: #FFD700;
    text-transform: uppercase;
    font-family: "Slackey", sans-serif;
    line-height: 1 !important;
    text-align: center;
}

@media (max-width: 767px) {
    .ls-tight-header {
        font-size: 3rem !important;  
    }
}

/* Description Text */
.font-courier-prime-header {
    font-family: var(--courier-font) !important;
    color: #fff;
    line-height: 1.1;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .font-courier-prime-header {
        text-align: center;
    }
}

/* Search Input */
.search-input {
    padding: 20px;
    color: #d4ff35;
    width: 100%;
    font-family: 'Roboto Mono', monospace;
    outline-color: transparent;
    border-radius: 10px;
    background-color: #3c3c54;
    border: 1px solid #686485;
}

.search-input::-webkit-input-placeholder {
    opacity: 0.5;
    color: #a6acd1;
}

.search-input::-moz-placeholder {
    opacity: 0.5;
    color: #a6acd1;
}

.search-input:-ms-input-placeholder {
    opacity: 0.5;
    color: #a6acd1;
}

.search-input::-ms-input-placeholder {
    opacity: 0.5;
    color: #a6acd1;
}

.search-input::placeholder {
    opacity: 0.5;
    color: #a6acd1;
}

.search-input:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid #000;
}

/* Custom Yellow Button */
.btn-custom-yellow {
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: "Slackey", sans-serif;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 214, 69, 0.3);
}

.btn-custom-yellow:hover {
    background: #e6c13e;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 214, 69, 0.3);
}

.btn-custom-yellow {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) !important;
}

/* Margin Top for Medium Screens and Up */
.mt-md-10 {
    margin-top: 0;
}

@media (min-width: 768px) {
    .mt-md-10 {
        margin-top: 3rem;
    }
}

/* Deck Container Styles */
.deck-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.deck-card {
    border: 2px solid #000 !important;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    aspect-ratio: 2/3;
}

/* Bootstrap md and lg breakpoints - 9:16 aspect ratio */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .deck-card {
        aspect-ratio: 9/16;
    }
}

/* Mobile devices - maintain 16/9 aspect ratio like desktop */
@media (max-width: 767.98px) {
    .deck-card {
        aspect-ratio: 16/9;
        height: auto;
    }
}

.deck-card-background {
    position: relative;
    background-color: #000;
}

.deck-card-image {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
}

.deck-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.deck-logo-image {
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.deck-header-overlay {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 15;
    color: white;
    padding: 8px;
    margin: 0;
}

.deck-title {
    text-align: left !important;
    font-weight: bold;
    line-height: 1.0;
    text-transform: uppercase;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.deck-type-text {
    text-transform: uppercase;
    text-align: left;
    color: #fff;
    font-weight: bold;
    font-size: 0.7rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.deck-buttons-container {
    text-align: right;
}

.deck-status-button {
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.deck-edit-button {
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.deck-footer-overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 15;
    color: white;
    padding: 8px;
    margin: 0;
}

.deck-created-text {
    text-align: left;
    font-weight: bold;
    font-size: 0.7rem;
    line-height: 1.0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.deck-age-text {
    text-align: right;
    font-weight: bold;
    font-size: 0.7rem;
    line-height: 1.0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Card Section Headers */
.card-section-header {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Active Card Styles */
.active-card {
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 0px;
    background: #d4edda;
    cursor: pointer;
}

.active-card-image {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    object-fit: cover;
    margin-right: 6px;
}

.active-card-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #28a745;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-card-icon {
    font-size: 10px;
    color: white;
}

.active-card-text {
    font-size: 0.65rem;
    color: #155724;
    margin-right: 6px;
}

/* Paused Card Styles */
.paused-card {
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0px;
    background: #fff3cd;
    cursor: pointer;
}

.paused-card-image {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    object-fit: cover;
    margin-right: 6px;
}

.card-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.card-select option {
    padding: 8px;
    background-color: white;
}

.card-select option:checked {
    background-color: #e3f2fd;
}

.custom-card-dropdown {
    position: relative;
    width: 100%;
}

.custom-card-dropdown-toggle {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-card-dropdown-toggle.text-left {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
    justify-content: space-between;
}

.custom-card-dropdown-toggle.text-left > span:first-child {
    display: flex;
    align-items: center;
}

.custom-card-dropdown-toggle.text-left > i:last-child {
    margin-left: auto;
}

.custom-card-dropdown-toggle.paused-dropdown {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.disabled-dropdown {
    opacity: 0.5;
    pointer-events: none;
}

.custom-card-dropdown-toggle.disabled {
    cursor: not-allowed;
}

.custom-card-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.custom-card-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

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

.custom-card-option:hover {
    background-color: #f8f9fa;
}

.custom-card-option img {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    object-fit: cover;
    margin-right: 8px;
}

.custom-card-option .card-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
    color: #6c757d;
}

.paused-card-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #ffc107;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paused-card-icon {
    font-size: 10px;
    color: white;
}

.paused-card-text {
    font-size: 0.65rem;
    color: #856404;
    margin-right: 6px;
}

/* Badge Styles */
.no-cards-badge {
    font-size: 0.6rem;
}

.rarity-badge {
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 50px;
    text-align: center;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.rarity-badge i {
    color: white !important;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}

.rarity-badge span {
    color: white !important;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}

/* Card Count Display */
.card-count-display {
    cursor: default;
}

.card-count-number {
    font-weight: bold;
    font-size: 3rem;
}

/* Button Styles */
.small-button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.new-card-button {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: 2px solid #000;
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.new-card-button:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: #000;
}

.deck-description {
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
    max-width: 100%;
    word-wrap: break-word;
}

/* Show desktop version by default, hide mobile version */
.deck-description-desktop {
    display: inline;
}
.deck-description-mobile {
    display: none;
}

/* Mobile devices - show 60 character version, hide 120 character version */
@media (max-width: 767.98px) {
    .deck-description-desktop {
        display: none;
    }
    .deck-description-mobile {
        display: inline;
    }
}

.deck-status-button,
.deck-edit-button,
.deck-status-button i,
.deck-edit-button i,
.btn-danger.small-button,
.btn-danger.small-button i {
    color: white !important;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}

.small-button-10 {
    font-size: 10px;
    padding: 0.75rem;
}

.small-button-12 {
    font-size: 12px;
    padding: 5px 10px;
}

/* Alert Styles */
.info-alert {
    border-radius: 10px;
    padding: 40px;
}

.info-alert-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.info-alert-text {
    line-height: 1.2;
}

/* Unassigned Cards Styles */
.unassigned-scroll-container {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
}

.unassigned-card {
    background-image: url('https://s3.ap-southeast-1.amazonaws.com/cdn.metraverse.com/dev/headers/fo7Zl7fwJdLRK5jopMjVYLOqc2fMkM91fWW6vU6n.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.unassigned-card-body {
    position: relative;
    z-index: 2;
}

.unassigned-card-image {
    width: 70px;
    height: auto;
    margin-right: 10px;
}

.unassigned-card-title {
    line-height: 1.0;
    margin-bottom: 10px;
    display: block;
}

.unassigned-card-info {
    color: #fff;
    margin-left: unset;
    font-size: 10px;
}

.unassigned-card-button {
    margin-left: unset;
    font-size: 10px;
    padding: 0.75rem;
}

.unassigned-card-button-danger {
    margin-left: unset;
    font-size: 10px;
    padding: 0.75rem;
    color: #fff;
}

/* Modal Styles */
.modal-scroll-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Edit Partner Button */
.edit-partner-button {
    font-size: 12px;
    padding: 5px 10px;
}

/* Scroll Container */
.scroll-container {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
}

/* Mobile Deck Header */
@media (max-width: 768px) {
    .deck-header-mobile {
        width: 100% !important;
        text-align: center !important;
        font-weight:bold;
        font-size:2rem;
        text-transform: uppercase;
    }
    
    .user-map-header {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .user-map-header .text-yellow {
        width: 100% !important;
        margin-top: 1rem !important;
        justify-content: center !important;
    }
    
    .deck-header-overlay .col-4 .deck-title,
    .deck-header-overlay .col-8 .deck-title {
        text-align: right !important;
        font-size: 1.1rem !important;
        font-weight: bold !important;
    }
    
    .deck-header-overlay .col-4 {
        text-align: left !important;
    }
    
    .deck-header-overlay .col-8 {
        text-align: left !important;
    }
    
    .deck-buttons-container {
        text-align: right !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
    }
    
    .active-card-text {
        display: none !important;
    }
    
    .paused-card-text {
        display: none !important;
    }
    
    .active-card-image {
        margin-right: 0 !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .paused-card-image {
        margin-right: 0 !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* Add New Deck Modal Styles */
.modal-content-custom {
background-color: #000000;
border: 3px solid #FFD700;
}

.modal-header-custom {
border-bottom: 2px dashed #FFD700;
}

.modal-title-custom {
color: #FFD700;
font-family: var(--courier-font);
}

.modal-body-custom {
color: #FFD700;
}

.modal-footer-custom {
border-top: 2px dashed #FFD700;
}

.form-label-custom {
color: #fff !important;
font-family: var(--courier-font);
font-weight: bold;
}

.form-control-custom {
background: #FFD700;
color: #000000;
border: 2px solid #000000;
font-family: var(--courier-font);
}

.form-check-input-custom {
background-color: #FFD700;
border: 2px solid #000000;
}

.form-check-input-custom-terms {
background-color: #FFD700;
border-color: #000000;
}

.form-check-label-custom {
color: #FFD700;
font-family: var(--courier-font);
font-weight: bold;
}

.form-check-label-terms {
color: #FFD700;
font-family: var(--courier-font);
padding-right: 20px;
font-size: 0.75rem !important;
}

.form-select-custom {
background: #FFD700;
color: #000000;
border: 2px solid #000000;
font-family: var(--courier-font);
background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 4 5&quot;><path fill=&quot;%23000000&quot; d=&quot;M2 0L0 2h4zm0 5L0 3h4z&quot;/></svg>');
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 16px 12px;
padding-right: 2.25rem;
min-height: 50px !important;
height: auto !important;
line-height: 1.4 !important;
padding-top: 12px !important;
padding-bottom: 12px !important;
}

.char-counter {
color: #dc3545;
font-family: var(--courier-font);
}

.image-input-hidden {
display: none;
}

.image-preview-logo {
width: 100px;
height: 100px;
border: 2px dashed #FFD700;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
background: rgba(255, 215, 0, 0.1);
}

.image-preview-background {
width: 100px;
height: 178px;
border: 2px dashed #FFD700;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
background: rgba(255, 215, 0, 0.1);
}

.image-preview-text {
color: #FFD700;
font-family: var(--courier-font);
font-size: 0.8rem;
text-align: center;
}

.upload-btn-custom {
background: #FFD700;
color: #000000;
border: 2px solid #000000;
font-family: var(--courier-font);
font-weight: bold;
font-size: 0.8rem;
}

.form-text-custom {
color: #FFD700;
font-size: 0.75rem;
}

.btn-cancel-custom {
background: transparent;
color: #FFD700;
border: 2px dashed #FFD700;
font-family: var(--courier-font);
}

.btn-create-custom {
background: #6c757d;
color: #ffffff;
border: 2px solid #6c757d;
font-family: var(--courier-font);
font-weight: bold;
cursor: not-allowed;
}

.btn-create-custom:enabled {
background: #FFD700;
color: #000000;
border-color: #000000;
cursor: pointer;
}

.image-preview img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 6px;
}

/* ===========================================
USER LIST PAGE STYLES
=========================================== */

/* Prevent horizontal scrollbar - use existing global styles */

/* Custom button styles */
.user-map-badge, .clickable-card {
cursor: pointer;
}

.search-button {
background: var(--primary-yellow) !important;
background-image: none !important;
border-color: var(--primary-yellow) !important;
color: var(--primary-black) !important;
font-family: var(--slackey-font) !important;
}

.search-button:hover,
.search-button:focus {
background: var(--primary-black) !important;
color: var(--primary-yellow) !important;
border-color: var(--primary-black) !important;
}

/* Pagination styles - Base styles for all pagination elements */
.pagination-link,
.pagination-disabled,
.pagination-last-link {
padding: 0.25rem 0.5rem;
min-width: 32px;
height: 32px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid transparent;
box-sizing: border-box;
}

/* Active pagination number styling */
.nav-link.pagination-active,
.pagination-active {
background-color: var(--primary-yellow) !important;
color: var(--primary-black) !important;
border: 2px dashed var(--primary-black) !important;
font-weight: bold !important;
border-radius: 50% !important;
text-shadow: none !important;
}

/* Regular pagination links need slightly more height */
.pagination-link {
height: 40px;
}

/* Next/Prev buttons - simplified styling */
.pagination-next-prev {
padding: 0.25rem 0.5rem;
}

/* JavaScript popup styles */
.popup-title {
color: #007bff;
}
/* Deck Card Grid Styles (from main site) */
.deck-ui-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
padding: 1rem 0;
}

.deck-ui-card {
background: #1a1a1a;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
border: 2px solid #000000;
position: relative;
display: flex;
flex-direction: column;
height: 100%;
}

.deck-ui-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
border-color: var(--primary-yellow);
}

.deck-card-image {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
}

.deck-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: transform 0.3s ease;
}

.deck-ui-card:hover .deck-card-image img {
transform: scale(1.05);
}

.deck-card-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
opacity: 0.8;
}

.deck-card-content {
padding: 1.25rem;
color: white;
flex: 1;
display: flex;
flex-direction: column;
}

.deck-card-title {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 0.75rem;
color: var(--primary-yellow);
font-family: var(--courier-font);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.deck-card-description {
font-size: 0.9rem;
color: #ccc;
line-height: 1.4;
margin-bottom: 1rem;
font-family: var(--courier-font);
}

.deck-description-compact {
font-size: 0.85rem;
opacity: 0.9;
}

/* User Card Specific Styles */
.user-card {
position: relative;
}

.user-name-badge-top {
position: absolute;
top: 10px;
left: 10px;
z-index: 20;
}

.user-name-badge-top .badge {
text-transform: uppercase;
}

.user-country-badge-top {
position: absolute;
top: 10px;
right: 10px;
z-index: 20;
}

.user-aura-badge {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 20;
}

.user-badge-bottom-left {
position: absolute;
bottom: 10px;
left: 10px;
z-index: 20;
}

.user-badge-bottom-right {
position: absolute;
bottom: 10px;
right: 10px;
z-index: 20;
}

.user-badge-bottom-center {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 20;
}

.user-verification-badge-top {
position: absolute;
top: 10px;
right: 10px;
z-index: 20;
display: flex;
gap: 0.25rem;
}

.user-verification-badge {
position: absolute;
top: 10px;
right: 10px;
z-index: 10;
}

.user-stats-row {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin-bottom: 0.5rem;
}

.user-stats-row .badge {
font-size: 0.75rem;
padding: 0.35rem 0.6rem;
border-radius: 6px;
font-weight: 600;
font-family: var(--courier-font);
}

.user-bottom-badges {
display: flex;
justify-content: space-between;
gap: 0.25rem;
margin-bottom: 0.5rem;
}

.user-bottom-badges .badge {
flex: 1;
text-align: center;
font-size: 0.75rem;
padding: 0.5rem 0.25rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}

.user-actions {
margin-top: auto;
padding-top: 1rem;
}

.user-actions .btn-group {
display: flex;
width: 100%;
gap: 0.25rem;
}

.user-actions .btn {
flex: 1;
border-radius: 6px !important;
font-size: 0.85rem;
padding: 0.5rem 0.75rem;
font-weight: 600;
transition: all 0.2s ease;
}

.user-actions .btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Ensure deck-card-content has proper flex layout for user cards */
.user-card .deck-card-content {
display: flex;
flex-direction: column;
height: 100%;
}

/* Badge hover effects */
.user-stats-row .badge[style*="cursor: pointer"]:hover {
transform: scale(1.05);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
.deck-ui-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}
}

@media (max-width: 768px) {
.deck-ui-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Truncate top left badge (user name/email) to 23 characters on mobile */
.user-name-badge-top .badge {
    max-width: 164px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Stack country badge underneath name badge on mobile */
.user-country-badge-top {
    position: absolute !important;
    top: 35px !important;
    left: 10px !important;
    right: auto !important;
}

/* Position aura badge at the bottom right on mobile */
.user-badge-bottom-left {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 15 !important;
}

/* Position balance badge in the middle on right side on mobile */
.user-badge-bottom-right {
    position: absolute !important;
    bottom: 35px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 15 !important;
}

/* Position asset count badge at the top of the right stack on mobile */
.user-badge-bottom-center {
    position: absolute !important;
    bottom: 60px !important;
    right: 10px !important;
    left: auto !important;
    transform: none !important;
    z-index: 15 !important;
}
}

.user-stats-row {
    justify-content: center;
}

.user-actions .btn-group {
    flex-direction: row;
    gap: 0.5rem;
}

.user-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.deck-card-content {
    padding: 1rem;
}

.deck-card-title {
    font-size: 1.1rem;
}
}

@media (max-width: 480px) {
.deck-ui-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.user-actions .btn-group {
    flex-direction: row;
    gap: 0.25rem;
}

.user-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
}

/* User Map Modal Aspect Ratio Styles */
.user-map-modal-dialog {
max-width: 85vw;
margin: 2rem auto;
}

.user-map-modal-content,
#userMapModal .modal-content {
height: 70vh; /* Fixed height instead of aspect ratio calculation */
max-height: 70vh;
display: flex;
flex-direction: column;
border: 2px solid var(--primary-yellow) !important;
box-shadow: 0 20px 60px var(--shadow-dark), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
overflow: hidden;
padding: 0 !important;
margin: 0 !important;
border-radius: 10px !important;
}

/* Remove all white space and gaps from modal */
#userMapModal .modal-content {
padding: 0 !important;
margin: 0 !important;
background: transparent !important;
}

#userMapModal .modal-header {
background-color: #212529 !important;
border-bottom: none !important;
border-top-left-radius: 7px !important;
border-top-right-radius: 7px !important;
margin: 0 !important;
padding: 1rem !important;
}

#userMapModal .modal-title {
color: var(--primary-yellow) !important;
}

#userMapModal .btn-close-white {
filter: brightness(0) saturate(100%) invert(81%) sepia(100%) saturate(2000%) hue-rotate(36deg) brightness(106%) contrast(107%) !important;
}

#userMapModal.modal {
background-color: rgba(0, 0, 0, 1) !important;
}

#userMapModal .modal-backdrop {
background-color: rgba(0, 0, 0, 1) !important;
opacity: 1 !important;
}

#userMapModal .modal-body {
padding: 0 !important;
margin: 0 !important;
border-bottom-left-radius: 7px !important;
border-bottom-right-radius: 7px !important;
overflow: hidden !important;
}

.user-map-modal-body {
flex: 1;
overflow: hidden;
position: relative;
min-height: 0;
border-bottom-left-radius: 7px !important;
border-bottom-right-radius: 7px !important;
display: flex;
flex-direction: column;
}

.user-map-modal-body .user-map-body {
height: 100%;
flex: 1;
border-bottom-left-radius: 7px !important;
border-bottom-right-radius: 7px !important;
overflow: hidden;
display: flex;
flex-direction: column;
}

.user-map-modal-body .map-container {
height: 100%;
flex: 1;
border-bottom-left-radius: 7px !important;
border-bottom-right-radius: 7px !important;
overflow: hidden;
}

.user-map-modal-body #map {
height: 100% !important;
width: 100% !important;
border-bottom-left-radius: 7px !important;
border-bottom-right-radius: 7px !important;
}

/* Desktop-specific: Ensure no gaps in map */
@media (min-width: 769px) {
#userMapModal .user-map-modal-body,
#userMapModal .user-map-body,
#userMapModal .map-container {
    min-height: 100% !important;
}

#userMapModal #map {
    min-height: 100% !important;
}
}

/* Map Filter Badges Overlay */
.map-filter-badges-overlay {
position: absolute;
top: 20px;
left: 20px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
max-width: 150px;
}

.map-filter-badge {
background: rgba(0, 0, 0, 0.8) !important;
color: white !important;
border: 2px solid transparent !important;
padding: 8px 12px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
border-radius: 8px !important;
backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
align-items: center;
min-width: 60px;
text-align: center;
}

.map-filter-badge:hover {
background: rgba(0, 0, 0, 0.9) !important;
border-color: var(--primary-yellow) !important;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-filter-badge.active {
background: var(--primary-yellow) !important;
color: var(--primary-black) !important;
border-color: var(--primary-black) !important;
}

.map-filter-badge .badge-count {
font-size: inherit;
font-weight: 600;
margin-top: 2px;
opacity: 0.9;
}

.map-filter-badge.active .badge-count {
opacity: 1;
}

/* Mobile devices - 1:1 aspect ratio (square) */
@media (max-width: 768px) {
#userMapModal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    margin: 0 auto !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

#userMapModal .user-map-modal-content {
    height: 90vw; /* 1:1 aspect ratio for mobile (square) */
    max-height: 95vh;
    margin: 0;
    border: 2px solid var(--primary-yellow) !important;
    box-shadow: 0 20px 60px var(--shadow-dark), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 10px !important;
}

/* Mobile responsive badges */
.map-filter-badges-overlay {
    top: 10px;
    left: 10px;
    max-width: 120px;
    gap: 6px;
}

.map-filter-badge {
    min-width: 50px;
    font-size: 0.65rem;
    padding: 6px 8px;
}

.map-filter-badge .badge-count {
    font-size: inherit;
}
}

/* ===========================================
STAGE EDIT PAGE STYLES
=========================================== */

/* Hero Section Styles */
.hero-section {
border-bottom: 2px dashed #ffd700 !important;
}

.bg-dark {
border-bottom: 2px dashed #ffd700 !important;
}

/* Location Card Styles */
.location-card {
background-image: url('https://s3.ap-southeast-1.amazonaws.com/cdn.metraverse.com/dev/headers/fo7Zl7fwJdLRK5jopMjVYLOqc2fMkM91fWW6vU6n.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
border-radius: 10px;
overflow: hidden;
}

.location-card-body {
position: relative;
z-index: 2;
}

.location-avatar {
width: 70px;
height: auto;
margin-right: 10px;
}

.location-title {
font-size: 1rem !important;
line-height: 1.0;
margin-bottom: 10px;
display: block;
}

.location-info {
color: #fff;
margin-left: unset;
font-size: 10px;
}

.location-button {
margin-left: unset;
font-size: 10px;
padding: 0.75rem;
}

.location-danger-button {
padding: 0.75rem;
margin-left: unset;
font-size: 10px;
}

.progress-text {
font-weight: 900;
font-size: 10px;
}

.progress-icon {
font-weight: 900;
}

.progress-container {
height: 20px;
position: relative;
border: 1px solid #000;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.progress-bar-custom {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 10px;
font-weight: bold;
color: #333;
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
white-space: nowrap;
}

.progress-labels {
font-size: 8px;
}

.progress-label {
color: black;
}

/* Stamp Styles */
.stamp-image {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Mini Card Info Styles */
.mini-card-container {
position: relative;
}

.mini-card-image {
aspect-ratio: 16/9;
object-fit: cover;
width: 100%;
height: auto;
}

.mini-card-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
text-align: center;
}

.mini-card-title-margin {
margin-top: 10px;
}

.mini-card-title {
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Level Styles */
.level-image {
display: block;
width: 150px;
height: auto;
margin-left: auto;
margin-right: auto;
}

.model-viewer {
width: 100%;
}

/* Form Styles */
.textarea-description {
height: 120px;
}

.upload-area {
position: relative;
display: inline-block;
cursor: pointer;
}

.upload-area:hover .camera-icon {
opacity: 1 !important;
}

.upload-preview {
max-width: 200px;
max-height: 100px;
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
background: #f8f9fa;
}

.upload-preview-large {
max-width: 200px;
max-height: 120px;
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
background: #f8f9fa;
}

.camera-icon {
position: absolute;
bottom: 5px;
right: 5px;
background: rgba(0,0,0,0.7);
color: white;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.camera-icon i {
font-size: 14px;
}

.upload-placeholder {
width: 200px;
height: 100px;
border: 2px dashed #ddd;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
background: #f8f9fa;
}

.upload-placeholder-large {
width: 200px;
height: 120px;
border: 2px dashed #ddd;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
background: #f8f9fa;
}

.upload-placeholder i {
font-size: 2rem;
color: #6c757d;
}

.hidden-input {
display: none;
}

/* Mobile Button Styles */
.mobile-button {
display: none;
margin-top: 10px;
}

/* Search Results Styles */
.search-results {
display: none;
max-height: 200px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
position: absolute;
z-index: 1000;
width: 100%;
}

/* Map Styles */
.map-container {
height: 600px;
position: relative;
}

/* Left Sliding Panel Styles */
.left-sliding-panel {
position: fixed !important;
top: 0 !important;
left: -320px !important;
width: 320px !important;
height: 100vh !important;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
z-index: 1050 !important;
transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
box-shadow: 2px 0 20px rgba(0,0,0,0.3), 4px 0 15px rgba(255, 215, 0, 0.2) !important;
border-right: 4px solid var(--primary-yellow) !important;
}

.left-sliding-panel.open {
left: 0 !important;
}

.panel-header {
padding: 1.5rem !important;
border-bottom: 1px solid #333 !important;
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
background: rgba(0,0,0,0.2) !important;
}

.panel-title {
color: #fff !important;
margin: 0 !important;
font-weight: 600 !important;
}

.panel-body {
padding: 1.5rem !important;
overflow-y: auto !important;
height: calc(100vh - 80px) !important;
}

.panel-toggle-btn {
position: fixed !important;
top: 50% !important;
left: 0 !important;
transform: translateY(-50%) !important;
width: 40px !important;
height: 40px !important;
background: var(--primary-yellow) !important;
border: 2px solid var(--primary-black) !important;
border-radius: 0 8px 8px 0 !important;
color: var(--primary-black) !important;
z-index: 1040 !important;
transition: all 0.3s ease !important;
box-shadow: 2px 0 10px rgba(0,0,0,0.2) !important;
}

.panel-toggle-btn:hover {
background: var(--primary-black) !important;
color: var(--primary-yellow) !important;
transform: translateY(-50%) scale(1.1) !important;
}

.panel-toggle-btn i {
transition: transform 0.3s ease !important;
}

.panel-toggle-btn.panel-open i {
transform: rotate(180deg) !important;
}

.panel-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background: rgba(0,0,0,0.5) !important;
z-index: 1030 !important;
opacity: 0 !important;
visibility: hidden !important;
transition: all 0.3s ease !important;
}

.panel-overlay.show {
opacity: 1 !important;
visibility: visible !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.left-sliding-panel {
    width: 280px !important;
    left: -280px !important;
}
}

/* Body shift when panel is open */
body.panel-open {
overflow-x: hidden !important;
}

/* Stage Edit Page Specific Styles */
.panel-title {
font-family: var(--slackey-font) !important;
color: #FFD700 !important;
}

.close-panel-btn {
background-color: #FFD700 !important;
color: #000000 !important;
border: 2px solid #000000 !important;
}

.global-deck-label {
text-transform: uppercase !important;
}

.age-range-label {
text-transform: uppercase !important;
}

.terms-modal-body {
font-family: var(--courier-font) !important;
font-size: 14px !important;
line-height: 1.6 !important;
}

.terms-heading {
font-family: var(--slackey-font) !important;
}

.terms-acknowledgment {
font-family: var(--slackey-font) !important;
}

.terms-close-btn {
background-color: var(--primary-yellow) !important;
color: var(--primary-black) !important;
border: 2px solid var(--primary-black) !important;
font-family: var(--slackey-font) !important;
}

/* Panel Search Input */
.panel-search-input {
border: 1px solid #6c757d !important;
border-bottom: 1px solid #6c757d !important;
box-shadow: none !important;
}

.panel-search-input:focus {
border-color: #007bff !important;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Remove dashed borders from form inputs */
.form-control, .form-select {
border-bottom: 1px solid #6c757d !important;
border-style: solid !important;
}

.form-control:focus, .form-select:focus {
border-bottom: 1px solid var(--primary-yellow) !important;
border-style: solid !important;
}

/* Deck Form Inputs with Yellow Borders */
.deck-form-input {
border: 1px solid rgba(138, 43, 226, 0.3) !important;
border-radius: 8px !important;
}

.deck-form-input:focus {
border-color: #9b59b6 !important;
box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1) !important;
}

/* Deck Count Title */
.deck-count-title {
font-family: var(--slackey-font) !important;
font-size: 3rem !important;
font-weight: 400 !important;
color: var(--primary-yellow) !important;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
}

.deck-count-subtitle {
    font-family: var(--slackey-font) !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    color: var(--primary-yellow) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    }

/* New Card - Portrait 9:16 Aspect Ratio */
.new-card-portrait {
    width: 100% !important;
    aspect-ratio: 9/16 !important;
    border: 3px solid var(--primary-yellow) !important;
    border-radius: 12px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.new-card-portrait:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3) !important;
    text-decoration: none !important;
    color: white !important;
}

.new-card-portrait .card-icon {
    font-size: 3rem !important;
    color: var(--primary-yellow) !important;
    margin-bottom: 1rem !important;
}

.new-card-portrait .card-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.new-card-portrait .card-subtitle {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
}

/* Mobile responsive font size for deck count title */
@media (max-width: 768px) {
.deck-count-title {
font-size: 2rem !important;
}
.deck-count-subtitle {
    font-size: 2rem !important;
    }
}

/* Header Subtitle */
.header-subtitle {
font-weight: bold !important;
}

@media (min-width: 768px) {
.header-subtitle {
    font-size: 1.1rem !important;
}
}

@media (max-width: 767.98px) {
.header-subtitle {
    font-weight: bold !important;
    font-size: 0.875rem !important;
}
}

/* Search and Button Height Match */
.header-search-row .btn {
padding: 0.875rem 1.375rem !important;
}

/* Custom Toggle Switch Colors */
.form-switch .form-check-input {
background-color: #333 !important;
border-color: var(--primary-yellow) !important;
}

.form-switch .form-check-input:checked {
background-color: var(--primary-yellow) !important;
border-color: var(--primary-yellow) !important;
}

.form-switch .form-check-input:focus {
box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
}

/* Dual Range Slider Styling */
.age-slider-container {
padding: 0 10px;
}

.dual-range-container {
position: relative;
height: 20px;
margin: 15px 0;
}

.range-input {
position: absolute;
width: 100%;
height: 6px;
background: transparent;
outline: none;
-webkit-appearance: none;
appearance: none;
pointer-events: auto;
z-index: 1;
}

.range-input::-webkit-slider-track {
background: transparent;
height: 6px;
}

.range-input::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: var(--primary-yellow);
border: 3px solid var(--primary-black);
border-radius: 50%;
cursor: pointer;
pointer-events: all;
transition: all 0.3s ease;
}

.range-input::-webkit-slider-thumb:hover {
transform: scale(1.2);
box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.range-input::-moz-range-track {
background: transparent;
height: 6px;
border: none;
}

.range-input::-moz-range-thumb {
width: 20px;
height: 20px;
background: var(--primary-yellow);
border: 3px solid var(--primary-black);
border-radius: 50%;
cursor: pointer;
pointer-events: all;
transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
transform: scale(1.2);
box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Track background */
.dual-range-container::before {
content: '';
position: absolute;
top: 7px;
left: 0;
right: 0;
height: 6px;
background: #333;
border-radius: 3px;
}

/* Active range highlight */
.dual-range-container::after {
content: '';
position: absolute;
top: 7px;
left: 0;
right: 0;
height: 6px;
background: var(--primary-yellow);
border-radius: 3px;
opacity: 0.3;
}

/* Image Preview Styles */
.image-preview-small {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}

.image-preview-large {
max-width: 100%;
max-height: 100%;
}

/* Deck Edit Styles */
.deck-textarea {
height: 100px;
}

.image-preview-container {
width: 200px;
height: 200px;
border: 2px dashed #ddd;
border-radius: 4px;
object-fit: cover;
cursor: pointer;
background: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
}

.image-preview-container-large {
width: 200px;
height: 120px;
border: 2px dashed #ddd;
border-radius: 4px;
object-fit: cover;
cursor: pointer;
background: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
}

.image-preview-container i {
font-size: 2rem;
color: #6c757d;
}

.crop-container {
display: none;
}

.crop-area {
max-width: 300px;
margin: 0 auto;
}

.crop-area-inner {
width: 100%;
height: 200px;
background: #f8f9fa;
}

/* New Card Button Styles */
.new-card-button {
position: relative;
z-index: 10;
background-color: #28a745;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
}

/* Modal Header Styles */
.modal-header-gold {
color: #FFD700 !important;
margin: 0;
}

/* Form Control Disabled Styles */
.form-control-disabled {
background-color: #e9ecef;
color: #6c757d;
cursor: not-allowed;
opacity: 0.7;
border-color: #ced4da;
}

.rarity-select-disabled {
opacity: 0.5;
}

/* Additional Inline Style Replacements */
.progress-bar-width {
width: var(--progress-width, 0%);
}

.form-control-disabled-inline {
background-color: #e9ecef;
color: #6c757d;
cursor: not-allowed;
opacity: 0.7;
border-color: #ced4da;
}

.submit-button-disabled {
opacity: 0.5;
}

.hidden-form {
display: none;
}

/* ===========================================
SIMPLE DECK CARDS STYLES
=========================================== */
.btn-deck-card {
transition: all 0.3s ease;
cursor: pointer;
}

.btn-deck-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
border-color: #ffd700 !important;
}

.btn-deck-card:active {
transform: translateY(0);
}

.btn-deck-card:focus {
box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
outline: none;
}

.deck-card-item {
transition: all 0.3s ease;
height: auto !important;
}

.deck-card-item.hidden {
display: none !important;
}

/* Lens cards in side panel - 16:9 aspect ratio */
.left-sliding-panel .deck-card-button {
aspect-ratio: 16 / 9 !important;
height: auto !important;
width: 100% !important;
}

/* Deck Card Button Styles */
.deck-card-button {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Ensure deck-card-button maintains aspect ratio on mobile - Updated 2024 */
@media (max-width: 767.98px) {
    .deck-card-button {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    /* Force aspect ratio with higher specificity */
    .deck-card-item .deck-card-button {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    /* Additional specificity for stage-edit cards */
    .mb-10 .deck-card-item .deck-card-button {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    /* Ensure flex layout works properly on mobile for card content */
    .deck-card-button .d-flex.flex-column {
        min-height: 100% !important;
        height: 100% !important;
    }
    
    /* Force bottom section to stick to bottom on mobile */
    .deck-card-button .d-flex.justify-content-between {
        margin-top: auto !important;
    }
    
    /* More specific targeting for the exact structure */
    .deck-card-item .deck-card-button .position-relative.d-flex.flex-column {
        min-height: 100% !important;
        height: 100% !important;
    }
    
    /* Target the bottom section specifically */
    .deck-card-item .deck-card-button .d-flex.justify-content-between.align-items-end {
        margin-top: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* Ensure the top section doesn't take up too much space */
    .deck-card-item .deck-card-button .text-center {
        flex-shrink: 1 !important;
    }
    
    /* Alternative approach: Use absolute positioning for bottom section on mobile */
    .deck-card-item .deck-card-button .position-relative.d-flex.flex-column {
        position: relative !important;
    }
    
    .deck-card-item .deck-card-button .d-flex.justify-content-between.align-items-end {
        position: absolute !important;
        bottom: 0.75rem !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        margin-top: 0 !important;
    }
}

.deck-card-button.active {
border: 2px solid #28a745;
}

.deck-card-button.paused {
border: 2px solid #ffc107;
}

/* Simple Deck Cards - Desktop Bottom Section Adjustments */
/* Move bottom section up on desktop only */
@media (min-width: 768px) and (max-width: 991.98px) {
    .desktop-bottom-adjust {
        transform: translateY(-100px) !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .desktop-bottom-adjust {

    }
}

@media (min-width: 1200px) {
    .desktop-bottom-adjust {

    }
}

/* Make white text bold on desktop */
@media (min-width: 768px) {
    .deck-title,
    .card-count-text {
        font-weight: bold !important;
    }
}

/* Dark Overlay Styles */
.deck-overlay {
background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
top: 0;
left: 0;
}

/* Deck Title Styles */
.deck-title {
font-family: var(--slackey-font) !important;
color: var(--primary-yellow) !important;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
white-space: normal;
word-wrap: break-word;
text-align: center !important;
display: block;
width: 100%;
}

/* Edit Icon Styles */
.edit-icon {
font-size: 1.2rem;
opacity: 0.8;
}

/* Collection Icon Styles */
.collection-icon {
font-size: 4rem;
color: #6c757d;
}

/* Cards Badge Styles */
.cards-badge {
border: 2px solid var(--primary-yellow) !important;
border-bottom: 2px solid var(--primary-yellow) !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
text-transform: uppercase !important;
}

/* Status Badge Styles */
.status-badge {
border: 2px solid var(--primary-black) !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
text-transform: uppercase !important;
}

/* Card Count Text Styles */
.card-count-text {
text-transform: uppercase !important;
}

/* Delete Deck Button Styles */
#deleteDeckBtn {
margin-right: auto;
}

#deleteDeckBtn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* ===========================================
DECK EDIT PAGE STYLES
=========================================== */

/* Badge Toggles */
.deck-status-toggle,
.deck-global-toggle {
cursor: pointer;
padding: 8px 16px;
font-size: 1rem;
}

/* Hidden File Inputs */
.image-input[type="file"] {
display: none;
}

/* Background Image Upload Button */
.btn-bg-image-upload {
background-color: #6f42c1 !important;
color: white !important;
border-color: #6f42c1 !important;
}

.btn-bg-image-upload:hover {
background-color: #5a32a3 !important;
border-color: #5a32a3 !important;
color: white !important;
}

/* Deck Card Preview Panel */
#deck-card-preview-panel {
height: fit-content;
background-size: cover;
background-position: center;
cursor: default !important;
}

#deck-card-preview-panel:hover {
transform: none !important;
box-shadow: none !important;
}

/* Re-enable pointer events for interactive elements inside the preview */
#deck-card-preview-panel button,
#deck-card-preview-panel input,
#deck-card-preview-panel .image-upload-container,
#deck-card-preview-panel .image-preview-container {
pointer-events: auto !important;
cursor: pointer !important;
}

/* Image Preview Containers */
.image-preview-container {
cursor: pointer;
}

/* Card Count Title */
.deck-cards-count-title {
font-family: var(--slackey-font);
}

/* No Results Message */
#no-results-message,
#no-results-message-cards {
display: none;
}

/* Text Transform Lowercase */
.text-lowercase-custom {
text-transform: lowercase;
}

/* Card Button Styles */
.card-button {
transition: all 0.2s ease;
border-radius: 20px;
font-size: 0.875rem;
padding: 0.375rem 0.75rem;
white-space: nowrap;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}

.card-button:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-button img {
flex-shrink: 0;
}

.card-button:focus {
box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

#edit-deck-active-cards .card-button:hover {
background-color: var(--bs-success);
border-color: var(--bs-success);
color: white;
}

#edit-deck-paused-cards .card-button:hover {
background-color: var(--bs-warning);
border-color: var(--bs-warning);
color: white;
}

/* Panel Body Deck Card Styling */
.panel-body .deck-card-button {
border: 2px solid #FFD700 !important;
}

/* Hide scrollbar in number input fields */
.panel-body input[type="number"] {
-moz-appearance: textfield;
}

.panel-body input[type="number"]::-webkit-inner-spin-button,
.panel-body input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

/* Deck card preview status buttons styling */
.panel-body .deck-card-button .btn-group label.btn {
border-radius: 0 !important;
}

.panel-body .deck-card-button .btn-group label.btn:first-of-type {
border-top-left-radius: 0.25rem !important;
border-bottom-left-radius: 0.25rem !important;
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}

.panel-body .deck-card-button .btn-group label.btn:last-of-type {
border-top-right-radius: 0.25rem !important;
border-bottom-right-radius: 0.25rem !important;
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
}

.deck-card-button .btn-outline-success {
border-color: #28a745;
color: #28a745;
background-color: rgba(40, 167, 69, 0.1);
}

.deck-card-button .btn-outline-success:hover,
.deck-card-button .btn-check:checked + .btn-outline-success {
background-color: #28a745;
color: #fff;
border-color: #28a745;
}

.deck-card-button .btn-outline-warning {
border-color: #ffc107;
color: #ffc107;
background-color: rgba(255, 193, 7, 0.1);
}

.deck-card-button .btn-outline-warning:hover,
.deck-card-button .btn-check:checked + .btn-outline-warning {
background-color: #ffc107;
color: #000;
border-color: #ffc107;
}

/* Image Upload Hover Effect */
.panel-body .image-preview-container,
.panel-body .image-preview-container-large {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}

/* Deck Logo specific styling - circular and centered */
.panel-body .image-preview-container {
border-radius: 50% !important;
margin: 0 auto;
width: 50%;
height: auto;
aspect-ratio: 1 / 1;
border: 3px solid #FFD700;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.19);
}

.panel-body .image-preview-container img {
border-radius: 50%;
width: 100%;
height: 100%;
object-fit: cover;
}

.panel-body .image-preview-container::after,
.panel-body .image-preview-container-large::after {
content: '\F30C'; /* Bootstrap icon upload */
font-family: 'bootstrap-icons';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: #FFD700;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}

/* Make logo hover overlay circular */
.panel-body .image-preview-container::after {
border-radius: 50%;
}

.panel-body .image-preview-container:hover::after,
.panel-body .image-preview-container-large:hover::after {
opacity: 1;
}

.panel-body .image-preview-container:hover,
.panel-body .image-preview-container-large:hover {
transform: scale(1.02);
}

/* Modal Cropper Styling */
#imageCropperModal .crop-area {
padding: 1rem;
display: flex;
align-items: center;
justify-content: center;
}

#imageCropperModal .crop-area-inner {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

#imageCropperModal .modal-content {
border: 1px solid #FFD700;
}

#imageCropperModal .modal-header {
border-bottom: 2px dashed #FFD700 !important;
}

#imageCropperModal .modal-title {
color: #FFD700 !important;
font-family: var(--slackey-font) !important;
}

#imageCropperModal .btn-close {
filter: brightness(0) saturate(100%) invert(85%) sepia(66%) saturate(544%) hue-rotate(359deg) brightness(104%) contrast(101%);
opacity: 1;
}

#imageCropperModal .btn-close:hover {
filter: brightness(0) saturate(100%) invert(85%) sepia(66%) saturate(544%) hue-rotate(359deg) brightness(104%) contrast(101%);
opacity: 0.8;
}

#imageCropperModal .modal-footer {
border-top: none;
}

@media (min-width: 768px) {
#imageCropperModal .modal-dialog {
    max-width: 600px;
}
}

/* ===========================================
EDIT PROP PAGE STYLES
=========================================== */

/* Section Styling */
.section-yellow-border-bottom {
border-bottom: 2px dashed #ffd700 !important;
}

/* Card Preview Styles */
.card-preview-9-16 {
aspect-ratio: 9 / 16;
background-size: cover;
background-position: center;
border: 2px solid #28a745;
border-radius: 10px;
}

.card-preview-16-9 {
aspect-ratio: 16/9;
padding: 5px;
background-size: cover;
background-position: center;
border: 2px solid #28a745;
border-radius: 10px;
}

.card-preview-base {
background-position: center;
border: 2px solid #28a745;
border-radius: 10px;
}

/* Text Styles */
.card-text-white-upper {
text-transform: uppercase;
font-size: 1rem;
color: #fff;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.card-text-gold-large {
text-transform: uppercase;
font-size: 1.5rem;
color: #ffd700;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.card-text-small-courier {
font-size: 0.9rem;
white-space: normal;
}

/* Avatar Image */
.avatar-preview-circular {
border: 2px solid #28a745;
border-radius: 50%;
width: 200px;
height: auto;
}

/* Cropping Interface */
.crop-container-hidden {
display: none;
}

.crop-area-box {
max-width: 300px;
margin: 0 auto;
}

/* File Input */
.file-input-hidden {
display: none;
}

/* Image Preview Containers */
.col-preview-padding {
padding: 5px;
}

.preview-16-9-white-text {
white-space: normal;
text-transform: uppercase;
font-size: 1rem;
color: #fff;
font-weight: bold;
aspect-ratio: 16/9;
padding: 5px;
background-size: cover;
background-position: center;
border: 2px solid #28a745;
border-radius: 10px;
}

/* Overlay */
.gradient-overlay {
background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
top: 0;
left: 0;
}

/* YouTube Thumbnail */
.youtube-thumbnail-hidden {
display: none;
}

.youtube-thumbnail-img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-video-placeholder {
width: 100%;
height: 112px;
background: #f8f9fa;
border: 2px dashed #dee2e6;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: #6c757d;
font-size: 14px;
font-weight: 500;
}

/* Map Container */
.map-container,
.map-element {
border-radius: 10px;
}

.map-search-input {
background: #FFFFFF;
color: #000000;
border: 2px solid #000000;
font-family: var(--courier-font);
}

.map-btn-exact {
background: #000000 !important;
color: #FFD700 !important;
border: 2px solid #000000 !important;
font-family: var(--courier-font);
font-weight: bold;
width: 40px;
height: 40px;
}

.map-btn-exact i {
color: #FFD700 !important;
}

.map-btn-range {
background: #FFD700 !important;
color: #000000 !important;
border: 2px solid #000000 !important;
font-family: var(--courier-font);
font-weight: bold;
width: 40px;
height: 40px;
}

.map-btn-range i {
color: #000000 !important;
}

.map-btn-country {
background: #FFFFFF !important;
color: #000000 !important;
border: 2px solid #000000 !important;
font-family: var(--courier-font);
font-weight: bold;
width: 40px;
height: 40px;
}

.map-btn-country i {
color: #000000 !important;
}

/* Range Display */
.range-display {
background: #000000;
color: #FFD700;
border: 2px solid #000000;
font-family: var(--courier-font);
font-weight: bold;
font-size: 0.9rem;
padding: 8px 12px;
border-radius: 4px;
min-width: 80px;
text-align: center;
}

/* Aspect Ratio Wrapper */
.aspect-ratio-9-16 {
position: relative;
width: 100%;
padding-bottom: 177.78%;
overflow: hidden;
border-radius: 10px;
}

.aspect-ratio-9-16-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

/* Hidden Elements */
.display-none {
display: none;
}

/* Placeholder Text */
.placeholder-text {
color: #adb5bd;
}

/* ===========================================
EDIT PROP PAGE STYLES
=========================================== */
/* Modal and Cropper Styles */
.modal-crop-body {
height: 500px;
position: relative;
}

.crop-modal-image {
max-width: 100%;
max-height: 100%;
}

/* Form Element Styles */
.hidden-file-input {
display: none;
}

.description-textarea-large {
height: 150px;
}

/* Icon Styles */
.icon-gold {
color: #FFD700 !important;
}

/* Location Item Styles */
.location-item-default {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
}

.location-item-geo {
background: #e3f2fd;
border: 1px solid #bbdefb;
border-radius: 4px;
}

.location-item-radius {
background: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 4px;
}

/* Location Marker Content */
.location-marker-content {
font-family: var(--courier-font);
color: #000000;
}

/* Loading Dialog */
.loading-dialog-content {
background: white;
padding: 20px;
border-radius: 8px;
text-align: center;
}

.loading-spinner-large {
width: 3rem;
height: 3rem;
}

/* Modal Footer */
.modal-footer-gold-border {
border-top: 2px dashed #FFD700;
}

/* Button States */
.btn-disabled-state {
opacity: 0.6;
}

.btn-enabled-state {
opacity: 1;
}

/* ===========================================
ADDITIONAL EDIT PROP PAGE STYLES
=========================================== */
/* Ensure modal appears above all overlays */
#imageCropperModal {
z-index: 10500 !important;
}

#imageCropperModal .modal-dialog {
z-index: 10501 !important;
}

#imageCropperModal .modal-content {
z-index: 10502 !important;
}

.modal-backdrop {
z-index: 10499 !important;
}

/* Ensure description modal appears above backdrop */
#descriptionModal {
z-index: 10500 !important;
}

#descriptionModal .modal-dialog {
z-index: 10501 !important;
}

#descriptionModal .modal-content {
z-index: 10502 !important;
}

/* Rotating animation for loading state - icon only */
.rotating {
background-color: #6c757d !important;
border-color: #6c757d !important;
color: white !important;
}

.rotating i {
animation: spin 1s linear infinite !important;
display: inline-block !important;
transform-origin: center !important;
}

@keyframes spin {
0% {
    transform: rotate(0deg);
}

100% {
    transform: rotate(360deg);
}
}

/* Crop container styles */
.crop-container {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 9999;
}

.crop-area {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
height: 80%;
max-width: 800px;
max-height: 600px;
}

/* Modal crop area specific styles */
#imageCropperModal .crop-area {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
height: 80%;
max-width: 700px;
max-height: 400px;
}

.crop-area-inner {
width: 100%;
height: 100%;
background: white;
border-radius: 8px;
overflow: hidden;
}

/* Modal crop area inner specific styles */
#imageCropperModal .crop-area-inner {
width: 100%;
height: 100%;
background: white;
border-radius: 8px;
overflow: hidden;
min-height: 300px;
}

.crop-controls {
position: absolute;
bottom: -60px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
}

/* Deck card preview styles */
.deck-card-preview-panel {
background-image: url('https://s3.ap-southeast-1.amazonaws.com/cdn.metraverse.com/dev/deck_backgrounds/Xx8Pm0mjEKpAPDxFJBQcJohl2flt9yNdAjeHW7dX.jpg');
}

.card-preview-9-16 {
display: none;
}

.preview-16-9-white-text {
/* Note: background-image is set dynamically per page */
}

/* Form control styles */
.deck-form-input {
background-color: #16192c !important;
color: white !important;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

/* Force default state styling */
select.deck-form-input {
background-color: #16192c !important;
color: white !important;
}

/* Override any inherited styles */
.form-control.deck-form-input {
background-color: #16192c !important;
color: white !important;
}

.deck-form-input option {
background-color: #16192c !important;
color: white !important;
}

/* Force select styling on all states */
.deck-form-input,
.deck-form-input:focus,
.deck-form-input:active,
.deck-form-input:hover,
.deck-form-input:focus-visible,
.deck-form-input:focus-within {
background-color: #16192c !important;
color: white !important;
}

/* Specific active state targeting */
select.deck-form-input:active,
select.deck-form-input:focus,
.form-control.deck-form-input:active,
.form-control.deck-form-input:focus {
background-color: #16192c !important;
color: white !important;
}

/* Target all option states */
.deck-form-input option,
.deck-form-input option:checked,
.deck-form-input option:selected,
.deck-form-input option:focus,
.deck-form-input option:hover {
background-color: #16192c !important;
color: white !important;
}

/* Additional selectors for different browsers */
select.deck-form-input option {
background: #16192c !important;
color: white !important;
}

select.deck-form-input option:checked {
background: #16192c !important;
color: white !important;
}

.description-textarea {
height: 150px;
}

.rarity-select-disabled {
opacity: 0.6;
background-color: #e9ecef;
color: #999;
}

/* Range drawing controls */
.range-draw-controls {
display: none;
}

.draw-button {
background: #000000 !important;
color: #FFD700 !important;
border: 2px solid #000000 !important;
font-family: var(--courier-font);
font-weight: bold;
}

.draw-button i {
color: #FFD700 !important;
}

.clear-button {
background: #dc3545 !important;
color: #FFFFFF !important;
border: 2px solid #dc3545 !important;
font-family: var(--courier-font);
font-weight: bold;
}

.clear-button i {
color: #FFFFFF !important;
}

.finish-button {
background: #28a745 !important;
color: #FFFFFF !important;
border: 2px solid #28a745 !important;
font-family: var(--courier-font);
font-weight: bold;
}

.finish-button i {
color: #FFFFFF !important;
}

/* Country container */
.country-container {
display: none;
background: #FFFFFF;
min-height: 300px;
}

.country-container h6 {
color: #000000;
font-weight: bold;
}

/* Additional location item styles */
.location-item-blue {
background: #e3f2fd;
border: 1px solid #bbdefb;
border-radius: 4px;
}

.location-item-yellow {
background: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 4px;
}

/* Modal styles */
.description-modal-content {
border: 2px solid #FFD700;
}

.description-modal-header {
border-bottom: 2px dashed #FFD700;
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}

.description-modal-title {
font-family: var(--slackey-font);
color: #FFD700;
margin: 0 !important;
flex: 1;
}

.description-modal-close {
filter: brightness(0) saturate(100%) invert(85%) sepia(66%) saturate(544%) hue-rotate(359deg) brightness(104%) contrast(101%);
margin-left: auto !important;
order: 2;
}

/* Download App Modal Header */
#downloadAppModal .modal-header {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}

#downloadAppModal .modal-title {
margin: 0 !important;
flex: 1;
order: 1;
}

#downloadAppModal .btn-close {
margin-left: auto !important;
order: 2;
}

.wiki-url-input {
border: 1px solid #FFD700 !important;
}

.loading-spinner {
width: 3rem;
height: 3rem;
}

/* Map popup content */
.map-popup-content {
font-family: var(--courier-font);
color: #000000;
}

/* Trivia questions */
.trivia-question-textarea {
min-height: 100px;
height: fit-content;
}

/* ===========================================
EDIT PROP PAGE STYLES
=========================================== */

/* Image Preview Container */
#edit_logo_preview {
width: 150px;
height: 150px;
margin: 0 auto;
}

/* Klout Generation Overlay */
.klout-overlay-bg {
background: rgba(0, 0, 0, 0.5);
pointer-events: none;
}

.klout-overlay-text {
font-size: 1.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Cursor Pointer */
.cursor-pointer {
cursor: pointer;
}

/* Deck Card Background Images */
.deck-card-bg-1 {
background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=800&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
}

.deck-card-bg-2 {
background-image: url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?w=800&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
}

.deck-card-bg-3 {
background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=800&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
}

.deck-card-bg-4 {
background-image: url('https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?w=800&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
}

.deck-card-bg-5 {
background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?w=800&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
}

/* Lens Description Text */
.lens-description-text {
text-transform: uppercase;
font-weight: bold;
font-size: 0.9rem;
white-space: normal;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

/* Modal Styles */
.modal-gold-border {
border: 3px solid #FFD700 !important;
border-bottom: 3px solid #FFD700 !important;
}

.modal-gold-dashed-border {
border-bottom: 1px dashed #FFD700 !important;
}

.modal-gold-dashed-top {
border-top: 1px dashed #FFD700 !important;
}

.modal-no-border {
border: none !important;
}

.modal-body {
background-color: #17192b !important;
border-top: 1px dashed #FFD700 !important;
border-bottom: 1px dashed #FFD700 !important;
}

.modal-header {
border-bottom: none !important;
}

.modal-footer {
border-top: none !important;
}

/* Modal Overlays */
.modal-custom-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1040;
}

/* Loading Dialog */
.loading-dialog-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 10600;
}

/* Wikipedia Search Results as Badges */
#wikiResultsList {
display: flex;
flex-wrap: wrap;
}

.wiki-badge {
transition: all 0.2s ease;
color: #FFD700 !important;
}

.wiki-badge:hover {
background-color: #2d3748 !important;
transform: scale(1.05);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
.deck-title {
    font-size: 1rem !important;
}

.lens-description-text {
    font-size: 0.7rem !important;
}

.klout-overlay-text {
    font-size: 1rem !important;
}
}

/* ============================================================================
   COOKIE CONSENT STYLES
   ============================================================================ */

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px 40px 20px;
    border-radius: 8px;
    z-index: 9999;
    max-width: 350px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #fbbf24;
    transform: translateX(-110%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.cookie-consent.show {
    transform: translateX(0);
}

.cookie-consent h4 {
    color: #fbbf24;
    margin: 0 0 8px 0;
    font-family: "Slackey", sans-serif;
    font-size: 16px;
    -webkit-text-stroke: unset;
    text-shadow: unset;
}

.cookie-consent p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.cookie-consent .cookie-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.cookie-consent .btn {
    padding: 6px 12px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-consent .btn-accept {
    background: #fbbf24;
    color: #000;
}

.cookie-consent .btn-accept:hover {
    background: #e6c13e;
    transform: translateY(-1px);
}

.cookie-consent .btn-reject {
    background: transparent;
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.cookie-consent .btn-reject:hover {
    background: #fbbf24;
    color: #000;
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(110%);
    }

    .cookie-consent.show {
        transform: translateY(0);
    }

    .cookie-consent .cookie-buttons {
        justify-content: center;
    }
}

/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--courier-font);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-link:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
    font-family: var(--courier-font);
    font-weight: bold;
    text-transform: uppercase;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ============================================================================
   MOBILE APP DOWNLOAD & MODAL STYLES
   ============================================================================ */

.btn-yellow {
    background-color: #FFD700 !important;
    border: 2px solid black !important;
    color: black !important;
    font-family: var(--courier-font) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.btn-yellow:hover {
    background-color: black !important;
    border: 2px solid black !important;
    color: #FFD700 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Download Modal Styles */
.download-modal-header {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #333;
}

.download-modal-title {
    text-shadow: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-text-stroke: none !important;
    text-stroke: none !important;
    -webkit-text-fill-color: inherit !important;
    border: none !important;
    -webkit-text-stroke-width: 0 !important;
    color: black !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    font-weight: bold;
}

.download-modal-description {
    font-family: var(--courier-font);
    line-height: 1.1;
    font-size: 0.9rem;
}

/* Mobile Only Styles */
@media (max-width: 768px) {
    /* Fixed mobile app download message */
    .mobile-app-download {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #1a1a1a;
        color: white;
        padding: 1rem;
        text-align: center;
        z-index: 1000;
        border-top: 2px dashed #FFD700;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
    }

    .mobile-app-download .btn {
        border: 2px solid rgba(255, 215, 0, 0.5) !important;
        background-color: #FFD700 !important;
        color: #1a1a1a !important;
        transition: border-color 0.3s ease;
        font-family: var(--courier-font) !important;
        text-transform: uppercase !important;
    }

    .mobile-app-download .btn:active {
        border: 2px solid #FFD700 !important;
    }
}

/* ============================================================================
   LANGUAGE DROPDOWN STYLES
   ============================================================================ */

.dropdown-toggle {
    border-color: #ffd645 !important;
    color: #ffd645 !important;
}

.dropdown-toggle-no-border {
    border: unset;
}

.dropdown-toggle:hover {
    background-color: #ffd645 !important;
    color: #000 !important;
}

.dropdown-toggle .fi {
    font-size: 1.2rem;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid #ffd645 !important;
    border-radius: 8px !important;
}

.dropdown-item {
    color: white !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 214, 69, 0.2) !important;
    color: #ffd645 !important;
}

.dropdown-item .fi {
    font-size: 1rem;
}

/* ============================================================================
   SEXY PAGINATION STYLES
   ============================================================================ */

.sexy-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sexy-pagination .page-item {
    list-style: none;
}

.sexy-pagination .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sexy-pagination .page-link::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.5s;
}

.sexy-pagination .page-link:hover::before {
    left: 100%;
}

.sexy-pagination .page-link:hover {
    transform: translateY(-3px);
    border-color: #fbbf24;
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.sexy-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fbbf24;
    color: #1a202c;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    transform: scale(1.1);
    font-weight: 700;
}

.sexy-pagination .page-item.active .page-link:hover {
    transform: scale(1.1);
    color: #1a202c;
}

.sexy-pagination .page-item.disabled .page-link {
    background: linear-gradient(135deg, #1a202c 0%, #0f1419 100%);
    border-color: #2d3748;
    color: #4a5568;
    cursor: not-allowed;
    opacity: 0.5;
}

.sexy-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #2d3748;
}

.sexy-pagination .page-link i {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .sexy-pagination .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .sexy-pagination {
        gap: 0.3rem;
    }
}



input#nameEdit {
    font-size: 1rem !important;
}

p#deckNameDisplay {
    font-size: 1.2rem !important;
}

select#deckEdit {
    font-size: 1.2rem !important;
}

/* Image should always be square */
.image-preview {
    position: relative;
    width: 50%;
    margin: 0 auto;
}

.image-preview::before {
    content: '';
    display: block;
    padding-bottom: 100%;
}

/* Desktop layout - column widths */
@media (min-width: 768px) {
    #leftColumnContainer {
        flex: 0 0 40% !important;
        border-right: 2px solid #ffd700 !important;
        border-bottom: none !important;
    }
    #rightColumnContainer {
        flex: 1 !important;
    }
}

/* XL layout - column widths */
@media (min-width: 1200px) {
    #leftColumnContainer {
        flex: 0 0 30% !important;
        border-right: 2px solid #ffd700 !important;
        border-bottom: none !important;
    }
    #rightColumnContainer {
        flex: 1 !important;
    }
}

/* Hide mobile buttons on desktop */
#newMobileBtn {
    display: none;
}

#viewDescriptionBtn {
    display: none;
}

/* Mobile styles */
@media (max-width: 767px) {
    #deck-card-preview-panel {
        aspect-ratio: 3/4;
        max-width: 75%;
        margin-left: auto;
        margin-right: auto;
        min-height: 360px;
    }
}

/* Bootstrap sm devices - replicate mobile styles */
@media (min-width: 576px) and (max-width: 767.98px) {
    #deck-card-preview-panel,
    .panel-body #deck-card-preview-panel {
        aspect-ratio: unset !important;
        max-width: 75% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        height: 100px !important;
        width: 75% !important;
    }
    
    /* Smaller fonts for title and subtitle on mobile */
    h2#titleDisplay {
        font-size: 1.5rem !important;
    }
    
    input#nameEdit {
        font-size: 1rem !important;
    }
    
    p#deckNameDisplay {
        font-size: 0.9rem !important;
    }
    
    select#deckEdit {
        font-size: 0.9rem !important;
    }
    
    /* Show mobile buttons on mobile only */
    #newMobileBtn {
        display: block !important;
    }
    
    #viewDescriptionBtn {
        display: block !important;
    }
    
    /* Hide text on mobile for buttons */
    #statsBtn .btn-text {
        display: none !important;
    }
    
    #viewDescriptionBtn .btn-text {
        display: none !important;
    }
    
    /* Hide description on mobile - handled by article writer modal */
    #descriptionDisplayContainer {
        display: none !important;
    }
    
    #descriptionEdit {
        display: none !important;
    }
    
    /* Hide right column on mobile */
    #rightColumnContainer {
        display: none !important;
    }
    
    /* Hide stats button on mobile */
    #statsButtonContainer {
        display: none !important;
    }
    
    /* Add margin below rarity badges on mobile */
    .d-flex.flex-fill {
        margin-bottom: 10px !important;
    }
    
    /* Remove border-bottom from left column on mobile */
    #leftColumnContainer {
        border-bottom: 0px !important;
        border-radius: 10px !important;
    }
    
    /* Mobile right column border radius */
    #rightColumnContainer {
        border-radius: 10px !important;
    }
}

/* Card Preview Panel */
#deck-card-preview-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid #ffd700;
    padding: 0;
    aspect-ratio: 16/9;
}

/* Left Column Container */
#leftColumnContainer {
    width: 100%;
    background: rgba(0,0,0,0.8);
    border-right: none;
    position: relative;
    border-radius: 10px 0 0 10px;
}

/* Title Display */
#titleDisplay {
    cursor: pointer;
    font-weight: 500;
    font-family: var(--slackey-font);
    color: white;
}

/* Title Edit Input */
#nameEdit {
    font-weight: 500;
    display: none;
    font-family: var(--slackey-font);
}

/* Deck Name Display */
#deckNameDisplay {
    cursor: pointer;
    font-family: var(--slackey-font);
    color: white;
    margin-bottom: 1rem;
}

/* Deck Edit Select */
#deckEdit {
    display: none;
    font-family: var(--slackey-font);
    background-color: #212529 !important;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

/* Deck Edit Options */
#deckEdit option {
    background-color: #212529;
}


        /* Image Preview */
        #edit_logo_preview {
            border-radius: 10px;
            overflow: hidden;
            border: 3px solid #ffd700;
            cursor: pointer;
        }
        
        /* Card Image */
        #edit_logo_preview img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            z-index: 1;
        }
        
        /* Image Placeholder */
        #edit_logo_preview .placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #212529;
            z-index: 1;
        }
        
        /* Placeholder Icon */
        #edit_logo_preview .placeholder i {
            font-size: 3rem;
        }
        
        /* Badge Styling */
        .badge.flex-fill {
            font-size: 0.9rem;
        }
        
        /* Klout Unit Text */
        #klout_generation_overlay span {
            text-transform: lowercase;
        }
        
        /* Right Column Container */
        #rightColumnContainer {
            position: relative;
            border-radius: 0 10px 10px 0;
        }
        
        /* Stats Button Container */
        #statsButtonContainer {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 10;
        }
        
        /* Action Buttons */
        #actionButtons {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
        }
        
        /* Description Container */
        #descriptionContainer {
            height: 100%;
        }
        
        /* Description Display Container */
        #descriptionDisplayContainer {
            overflow-y: auto;
            height: 100%;
            border-radius: 5px;
            padding: 15px;
        }
        
        /* Description Display Text */
        #descriptionDisplay {
            cursor: pointer;
            white-space: pre-wrap;
        }
        
        /* Description Edit Textarea - match display dimensions */
        #descriptionEdit {
            height: 100%;
            min-height: 200px;
            resize: none;
            font-family: inherit;
            font-size: inherit;
            line-height: inherit;
        }
        
        /* Bootstrap small devices and up - apply mobile font sizes */
        @media (max-width: 991.98px) {
            h2#titleDisplay {
                font-size: 1.5rem !important;
            }
            
            input#nameEdit {
                font-size: 1rem !important;
            }
            
            p#deckNameDisplay {
                font-size: 0.9rem !important;
            }
        }
        
        /* Force Bootstrap sm styles - highest priority */
        @media (min-width: 576px) and (max-width: 767.98px) {
            .panel-body #deck-card-preview-panel {
                aspect-ratio: unset !important;
                max-width: 75% !important;
                margin-left: auto !important;
                margin-right: auto !important;
                height: 100px !important;
                width: 75% !important;
            }
        }
            text-indent: 0;
            padding-left: 0;
            margin-left: 0;
            text-align: left;
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 0;
        }
        
        /* Description Edit Textarea */
        #descriptionEdit {
            display: none;
            font-size: 1.1rem;
            resize: none;
            line-height: 1.6;
            height: 400px;
            overflow-y: auto;
            border: 1px solid #ffd700;
            border-radius: 5px;
            padding: 15px;
        }
        
        /* Stats Map Container */
        #statsMapContainer {
            display: none;
        }
        
        /* Map Border */
        #statsMapContainer > div {
            border: 1px solid #ffd700;
            border-radius: 5px;
            overflow: hidden;
        }
        
        /* Admin Country Map */
        #adminCountryMap {
            width: 100%;
            height: 400px;
        }
        
        /* Stats Modal */
        #statsModal {
            z-index: 9999;
        }
        
        #statsModal .modal-dialog {
            z-index: 10000;
        }
        
        #statsModal .modal-content {
            z-index: 10001;
        }
        
        /* Stats Modal Title */
        #statsModalLabel {
            font-family: var(--slackey-font);
            color: #FFD700;
        }
        
        /* Stats Modal Close Button */
        #statsModal .btn-close {
            filter: invert(1);
        }
        
        /* Stats Modal Map */
        #statsModalMap {
            height: 400px;
            border: 1px solid #ffd700;
            border-radius: 5px;
            overflow: hidden;
        }
        
        #adminCountryMapModal {
            height: 100%;
            width: 100%;
        }
        
        /* Hidden Description Textarea */
        #description {
            display: none;
        }
        
        /* Edit Mode Notification */
        #editModeNotification {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 9999;
            display: none;
        }
        
        #editModeNotification .alert {
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        
        /* Update Notification */
        #updateNotification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: none;
        }
        
        #updateNotification .alert {
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        
        /* No Results Message */
        #no-results-message {
            display: none;
        }
        
        /* Map Info Window */
        .map-info-window {
            color: black;
        }
        
        /* ID Card Layout Container */
        .d-flex.flex-column.flex-md-row.h-100 {
            border-radius: 10px;
            border: 2px solid #ffd700;
        }
        

        
        /* Round business markers with yellow border */
        .business-marker {
            border-radius: 50% !important;
            border: 2px solid #FFD700 !important;
            width: 40px !important;
            height: 40px !important;
            object-fit: cover !important;
        }
        
        #deckNameDisplay {
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95) !important;
        }
        
        .klout-badge {
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95) !important;
        }
        
        @media (min-width: 768px) {

            
            #deckNameDisplay {
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.95) !important;
            }
            
            .klout-badge {
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.95) !important;
            }
        }
        
        .unified-map-container {
            border-radius: 0 !important;
            height: 100% !important;
            min-height: 400px;
            width: 800px;
        }
        
        .map-container {
            border-radius: 0 !important;
            height: 100% !important;
        }
        
        #map {
            border-radius: 0 !important;
            height: 100% !important;
            width: 100% !important;
        }
        
        /* Klout Badge Styles */
        .klout-badge {
            font-family: var(--slackey-font);
        }
        
        .klout-badge-desktop {
            font-size: 1.2rem;
        }
        
        .klout-badge-mobile {
            font-size: 0.9rem;
        }
        
        /* Area Display Styles */
        .area-display-mobile {
            font-size: 1.2rem;
        }
        
        /* Base Dilation Description */
        .base-dilation-description {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1rem;
        }
        
        /* Generated Map Image Container */
        .generated-map-image-container {
            display: none;
        }


        /* Badge cursor pointer styles */
    #toggleStatusBtnCopy,
    #deleteBtnCopy,
    #loyaltyCardCountBadge,
    #aiArticleGeneratedBadge {
        cursor: pointer;
    }
    
    /* Badge display styles */
    #loyaltyCardCountBadge,
    #aiArticleGeneratedBadge {
        display: none;
    }
    
    /* Klout badge font family */
    .klout-badge-text {
        font-family: var(--slackey-font);
    }
    
    /* Klout badge font sizes */
    .klout-badge-desktop {
        font-size: 1.2rem;
    }
    
    .klout-badge-mobile {
        font-size: 0.9rem;
    }
    
    /* Base dilation description positioning */
    .base-dilation-description {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
    }
    
    /* Description display cursor */
    #descriptionDisplay {
        cursor: pointer;
    }
    
    /* Deck left side background blur effect */
    .deck-left-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        opacity: 0.5;
        z-index: 0;
    }
    
    .deck-left-side > * {
        position: relative;
        z-index: 1;
    }

        /* Deck status toggle button display styles */
        #activeBadge {
            display: {{ $deck->is_active ? 'inline-block' : 'none' }};
        }
        
        #pausedBadge {
            display: {{ !$deck->is_active ? 'inline-block' : 'none' }};
        }
        
        #globalBadge {
            display: {{ $deck->is_global ? 'inline-block' : 'none' }};
        }
        
        #localBadge {
            display: {{ !$deck->is_global ? 'inline-block' : 'none' }};
        }
        
        /* Deck card preview panel background */
        .deck-card-preview-panel {
            background-image: url('{{ ENV('AWS_BASE_URL') . $deck->background_path }}');
        }
        
        /* Crop modal image styling */
        .image-preview-large {
            max-width: 100%;
        }

        .deck-title {
            font-size: 0.875rem !important;
            line-height: 1.2 !important;
        }

        @media (max-width: 767.98px) {
            
            .card-count-text {
                font-size: 0.75rem !important;
                font-weight: bold !important;
            }
            .card-count-text i {
                font-size: 0.7rem !important;
            }
            
            /* Simple mobile fix - just ensure the bottom section is visible */
            .deck-card-item .deck-card-button .d-flex.justify-content-between.align-items-end {
                background: rgba(0,0,0,0.5) !important;
                padding: 0.5rem !important;
                border-radius: 0.25rem !important;
            }
        }
        
        /* Bottom section styling */
        .deck-card-item .deck-card-button .d-flex.justify-content-between.align-items-end {
            margin-top: auto !important;
        }

            /* Wiki results display */
    #wikiResults {
        display: none;
    }
    
    /* Wiki no results display */
    #wikiNoResults {
        display: none;
    }
    
    /* Wiki badge styling */
    .wiki-badge {
        font-size: 0.9rem;
        padding: 10px 15px;
        cursor: pointer;
    }
    
    /* Wiki badge active state */
    .wiki-badge.active {
        border: 3px solid #FFD700;
        font-size: 0.9rem;
        padding: 10px 15px;
        cursor: pointer;
        background-color: #FFD700 !important;
        color: #000 !important;
        font-weight: bold;
    }
    
    /* Description textarea styling */
    .description-textarea-large {
        background-color: #000000 !important;
        border: 1px solid #FFD700 !important;
        height: 300px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Wiki references styling */
    #wikiReferences {
        display: none;
    }
    
    #wikiReferencesList {
        border: 1px solid #FFD700 !important;
        background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 4 5\'%3E%3Cpath fill=\'%23FFD700\' d=\'M2 0L0 2h4zm0 5L0 3h4z\'/%3E%3C/svg%3E') !important;
    }
    
    /* Portrait card inline editing styling */
    #portraitNameEdit {
        font-family: var(--slackey-font) !important;
        color: #FFD700 !important;
        font-size: 1.25rem !important;
        text-align: center !important;
        background-color: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid #FFD700 !important;
        border-radius: 8px !important;
    }
    
    #portraitNameEdit:focus {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
        border-color: #FFD700 !important;
        outline: none !important;
    }
    
    /* Portrait card description inline editing styling */
    #portraitDescriptionEdit {
        font-family: var(--courier-font) !important;
        color: #ffffff !important;
        font-size: 0.875rem !important;
        text-align: left !important;
        background-color: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid #FFD700 !important;
        border-radius: 8px !important;
        resize: vertical !important;
    }
    
    #portraitDescriptionEdit:focus {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
        border-color: #FFD700 !important;
        outline: none !important;
    }

    #mobileStatsMapContainer {
        height: 400px;
        border: 1px solid #ffd700;
        border-radius: 5px;
        overflow: hidden;
    }
    
    #mobileStatsMap {
        height: 100%;
        width: 100%;
    }
    
    .mobile-stats-infowindow {
        color: #000;
        padding: 5px;
    }
    
    .mobile-stats-infowindow-holder-count {
        color: #FFD700;
    }
    
    /* Card portrait and general styles */
    .klout-unit-sup {
        text-transform: lowercase;
    }
    
    .deck-title-large {
        font-size: 1.5rem !important;
    }
    
    .description-edit-textarea {
        height: 100px;
        display: none;
    }
    
    #portraitDescriptionCharCount {
        display: none;
    }
    
    #configureBtn {
        display: none;
    }
    
    .crop-area-inner {
        max-height: 500px;
    }
    
    .image-preview-large {
        max-width: 100%;
    }
    
    .location-card-inner {
        position: relative !important;
        min-height: 200px !important;
    }

    .clickable {
        cursor: pointer;
    }

    .flip-card {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 600px;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }

    .flip-card.flipped {
        transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .flip-card-back {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: rotateY(180deg);
        overflow-y: auto;
    }

    .flip-card-content {
        width: 100%;
        height: 100%;
    }

    .lens-preview-card {
        background: #2a2a2a;
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        border: 1px solid #444;
        transition: all 0.3s ease;
    }

    .lens-preview-card:hover {
        border-color: #ffd700;
        transform: translateY(-5px);
    }

    .lens-icon {
        font-size: 2rem;
        color: #ffd700;
    }

    .clickable {
        cursor: pointer;
    }


    /* Footer styling */
    .main-footer {
        border-top: 2px dashed var(--primary-yellow);
    }

    /* Medium screen font size adjustment for deck titles */
    @media (min-width: 768px) and (max-width: 991.98px) {
    .deck-title-md {
        font-size: 0.9rem !important;
    }
    
    /* Smaller font and icons for card count section on MD views */
    .card-count-text {
        font-size: 0.75rem !important;
    }
    
    .card-count-text i {
        font-size: 0.7rem !important;
    }
    
    .desktop-bottom-adjust i {
        font-size: 0.8rem !important;
    }
    }

/* Modal textarea styling */
#newDeckModal textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 120px !important;
}

/* New Deck Modal - styled via blade partial */
#newDeckModal .modal-content {
    border: none !important;
}

/* Terms Modal yellow border */
#termsModal .modal-content {
    border: 2px solid var(--primary-yellow) !important;
}

/* Modal header styling */
#newDeckModal .modal-title,
#termsModal .modal-title {
    font-family: var(--slackey-font) !important;
    color: var(--primary-yellow) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Fix modal z-index to ensure backdrop is behind modal */
.modal { 
    z-index: 1055 !important; 
}
.modal-backdrop { 
    z-index: 1050 !important; 
}
.modal-content { 
    position: relative !important; 
    z-index: 1056 !important; 
}

/* Desktop card counts visibility */
.d-none.d-md-flex {
    display: flex !important;
}

@media (min-width: 768px) {
    .d-none.d-md-flex {
        display: flex !important;
    }
}

/* Medium screen font size adjustment for deck titles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .deck-title {
        font-size: 0.9rem !important;
    }
}



    /* Server Load Warning Styles */
    .server-load-warning {
        display: none;
        border: 3px solid #dc3545 !important;
        background: #1a1a1a;
        color: #dc3545;
        font-family: var(--courier-font);
        cursor: pointer;
        transition: transform 0.2s;
    }
    
    #serverLoadWarning:hover {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
    }
    
    .server-load-details {
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    /* Map and User Details */
    .map-back-link {
        display: none;
    }
    
    .map-back-link-anchor {
        color: #FFD700;
        text-decoration: none;
        font-family: var(--courier-font);
        font-size: 0.85rem;
    }
    
    .user-details-text {
        font-size: 0.85rem;
    }
    
    /* Card Styles */
    .card-gold-border {
        border: 3px solid #FFD700 !important;
        background: #1a1a1a !important;
    }
    
    .user-location-map {
        width: 100%;
        height: 360px;
    }
    
    .locations-list-map {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 360px;
    }
    
    .user-list-container {
        max-height: 335px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .deck-list-container {
        max-height: 260px;
        overflow-y: auto;
        overflow-x: hidden;
        background: #1a1a1a;
    }
    
    /* Empty State */
    .empty-state {
        background: #2a2a2a;
    }
    
    .empty-state-icon {
        font-size: 2rem;
    }
    
    /* Courier Badge */
    .courier-badge {
        font-family: var(--courier-font);
        cursor: pointer;
    }
    
    /* File Upload Styles */
    .file-input-hidden {
        display: none;
    }
    
    .crop-container-hidden {
        display: none;
    }
    
    .crop-area-centered {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .crop-area-inner {
        width: 100%;
        height: 300px;
        background: #f8f9fa;
    }
    
    /* Logo Preview */
    .logo-preview-img {
        height: 100px;
        width: 100px;
        object-fit: cover;
    }
    
    .logo-preview-img-default {
        height: 134px;
        width: 134px;
        object-fit: cover;
    }
    
    /* Background Preview */
    .background-preview-img {
        height: 120px;
        width: 67px;
        object-fit: cover;
    }
    
    .background-preview-img-default {
        height: 240px;
        width: 134px;
        object-fit: cover;
    }
    
    /* Theme Card Styles */
    .theme-card-styled {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .theme-card-btn {
        color: #fff;
        margin-left: unset;
        font-size: 10px;
    }
    
    .latest-users-table {
        display: flex;
        flex-direction: column;
        background: #2a2a2a;
    }
    
                    .user-row {
                        display: grid;
                        grid-template-columns: 2fr 1fr 1fr 1fr;
                        gap: 0.5rem;
                        padding: 0.5rem 0.75rem;
                        border-bottom: 1px solid #3a3a3a;
                        text-decoration: none;
                        transition: all 0.2s;
                        align-items: center;
                    }
                    
                    .deck-info-row {
                        grid-template-columns: 2fr repeat(4, 0.8fr) !important;
                        font-size: 0.85rem;
                    }
    
    .user-row.hidden {
        display: none;
    }
    
    .user-filter-badge {
        opacity: 0.6;
        transition: opacity 0.2s, transform 0.1s;
        font-family: var(--courier-font);
        cursor: pointer;
    }
    
    .user-filter-badge:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }
    
    .user-filter-badge.active-filter {
        opacity: 1;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    
    .map-time-filter {
        opacity: 0.6;
        transition: opacity 0.2s, transform 0.1s;
        font-family: var(--courier-font);
        cursor: pointer;
    }
    
    .map-time-filter:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }
    
    .map-time-filter.active-map-filter {
        opacity: 1;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    
    /* Mobile responsiveness for user filter badges */
    .badge-text-mobile {
        display: none;
    }
    
    @media (max-width: 768px) {
        .badge-text-desktop {
            display: none;
        }
        .badge-text-mobile {
            display: inline;
        }
    }
    
    .user-row:hover {
        background: #3a3a3a;
    }
    
    .user-cell {
        display: flex;
        align-items: center;
    }
    
    .user-info {
        gap: 0.5rem;
        min-width: 0;
    }
    
    .user-avatar {
        position: relative;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #6c757d;
        flex-shrink: 0;
    }
    
    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .country-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        font-size: 0.6rem;
        background: #28a745;
        color: white;
        padding: 1px 3px;
        border-radius: 2px;
        line-height: 1;
        font-weight: bold;
    }
    
    .user-name-info {
        min-width: 0;
        flex: 1;
    }
    
    .user-name {
        color: #fff;
        font-weight: 600;
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-seen {
        color: #999;
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .stat-cell {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .stat-value {
        color: #fff;
        font-weight: 600;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .stat-label {
        color: #999;
        font-size: 0.65rem;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .extras-cell {
        gap: 0.25rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .extra-badge {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        background: #6c757d;
        color: white;
        font-size: 0.65rem;
        padding: 2px 4px;
        border-radius: 3px;
        line-height: 1;
    }
    
    .extra-badge.onboarded {
        background: #28a745;
    }
    
                    /* Deck info row specific styles */
                    .deck-info-row .country-badge {
                        background: #6c757d !important;
                    }
                    
                    /* Responsive adjustments */
                    @media (max-width: 1200px) {
                        .user-row {
                            grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr;
                            font-size: 0.9rem;
                        }
                        
                        .deck-info-row {
                            grid-template-columns: 2fr repeat(4, 0.8fr) !important;
                            font-size: 0.85rem;
                        }
                    }
                    
                    @media (max-width: 768px) {
                        .deck-info-row {
                            grid-template-columns: 2fr repeat(2, 0.8fr) !important;
                        }
                        
                        /* Hide Active and Paused on mobile */
                        .deck-info-row .stat-cell:nth-child(3),
                        .deck-info-row .stat-cell:nth-child(4) {
                            display: none;
                        }
                    }
                    
                    /* Deck Card Styles */
                    .no-results-hidden {
                        display: none;
                    }
                    
                    .deck-card-bg-hybrid {
                        background-image: url('https://s3.ap-southeast-1.amazonaws.com/cdn.metraverse.com/dev/map_images/hybrid_image_25.jpg');
                    }
                    
                    .deck-card-content-mobile {
                        position: relative !important;
                        min-height: 200px !important;
                    }
                    
                    .deck-card-content-desktop {
                        position: relative !important;
                    }
                    
                    .location-title {
                        color: #fff !important;
                        font-size: 1rem !important;
                    }
                    
                    .deck-card-button {
                        aspect-ratio: 16/9 !important;
                        min-height: 150px !important;
                        max-height: 300px !important;
                    }
                    
                    @media (max-width: 768px) {
                        .deck-card-button {
                            aspect-ratio: 16/9 !important;
                            min-height: 120px !important;
                            max-height: 250px !important;
                        }
                        
                        .deck-card-content-mobile {
                            justify-content: center !important;
                            align-items: center !important;
                        }
                    }

                    /* Fix modal z-index to appear above backdrop */
                    .modal {
                        z-index: 1055 !important;
                    }

                    .modal-backdrop {
                        z-index: 1050 !important;
                    }

                    h2.deck-count-subtitle {
                        margin-top: 1rem !important;
                    }

                    @media (max-width: 768px) {
                        h2.deck-count-subtitle {
                            font-size: 1.25rem !important;
                        }
                    }

                    /* User Tabs Styling */
                    .user-tabs-container {
                        padding: 0px;
                        margin-left: 20px;
                        display: flex;
                        gap: 10px;
                        justify-content: flex-start;
                    }

                    .user-tab-button {
                        border: none;
                        padding: 10px 20px;
                        font-weight: bold;
                        cursor: pointer;
                        border-radius: 5px 5px 0 0;
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        font-size: 0.875rem;
                        text-transform: uppercase;
                    }

                    .user-tab-active {
                        background-color: #FFD700;
                        color: #000;
                        border: none;
                    }

                    .user-tab-inactive {
                        background-color: #2a2a2a;
                        color: #888;
                        border: 1px solid #444;
                    }

                    /* Common Backgrounds */
                    .bg-dark-panel {
                        background-color: #FFD700;
                        color: #000;
                    }

                    /* Input Groups */
                    .flex-input-group {
                        display: flex;
                        flex-wrap: nowrap;
                    }

                    /* Select Dropdown Dark Theme */
                    .select-dark-theme {
                        background-color: #212529 !important;
                        color: #fff !important;
                        -webkit-appearance: none;
                        -moz-appearance: none;
                        appearance: none;
                    }

                    .select-dark-theme option {
                        background-color: #212529 !important;
                        color: #fff !important;
                    }

                    .select-dark-theme option:first-child {
                        background-color: #212529 !important;
                        color: #fff !important;
                    }

                    select#location-select {
                        background-color: #212529 !important;
                        color: #fff !important;
                    }

                    /* Hidden Element */
                    .hidden-element {
                        display: none;
                    }

                    /* Map Back Link */
                    .map-back-link {
                        cursor: pointer;
                    }

                    /* Crop Image Sizing */
                    .crop-image {
                        max-width: 100%;
                        max-height: 100%;
                    }

                    /* Badge Outline */
                    .badge {
                        border: 2px solid #000 !important;
                        color:#000
                    }

                    .all-card-row {
                        grid-template-columns: 3fr 1fr 1fr 1fr !important;
                    }
                    
                    @media (max-width: 768px) {
                        .all-card-row {
                            grid-template-columns: 2fr 1fr 1fr !important;
                        }
                        
                        /* Hide rarity column and badge on mobile */
                        .all-card-row .rarity-cell {
                            display: none !important;
                        }
                        
                        .all-card-row .rarity-badge {
                            display: none !important;
                        }
                    }
                    
                    .card-rarity-filter {
                        cursor: pointer;
                        transition: opacity 0.2s, transform 0.1s;
                        opacity: 0.6;
                    }
                    
                    .card-rarity-filter:hover {
                        opacity: 0.9;
                        transform: scale(1.05);
                    }
                    
                    .card-rarity-filter.active-filter {
                        opacity: 1;
                        font-weight: bold;
                        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
                    }

/* ========================================
   ADMIN DASHBOARD STYLES
   Migrated from admin-dashboard.blade.php
   ======================================== */

/* Cyberpunk Dark Theme */
body.bg-black {
    background: linear-gradient(135deg, #E91E8C 0%, #C5D93D 100%) !important;
    min-height: 100vh;
}

/* Dashboard Section Styles */
.dashboard-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.section-header i {
    font-size: 1.25rem;
    color: #FFD700;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.section-header .section-count {
    margin-left: auto;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
}

.stat-card .stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-top: 0.25rem;
}

.stat-card.stat-primary { border-left: 3px solid #0d6efd; }
.stat-card.stat-primary .stat-icon { color: #0d6efd; }

.stat-card.stat-success { border-left: 3px solid #198754; }
.stat-card.stat-success .stat-icon { color: #198754; }

.stat-card.stat-warning { border-left: 3px solid #ffc107; }
.stat-card.stat-warning .stat-icon { color: #ffc107; }

.stat-card.stat-info { border-left: 3px solid #0dcaf0; }
.stat-card.stat-info .stat-icon { color: #0dcaf0; }

.stat-card.stat-danger { border-left: 3px solid #dc3545; }
.stat-card.stat-danger .stat-icon { color: #dc3545; }

.stat-card.stat-gold { border-left: 3px solid #FFD700; }
.stat-card.stat-gold .stat-icon { color: #FFD700; }

/* Analytics Cards */
.analytics-card {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.analytics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.analytics-card-title {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-card-title i {
    font-size: 1rem;
}

.analytics-card-total {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFD700;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.analytics-grid.weeks {
    grid-template-columns: repeat(8, 1fr);
}

.analytics-grid.months {
    grid-template-columns: repeat(6, 1fr);
}

.analytics-item {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.analytics-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.analytics-item.current {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.analytics-day {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.analytics-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    font-family: var(--courier-font);
}

.analytics-item.current .analytics-day,
.analytics-item.current .analytics-value {
    color: #FFD700;
}

/* Action Button */
.action-button-danger {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.action-button-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: #fff;
}

/* Financial Dashboard */
.financial-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.financial-dashboard, .financial-dashboard * {
    color: #fff;
}

.financial-dashboard .subtitle { color: rgba(255, 255, 255, 0.7); }

.financial-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #E91E8C, #FFD700);
}

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

.financial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.financial-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.financial-title i {
    font-size: 1.75rem;
    color: #E91E8C;
}

.financial-title h4 {
    margin: 0;
    font-weight: 700;
    color: #FFD700;
    font-size: 1.25rem;
    font-family: var(--slackey-font);
    text-transform: uppercase;
}

.financial-title .subtitle {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
    font-family: var(--slackey-font);
    text-transform: uppercase;
}

.financial-period {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.period-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    color: #FFD700;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.finance-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.finance-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.finance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.finance-card.revenue::before { background: #C5D93D; }
.finance-card.ads::before { background: #E91E8C; }
.finance-card.iap::before { background: #C5D93D; }
.finance-card.users::before { background: #E91E8C; }

.finance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.finance-card-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.finance-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.finance-card.revenue .finance-card-icon { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.finance-card.ads .finance-card-icon { background: rgba(13, 202, 240, 0.2); color: #0dcaf0; }
.finance-card.iap .finance-card-icon { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.finance-card.users .finance-card-icon { background: rgba(111, 66, 193, 0.2); color: #6f42c1; }

.finance-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
    line-height: 1.2;
}

.finance-card-value .currency {
    font-size: 1rem;
    color: #666;
    margin-right: 0.25rem;
}

.finance-card-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.finance-card-change.positive {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.finance-card-change.negative {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.finance-card-change.neutral {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* Finance Card with Embedded Chart */
.finance-card-with-chart {
    display: flex;
    flex-direction: column;
}

.finance-card-chart {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.mini-chart-with-labels {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
}

.mini-chart-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-chart-bar-wrapper {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: flex-end;
}

.mini-chart-column .mini-chart-bar {
    width: 100%;
    min-height: 3px;
    background: linear-gradient(180deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.mini-chart-column.current .mini-chart-bar {
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.mini-chart-column .mini-chart-bar.iap-bar {
    background: linear-gradient(180deg, #ff9500 0%, #cc7700 100%);
}

.mini-chart-column.current .mini-chart-bar.iap-bar {
    background: linear-gradient(180deg, #ffaa00 0%, #ff9500 100%);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.mini-chart-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    white-space: nowrap;
}

.mini-chart-column.current .mini-chart-label {
    color: #00d4ff;
    font-weight: 600;
}

.mini-chart-column.iap.current .mini-chart-label {
    color: #ff9500;
}

/* Finance Card Breakdown (inside Total Revenue card) */
.finance-card-breakdown {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.breakdown-row .breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
}

.breakdown-row .breakdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.breakdown-row .breakdown-dot.ads {
    background: #00d4ff;
}

.breakdown-row .breakdown-dot.iap {
    background: #ff9500;
}

.breakdown-row .breakdown-dot.ratio {
    background: #a855f7;
}

.breakdown-row .breakdown-dot.transactions {
    background: #6c757d;
}

.breakdown-row .breakdown-value {
    color: #fff;
    font-weight: 600;
    font-family: var(--courier-font);
}

.financial-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    max-width: 400px;
}

.mini-chart-bar.iap-bar {
    background: #ff9500;
}

.mini-chart-bar.iap-bar:hover {
    background: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.5);
}

.mini-chart-bar.iap-bar.current {
    background: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.6);
}

/* Geo Dashboard */
.geo-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.geo-dashboard, .geo-dashboard * {
    color: #fff;
}

.geo-dashboard .subtitle { color: rgba(255, 255, 255, 0.7); }

.geo-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C5D93D, #FFD700, #C5D93D);
}

.geo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.geo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.geo-title i {
    font-size: 1.75rem;
    color: #C5D93D;
}

.geo-title h4 {
    margin: 0;
    font-weight: 700;
    color: #FFD700;
    font-size: 1.25rem;
    font-family: var(--slackey-font);
    text-transform: uppercase;
}

.geo-title .subtitle {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
    font-family: var(--slackey-font);
    text-transform: uppercase;
}

.geo-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.geo-controls .btn-success {
    background: #C5D93D;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.geo-controls .btn-success:hover {
    background: #d5e94d;
    transform: translateY(-2px);
}

.geo-controls .btn-danger {
    background: #E91E8C;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.geo-controls .btn-danger:hover {
    background: #d0197d;
    transform: translateY(-2px);
}

.geo-controls .location-dropdown {
    background: #1a1a2e;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    min-width: 200px;
    font-size: 0.8rem;
    cursor: pointer;
}

.geo-controls .location-dropdown:focus {
    outline: none;
    border-color: #FFD700;
}

.geo-controls .location-dropdown option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.geo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.geo-map-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
}

.geo-map-container #locationsListMap {
    height: 400px;
    width: 100%;
}

.geo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.geo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.geo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.geo-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geo-card-title i {
    color: #C5D93D;
}

.geo-card-count {
    font-size: 0.75rem;
    background: rgba(197, 217, 61, 0.2);
    color: #9ab02e;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.geo-time-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.geo-time-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.geo-time-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.geo-time-btn.active {
    background: #C5D93D;
    color: #000;
    font-weight: 600;
}

.geo-user-filters {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.geo-user-filter-select {
    width: 100%;
    background: #1a1a2e;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.geo-user-filter-select:focus {
    outline: none;
    border-color: #C5D93D;
}

.geo-user-filter-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.geo-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.geo-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.geo-filter-btn.active {
    background: rgba(13, 202, 240, 0.15);
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.geo-filter-btn.filter-all.active { background: rgba(13, 202, 240, 0.15); border-color: #0dcaf0; color: #0dcaf0; }
.geo-filter-btn.filter-active.active { background: rgba(25, 135, 84, 0.15); border-color: #198754; color: #198754; }
.geo-filter-btn.filter-dormant.active { background: rgba(255, 193, 7, 0.15); border-color: #ffc107; color: #ffc107; }
.geo-filter-btn.filter-unactivated.active { background: rgba(220, 53, 69, 0.15); border-color: #dc3545; color: #dc3545; }

.geo-user-list {
    max-height: 500px;
    overflow-y: auto;
}

.geo-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.geo-user-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(3px);
}

.geo-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.geo-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geo-user-avatar .country {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.55rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    color: #fff;
}

.geo-user-info {
    flex: 1;
    min-width: 0;
}

.geo-user-name {
    font-size: 0.8rem;
    color: #FFD700;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.geo-user-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.geo-user-stats {
    text-align: right;
    font-size: 14px;
}

.geo-user-stats .value {
    color: #E91E8C;
    font-weight: 700;
    font-family: var(--courier-font);
}

.geo-user-stats .value.klout {
    color: #C5D93D;
}

.geo-user-stats .value.iris {
    color: #E91E8C;
}

.geo-user-stats .value.hunt {
    color: #C5D93D;
}

.geo-user-stats .label {
    color: rgba(255, 255, 255, 0.5);
}

.geo-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.geo-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.geo-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
}

.geo-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.geo-selected-user {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Location List Styles */
.geo-locations-list {
    margin-top: 1rem;
}

.geo-locations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
}

.geo-locations-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geo-locations-title i {
    color: #20c997;
}

.geo-locations-count {
    font-size: 0.75rem;
    background: rgba(32, 201, 151, 0.15);
    color: #20c997;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.geo-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
    max-height: 450px;
    overflow-y: auto;
}

.geo-location-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.geo-location-card:hover {
    border-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.geo-location-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: rgba(0, 255, 136, 0.1);
}

.geo-location-image-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1) 0%, rgba(13, 202, 240, 0.1) 100%);
    color: #20c997;
    font-size: 2rem;
}

.geo-location-info {
    padding: 0.75rem;
}

.geo-location-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.geo-location-stats {
    display: flex;
    gap: 0.75rem;
}

.geo-location-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 14px;
}

.geo-location-stat i {
    font-size: 0.8rem;
}

.geo-location-stat.area {
    color: #0dcaf0;
}

.geo-location-stat.hexes {
    color: #20c997;
}

.geo-location-stat .value {
    font-weight: 600;
    font-family: var(--courier-font);
}

.geo-location-stat .label {
    color: #888;
}

.geo-locations-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.geo-locations-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.geo-location-card {
    position: relative;
}

.geo-location-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 5;
    font-size: 0.75rem;
}

.geo-location-card:hover .geo-location-delete {
    opacity: 1;
}

.geo-location-delete:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Responsive for Geo Dashboard */
@media (max-width: 1200px) {
    .geo-content {
        grid-template-columns: 1fr;
    }
    
    .geo-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .geo-sidebar .geo-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .geo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .geo-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .geo-controls .location-dropdown {
        width: 100%;
    }
    
    .geo-sidebar .geo-card {
        min-width: 100%;
    }
}

/* Deck Dashboard */
.deck-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.deck-dashboard, .deck-dashboard * {
    color: #fff;
}

.deck-dashboard .subtitle { color: rgba(255, 255, 255, 0.7); }

.deck-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E91E8C, #FFD700, #E91E8C);
}

.deck-header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.deck-dashboard .deck-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-align: left !important;
    text-shadow: none !important;
    color: inherit !important;
}

.deck-dashboard .deck-title i {
    font-size: 1.75rem !important;
    color: #E91E8C !important;
}

.deck-dashboard .deck-title h4 {
    margin: 0 !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
    font-size: 1.25rem !important;
    font-family: var(--slackey-font) !important;
    text-transform: uppercase !important;
    text-align: left !important;
    text-shadow: none !important;
}

.deck-dashboard .deck-title .subtitle {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 0.25rem !important;
    font-family: var(--slackey-font) !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

.deck-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.deck-controls .btn-success {
    background: #E91E8C;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(191, 0, 255, 0.4);
    transition: all 0.2s ease;
}

.deck-controls .btn-success:hover {
    background: #d0197d;
    transform: translateY(-2px);
}

.deck-controls .deck-search {
    background: #1a1a2e;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 200px;
    font-size: 0.85rem;
}

.deck-controls .deck-search:focus {
    border-color: #E91E8C;
    outline: none;
}

.deck-controls .deck-search::placeholder {
    color: #999;
}

.deck-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.deck-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.deck-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.deck-stat-card.stat-decks::before { background: linear-gradient(90deg, #8a2be2, #da70d6); }
.deck-stat-card.stat-active::before { background: #28a745; }
.deck-stat-card.stat-cards::before { background: #0dcaf0; }
.deck-stat-card.stat-common::before { background: #6c757d; }
.deck-stat-card.stat-rare::before { background: #ffc107; }
.deck-stat-card.stat-epic::before { background: #0d6efd; }
.deck-stat-card.stat-shiny::before { background: #dc3545; }

.deck-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    font-family: var(--courier-font);
}

.deck-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.deck-stat-card.stat-decks .deck-stat-value { color: #E91E8C; }
.deck-stat-card.stat-active .deck-stat-value { color: #C5D93D; }
.deck-stat-card.stat-cards .deck-stat-value { color: #E91E8C; }
.deck-stat-card.stat-common .deck-stat-value { color: #888; }
.deck-stat-card.stat-rare .deck-stat-value { color: #C5D93D; }
.deck-stat-card.stat-epic .deck-stat-value { color: #E91E8C; }
.deck-stat-card.stat-shiny .deck-stat-value { color: #C5D93D; }

.deck-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.deck-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.deck-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.deck-panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deck-panel-title i {
    color: #E91E8C;
}

.deck-panel-count {
    font-size: 0.75rem;
    background: rgba(233, 30, 140, 0.15);
    color: #E91E8C;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.deck-panel-filters {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.deck-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.deck-filter-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
}

.deck-filter-btn.active {
    background: rgba(138, 43, 226, 0.15);
    border-color: #8a2be2;
    color: #da70d6;
}

.deck-filter-btn.filter-active.active { border-color: #28a745; color: #28a745; background: rgba(40, 167, 69, 0.15); }
.deck-filter-btn.filter-paused.active { border-color: #ffc107; color: #ffc107; background: rgba(255, 193, 7, 0.15); }
.deck-filter-btn.filter-common.active { border-color: #6c757d; color: #adb5bd; background: rgba(108, 117, 125, 0.15); }
.deck-filter-btn.filter-rare.active { border-color: #ffc107; color: #ffc107; background: rgba(255, 193, 7, 0.15); }
.deck-filter-btn.filter-epic.active { border-color: #0d6efd; color: #0d6efd; background: rgba(13, 110, 253, 0.15); }
.deck-filter-btn.filter-shiny.active { border-color: #dc3545; color: #dc3545; background: rgba(220, 53, 69, 0.15); }

.deck-panel-search {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.deck-panel-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.deck-panel-search input::placeholder {
    color: #666;
}

/* Deck Grid - Portrait Card Layout */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    max-height: 450px;
    overflow-y: auto;
}

.deck-grid-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.deck-grid-card[data-deck-status="active"] {
    border-color: rgba(0, 255, 136, 0.5);
}

.deck-grid-card[data-deck-status="paused"] {
    border-color: rgba(255, 149, 0, 0.5);
}

.deck-grid-card:hover {
    transform: translateY(-3px);
    border-color: #E91E8C;
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.3);
}

.deck-grid-card[data-deck-status="active"]:hover {
    border-color: #C5D93D;
    box-shadow: 0 6px 20px rgba(197, 217, 61, 0.3);
}

.deck-grid-card[data-deck-status="paused"]:hover {
    border-color: #E91E8C;
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.3);
}

.deck-grid-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: rgba(191, 0, 255, 0.1);
}

.deck-grid-image-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(191, 0, 255, 0.15);
    color: #bf00ff;
    font-size: 2.5rem;
}

.deck-grid-image-placeholder span {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: #666;
}

.deck-grid-info {
    padding: 0.75rem;
}

.deck-grid-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deck-grid-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.deck-grid-meta .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.deck-grid-meta .status-dot.active { background: #28a745; }
.deck-grid-meta .status-dot.paused { background: #ffc107; }

.deck-grid-stats {
    display: flex;
    gap: 0.75rem;
}

.deck-grid-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 14px;
}

.deck-grid-stat.cards {
    color: #E91E8C;
}

.deck-grid-stat.holders {
    color: #9ab02e;
}

.deck-grid-stat .value {
    font-weight: 600;
    font-family: var(--courier-font);
}

.deck-grid-stat .label {
    color: rgba(255, 255, 255, 0.5);
}

.deck-grid-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.6rem;
    background: #E91E8C;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.deck-grid-badge.active {
    background: #C5D93D;
    color: #000;
}

.deck-grid-badge.paused {
    background: #E91E8C;
    color: #fff;
}

.deck-grid-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 5;
    font-size: 0.75rem;
}

.deck-grid-card:hover .deck-grid-delete {
    opacity: 1;
}

.deck-grid-delete:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.deck-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.deck-grid-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    color: #9b59b6;
}

.deck-grid-empty p {
    margin: 0;
    font-size: 0.85rem;
}

/* Card Grid - Similar to Deck Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    max-height: 450px;
    overflow-y: auto;
}

.card-grid-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.card-grid-card[data-card-status="active"] {
    border-color: rgba(40, 167, 69, 0.5);
}

.card-grid-card[data-card-status="paused"] {
    border-color: rgba(255, 193, 7, 0.5);
}

.card-grid-card:hover {
    transform: translateY(-3px);
}

.card-grid-card[data-card-status="active"]:hover {
    border-color: #28a745;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.25);
}

.card-grid-card[data-card-status="paused"]:hover {
    border-color: #ffc107;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.25);
}

.card-grid-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(155, 89, 182, 0.1) 100%);
}

.card-grid-image-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(155, 89, 182, 0.1) 100%);
    color: #9b59b6;
    font-size: 2rem;
}

.card-grid-info {
    padding: 0.75rem;
}

.card-grid-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-grid-deck {
    font-size: 14px;
    color: #888;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-grid-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    color: #888;
}

.card-grid-meta .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.card-grid-meta .status-dot.active { background: #28a745; }
.card-grid-meta .status-dot.paused { background: #ffc107; }

.card-grid-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-grid-stat {
    text-align: center;
}

.card-grid-stat .value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #da70d6;
    font-family: var(--courier-font);
}

.card-grid-stat .label {
    font-size: 0.55rem;
    color: #666;
    text-transform: uppercase;
}

.card-grid-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.card-grid-badge.common { background: rgba(108, 117, 125, 0.9); }
.card-grid-badge.rare { background: rgba(255, 193, 7, 0.9); color: #000; }
.card-grid-badge.epic { background: rgba(138, 43, 226, 0.9); }
.card-grid-badge.legendary { background: rgba(255, 140, 0, 0.9); }

.card-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.card-grid-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    color: #9b59b6;
}

.card-grid-empty p {
    margin: 0;
    font-size: 0.85rem;
}

/* Cards list - keep tabular format */
.deck-list {
    max-height: 350px;
    overflow-y: auto;
}

.deck-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.deck-item:hover {
    background: rgba(138, 43, 226, 0.1);
}

.deck-item:last-child {
    border-bottom: none;
}

.deck-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.deck-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-item-avatar .badge-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.55rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    color: #da70d6;
    font-weight: 600;
}

.deck-item-info {
    flex: 1;
    min-width: 0;
}

.deck-item-name {
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.deck-item-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.deck-item-meta .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.deck-item-meta .status-dot.active { background: #28a745; }
.deck-item-meta .status-dot.paused { background: #ffc107; }

.deck-item-stats {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.deck-item-stat {
    text-align: center;
}

.deck-item-stat .value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    font-family: var(--courier-font);
}

.deck-item-stat .label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.card-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-item-avatar.rarity-common { border: 2px solid #6c757d; }
.card-item-avatar.rarity-rare { border: 2px solid #ffc107; }
.card-item-avatar.rarity-epic { border: 2px solid #0d6efd; }
.card-item-avatar.rarity-shiny { border: 2px solid #dc3545; }

.deck-empty-state {
    padding: 2rem;
    text-align: center;
    color: #666;
}

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

/* Responsive for Deck Dashboard */
@media (max-width: 1400px) {
    .deck-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .deck-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .deck-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .deck-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .deck-controls .deck-search {
        width: 100%;
    }
    
    .deck-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.chart-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    flex: 1;
    min-height: 80px;
}

.mini-chart-bar {
    flex: 1;
    background: #00ccff;
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.mini-chart-bar:hover {
    background: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.mini-chart-bar.current {
    background: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breakdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.breakdown-dot.ads { background: #E91E8C; }
.breakdown-dot.iap { background: #C5D93D; }
.breakdown-dot.other { background: #888; }

.breakdown-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
}

/* Responsive improvements */
@media (max-width: 1200px) {
    .financial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .financial-charts {
        grid-template-columns: 1fr 1fr;
    }
    
    .financial-charts .chart-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .financial-charts {
        grid-template-columns: 1fr;
    }
    
    .financial-charts .chart-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-grid.months {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .financial-grid {
        grid-template-columns: 1fr;
    }
    
    .financial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .finance-card-value {
        font-size: 1.5rem;
    }
}

/* Collapsible Dashboard Functionality */
.dashboard-collapse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-left: 0.75rem;
}

.dashboard-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dashboard-collapse-btn i {
    transition: transform 0.3s ease;
}

.dashboard-collapse-btn.collapsed i {
    transform: rotate(-90deg);
}

.dashboard-collapsible {
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-collapsible.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0;
    display: none;
}

/* Reduce dashboard padding when collapsed */
.financial-dashboard.is-collapsed,
.geo-dashboard.is-collapsed,
.deck-dashboard.is-collapsed,
.monitoring-dashboard.is-collapsed {
    padding-bottom: 0.75rem !important;
    padding-top: 1rem !important;
}


/* Platform Stats Bar (integrated into Financial Dashboard) */
.platform-stats-bar {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.platform-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-stat-item i {
    font-size: 1rem;
    color: #ffd700;
}

.platform-stat-item .value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
}

.platform-stat-item .label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
}

/* Monitoring Dashboard */
.monitoring-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.monitoring-dashboard, .monitoring-dashboard * {
    color: #fff;
}

.monitoring-dashboard .subtitle { color: rgba(255, 255, 255, 0.7); }

.monitoring-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C5D93D, #FFD700, #C5D93D);
}

.monitoring-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.monitoring-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.monitoring-title i {
    font-size: 1.75rem;
    color: #C5D93D;
}

.monitoring-title h4 {
    margin: 0;
    font-weight: 700;
    color: #FFD700;
    font-size: 1.25rem;
    font-family: var(--slackey-font);
    text-transform: uppercase;
    text-align: left;
}

.monitoring-title .subtitle {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
    font-family: var(--slackey-font);
    text-transform: uppercase;
    text-align: left;
}

.monitoring-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
}

.monitoring-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.monitoring-status .status-dot.healthy { background: #28a745; }
.monitoring-status .status-dot.warning { background: #ffc107; }
.monitoring-status .status-dot.critical { background: #dc3545; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.monitoring-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.monitoring-chart-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.monitoring-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.monitoring-chart-title {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monitoring-chart-title i {
    color: #dc3545;
    font-size: 1rem;
}

.monitoring-stats-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.monitoring-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--courier-font);
}

.monitoring-stat-badge.avg {
    background: rgba(233, 30, 140, 0.15);
    color: #E91E8C;
}

.monitoring-stat-badge.peak {
    background: rgba(197, 217, 61, 0.2);
    color: #9ab02e;
}

.monitoring-chart-container {
    position: relative;
    height: 200px;
}

.monitoring-chart-container canvas {
    width: 100%;
    height: 100%;
}

.monitoring-chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.monitoring-last-updated {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
}

.monitoring-cron-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.monitoring-cron-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.monitoring-cron-title {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monitoring-cron-title i {
    color: #fd7e14;
    font-size: 1rem;
}

.monitoring-cron-count {
    font-size: 0.75rem;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.monitoring-cron-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
}

.monitoring-cron-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #C5D93D;
    transition: all 0.2s ease;
}

.monitoring-cron-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #FFD700;
}

.monitoring-cron-info {
    flex: 1;
    min-width: 0;
}

.monitoring-cron-name {
    font-size: 0.8rem;
    color: #FFD700;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monitoring-cron-time {
    font-size: 14px;
    color: #666;
    margin-top: 0.15rem;
}

.monitoring-cron-runs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.monitoring-cron-runs .count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fd7e14;
    font-family: var(--courier-font);
}

.monitoring-cron-runs .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.monitoring-cron-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.monitoring-cron-status.healthy {
    background: #20c997;
    box-shadow: 0 0 6px rgba(32, 201, 151, 0.5);
}

.monitoring-cron-status.warning {
    background: #fd7e14;
    box-shadow: 0 0 6px rgba(253, 126, 20, 0.5);
}

.monitoring-cron-status.error {
    background: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

.monitoring-cron-schedule {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 215, 0, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-top: 0.25rem;
    display: inline-block;
}

.monitoring-cron-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.monitoring-cron-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.monitoring-cron-meta-item i {
    font-size: 0.6rem;
}

.monitoring-cron-meta-item .value {
    color: #999;
}

.monitoring-cron-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
    font-style: italic;
}

/* Responsive for Monitoring Dashboard */
@media (max-width: 1200px) {
    .monitoring-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .monitoring-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .monitoring-stats-bar {
        flex-wrap: wrap;
    }
}

/* ========================================
   UTILITY CLASSES (Moved from inline styles)
   ======================================== */

/* Clickable element */
.clickable {
    cursor: pointer;
}

/* Server load details text */
.server-load-details {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Icon colors for charts */
.icon-cyan {
    color: #0dcaf0;
}

.icon-amber {
    color: #ffc107;
}

/* Text colors for chart totals */
.text-cyan {
    color: #0dcaf0;
}

.text-amber {
    color: #ffc107;
}

/* Button utilities */
.btn-nowrap {
    white-space: nowrap;
}

.btn-clear-beacons {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Map container */
#locationsListMap {
    height: 400px;
    width: 100%;
}

/* Link block style for clickable cards */
.link-block {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image placeholder initial state (hidden for JS toggle) */
.img-placeholder-hidden {
    display: none;
}

/* Empty state hint text */
.empty-hint {
    font-size: 0.75rem;
}

/* Spinner sizing */
.spinner-small {
    width: 1.5rem;
    height: 1.5rem;
}

/* ============================================================================
   HONEYCOMB DASHBOARD STYLES
   ============================================================================ */

.honeycomb-dashboard {
    background: linear-gradient(135deg, #1a1c2e 0%, #0d0f1a 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.honeycomb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    flex-wrap: wrap;
    gap: 15px;
}

.honeycomb-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.honeycomb-title i {
    font-size: 28px;
    color: #FFD700;
}

.honeycomb-title h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier Prime', monospace;
}

.honeycomb-title .subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.honeycomb-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.honeycomb-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

@media (max-width: 1200px) {
    .honeycomb-content {
        grid-template-columns: 1fr;
    }
}

/* Honeycomb Map Section */
.honeycomb-map-section {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 215, 0, 0.1);
}

@media (max-width: 1200px) {
    .honeycomb-map-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
}

.map-card {
    background: rgba(23, 25, 43, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.unified-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
}

@media (min-width: 1200px) {
    .unified-map-container {
        aspect-ratio: 1/1;
    }
}

.honeycomb-dashboard .map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0;
}

.map-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 25, 43, 0.95);
}

.map-loading-placeholder i {
    font-size: 48px;
    color: rgba(255, 215, 0, 0.5);
}

/* Business Overlay */
.business-overlay {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(23, 25, 43, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000 !important;
    border-top: 2px solid #FFD700;
    pointer-events: auto;
}

.business-overlay-content {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
}

.business-overlay-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #FFD700;
}

.business-overlay-address {
    font-size: 12px;
    color: #ccc;
    line-height: 1.3;
}

.business-overlay-close {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

/* Scraping Controls Card */
.scraping-controls {
    margin-top: 15px;
    background: rgba(23, 25, 43, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.scraping-controls-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.scraping-controls-header i {
    color: #FFD700;
    font-size: 18px;
}

.scraping-controls-header span {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.hex-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.hex-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.hex-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.hex-btn.active {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
}

.hex-btn.inactive {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

.category-select {
    flex: 1;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

.category-select:focus {
    border-color: #FFD700 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.comb-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.comb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.in-progress-view {
    text-align: center;
    padding: 20px;
}

.in-progress-view .spinner-border {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

/* Honeycomb Businesses Section */
.honeycomb-businesses-section {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
}

.businesses-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.businesses-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.businesses-panel-title i {
    color: #FFD700;
    font-size: 20px;
}

.businesses-count {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.businesses-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: #fff;
}

.filter-select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    min-width: 180px;
}

.filter-select:focus {
    border-color: #FFD700 !important;
    outline: none;
}

/* Businesses Pagination */
.businesses-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
}

.businesses-pagination .pagination {
    margin: 0;
}

/* Business Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 768px) {
    .businesses-grid {
        grid-template-columns: 1fr;
        max-height: unset;
    }
}

.business-card {
    background: rgba(23, 25, 43, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: inherit !important;
}

.business-card:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.business-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.business-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.business-image-placeholder i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
}

.business-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.business-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-address {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-stats {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.business-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.business-stat .value {
    font-size: 12px;
    font-weight: 600;
    color: #FFD700;
}

.business-stat .label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.business-stat.clickable {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.business-stat.clickable:hover {
    background: rgba(255, 215, 0, 0.15);
}

/* Businesses Empty State */
.businesses-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.businesses-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.businesses-empty p {
    margin: 0;
    font-size: 14px;
}

/* Businesses Grid Scrollbar */
.businesses-grid::-webkit-scrollbar {
    width: 6px;
}

.businesses-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.businesses-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.businesses-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ========================================
   DECK DASHBOARD STYLES
   Migrated from decks/edit.blade.php
   ======================================== */

/* Prevent Flash of Unstyled Content */
.deck-dashboard { opacity: 0; }

/* Main Dashboard Container */
.deck-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
    overflow: hidden;
}

/* Dashboard Header */
.deck-dashboard-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.deck-dashboard-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deck-dashboard-title > i {
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.deck-dashboard-title h4 {
    margin: 0;
    color: #FFD700;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', 'Courier Prime', monospace;
}

/* Header Deck Selector */
.header-deck-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.header-deck-name {
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-deck-name:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.header-deck-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.header-deck-selector.open .header-deck-chevron {
    transform: rotate(180deg);
}

.header-deck-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: none;
}

.header-deck-selector.open .header-deck-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.header-deck-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-deck-option:last-child {
    border-bottom: none;
}

.header-deck-option:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.header-deck-option.selected {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.header-deck-option i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.header-deck-option.selected i {
    color: #FFD700;
}

.subtitle-separator {
    margin: 0 0.25rem;
    opacity: 0.5;
}

/* Header Rarity Selector */
.header-rarity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.header-rarity-name {
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-rarity-name:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.header-rarity-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.header-rarity-selector.open .header-rarity-chevron {
    transform: rotate(180deg);
}

.header-rarity-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: none;
}

.header-rarity-selector.open .header-rarity-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

.header-rarity-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-rarity-option:last-child {
    border-bottom: none;
}

.header-rarity-option:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.header-rarity-option.selected {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.header-rarity-option i {
    font-size: 0.75rem;
}

.header-rarity-option.selected i {
    color: #FFD700;
}

/* Header Title Editable */
.header-title-editable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.header-title-editable h4 {
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    margin: -0.15rem -0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-title-editable h4:hover {
    background: rgba(255, 215, 0, 0.1);
}

.header-title-edit-icon {
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.header-title-editable:hover .header-title-edit-icon {
    opacity: 1;
}

.header-title-input {
    display: none;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #FFD700;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--courier-font);
    color: #FFD700;
    outline: none;
    min-width: 200px;
    max-width: 400px;
}

.header-title-editable.editing h4,
.header-title-editable.editing .header-title-edit-icon {
    display: none;
}

.header-title-editable.editing .header-title-input {
    display: block;
}

.deck-dashboard-title .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.deck-dashboard-controls .back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.deck-dashboard-controls .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Stats Bar */
.deck-stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.stats-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.stats-bar-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.stat-badge:hover { transform: scale(1.05); }
.stat-badge-info { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: #fff; }
.stat-badge-warning { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); color: #000; }
.stat-badge-primary { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: #fff; }
.stat-badge-success { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); color: #fff; }
.stat-badge-gold { background: linear-gradient(135deg, #FFD700 0%, #CC9900 100%); color: #000; }
.stat-badge-purple { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); color: #fff; }
.stat-badge-teal { background: linear-gradient(135deg, #20c997 0%, #17a085 100%); color: #fff; }

/* Dashboard Content Grid */
.deck-dashboard-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (max-width: 992px) {
    .deck-dashboard-content { grid-template-columns: 1fr; }
}

/* Profile Section */
.deck-profile-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profile Card (Flip Card) */
.profile-card {
    perspective: 1000px;
    height: 450px;
}

.profile-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.profile-card-inner.flipped { transform: rotateY(180deg); }

.profile-card-front,
.profile-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Deck Card Front Styles */
.deck-card-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.deck-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.deck-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    color: #fff;
}

.deck-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.deck-card-actions {
    display: flex;
    gap: 0.5rem;
}

.deck-status-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.deck-status-active { background: #28a745; color: #fff; }
.deck-status-paused { background: #ffc107; color: #000; }
.deck-status-delete { background: #dc3545; color: #fff; }
.deck-status-btn:hover { transform: scale(1.1); }

.deck-cards-count {
    background: rgba(0,0,0,0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.deck-card-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.deck-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.deck-card-title:hover { color: #FFD700; }

.deck-card-title-input {
    display: none;
    width: 90%;
    background: rgba(0,0,0,0.7);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

.deck-image-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deck-image-btn:hover {
    border-color: #FFD700;
    background: rgba(255,215,0,0.2);
    color: #FFD700;
}

.deck-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deck-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: color 0.2s ease;
}

.deck-card-description:hover { color: #FFD700; }

.deck-card-description-input {
    display: none;
    width: 100%;
    height: 70px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.5rem;
    resize: none;
}

.deck-description-counter {
    display: none;
    text-align: right;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.deck-age-sliders {
    display: flex;
    gap: 1rem;
}

.age-slider-group {
    flex: 1;
}

.age-slider-group label {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.25rem;
}

.age-slider-group .form-range {
    height: 0.5rem;
}

/* Back Card Styles */
.profile-card-back {
    background: linear-gradient(145deg, #2d2d5a 0%, #1e1e3f 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    transform: rotateY(180deg);
    padding: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.stats-title {
    color: #FFD700;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.stat-item {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item.full-width { grid-column: span 2; }

.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.stat-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.stat-value-success { color: #28a745; }
.stat-value-warning { color: #ffc107; }
.stat-value-info { color: #17a2b8; }
.stat-value-purple { color: #9c27b0; }

.stat-value-code {
    background: rgba(255,215,0,0.1);
    color: #FFD700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Flip Button */
.flip-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.flip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Action Buttons */
.profile-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.action-btn-add {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

.action-btn-global {
    background: linear-gradient(135deg, #20c997 0%, #17a085 100%);
    color: #fff;
}

.action-btn-local {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: #fff;
}

.deck-help-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

/* Cards Section */
.deck-cards-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards Panel */
.cards-panel {
    background: linear-gradient(145deg, #1e1e3f 0%, #2d2d5a 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cards-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cards-panel-header-locations {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0.05) 100%);
    border-bottom-color: rgba(156, 39, 176, 0.3);
}

.cards-panel-header-locations .cards-panel-title { color: #ce93d8; }

.cards-panel-header-global {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(32, 201, 151, 0.05) 100%);
    border-bottom-color: rgba(32, 201, 151, 0.3);
}

.cards-panel-header-global .cards-panel-title { color: #20c997; }

.cards-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--courier-font);
}

.cards-panel-search { flex: 1; max-width: 300px; }

.panel-search-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.9rem;
}

.panel-search-input::placeholder { color: rgba(255,255,255,0.5); }
.panel-search-input:focus { outline: none; border-color: #FFD700; }

.cards-panel-body {
    flex: 1;
    padding: 1rem;
}

.cards-panel-body::-webkit-scrollbar { width: 6px; }
.cards-panel-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
.cards-panel-body::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 3px; }
.cards-panel-body::-webkit-scrollbar-thumb:hover { background: rgba(255,215,0,0.5); }

.panel-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Deck Cards Grid */
.deck-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Modern Deck Card Items */
.deck-card-item {
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 38, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.deck-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.deck-card-item-paused {
    border-color: rgba(255, 193, 7, 0.3);
}

.deck-card-item-paused:hover {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.15);
}

.deck-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.deck-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Card Image Section */
.deck-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.deck-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.deck-card-item:hover .deck-card-image {
    transform: scale(1.05);
}

.deck-card-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

/* Badges on Image */
.deck-card-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.deck-card-badges-left {
    display: flex;
    gap: 0.35rem;
}

.deck-mini-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
}

.deck-mini-badge i {
    font-size: 0.6rem;
}

.deck-mini-badge-success {
    background: rgba(40, 167, 69, 0.85);
    color: #fff;
}

.deck-mini-badge-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.deck-mini-badge-dark {
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
}

.deck-mini-badge-holders {
    background: rgba(138, 43, 226, 0.7);
    color: #e0b3ff;
}

/* Card Info Section */
.deck-card-info {
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(22, 22, 40, 1) 0%, rgba(16, 16, 30, 1) 100%);
}

.deck-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #FFD700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier Prime', monospace;
}

.deck-card-rarity {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-family: 'Courier Prime', monospace;
}

.deck-card-desc {
    margin: 0.6rem 0 0 0;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Courier Prime', monospace;
}

/* Deck Cards Grid */
.deck-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.location-card-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(156,39,176,0.3);
}

.location-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(156,39,176,0.6);
}

.location-card-link {
    display: block;
    position: relative;
    height: 140px;
    text-decoration: none;
}

.location-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.location-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.location-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    color: #fff;
}

.location-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.location-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.location-badge-area { background: #28a745; }
.location-badge-hexes { background: rgba(0,0,0,0.6); }

.location-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Global Info */
.global-info-content {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.7);
}

.global-info-content > i {
    font-size: 3rem;
    color: #20c997;
    margin-bottom: 1rem;
    display: block;
}

.global-info-content h5 {
    color: #20c997;
    margin-bottom: 0.5rem;
}

/* Cards Empty State */
.cards-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.5);
}

.cards-empty > i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cards-empty p { margin-bottom: 1rem; }

/* Modal Styles */
.deck-modal-content {
    background: linear-gradient(145deg, #1e1e3f 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.deck-modal-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.deck-modal-body {
    background: #1a1a2e;
}

.deck-modal-footer {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.modal-body-height { min-height: 300px; }

.crop-area { width: 100%; height: 300px; display: flex; align-items: center; justify-content: center; }
.crop-area-inner { max-width: 100%; max-height: 100%; }
.crop-area-inner img { max-width: 100%; max-height: 300px; }

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000;
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFD700 100%);
    color: #000;
}

.btn-outline-gold {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    font-weight: 600;
}

.btn-outline-gold:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

/* Notifications */
.edit-mode-notification,
.update-notification { display: none; }

.edit-notification-position,
.update-notification-position {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* Clickable */
.clickable { cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .deck-dashboard-header { flex-direction: column; align-items: flex-start; }
    .deck-stats-bar { padding: 0.75rem 1rem; }
    .profile-card { height: 480px; }
    .deck-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: 1fr; }
}

/* Animation - Override FOUC prevention */
.deck-dashboard {
    opacity: 1 !important;
    transition: opacity 0.15s ease-in;
}

/* ========================================
   EDIT PROP PAGE STYLES
   Card editing dashboard specific styles
   ======================================== */

/* Deck name display on card */
.deck-card-deck-name {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.deck-card-deck-name:hover {
    color: #FFD700;
}

/* Card locations content area */
.card-locations-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.card-locations-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 220px;
    padding: 0 0.5rem;
}

.card-locations-scroll::-webkit-scrollbar {
    width: 4px;
}

.card-locations-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.card-locations-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,215,0,0.3);
    border-radius: 2px;
}

/* Mini locations grid for flip card back */
.locations-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.location-mini-item {
    position: relative;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.location-mini-item:hover {
    transform: scale(1.02);
}

.location-mini-item.active {
    border-color: #28a745;
}

.location-mini-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.location-mini-name {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.location-mini-check {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    color: #28a745;
    font-size: 0.8rem;
}

/* Card config input styles */
.card-config-input {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,215,0,0.3) !important;
    color: #fff !important;
}

.card-config-input:focus {
    background: rgba(0,0,0,0.5) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15) !important;
}

.card-config-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.card-config-textarea {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,215,0,0.3) !important;
    color: #fff !important;
    resize: none;
    min-height: 80px;
}

.card-config-textarea:focus {
    background: rgba(0,0,0,0.5) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15) !important;
}

/* YouTube panel header */
.cards-panel-header-youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0.05) 100%);
    border-bottom-color: rgba(255, 0, 0, 0.2);
}

.cards-panel-header-youtube .cards-panel-title {
    color: #ff4444;
}

/* Quiz panel header */
.cards-panel-header-quiz {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15) 0%, rgba(32, 201, 151, 0.05) 100%);
    border-bottom-color: rgba(32, 201, 151, 0.2);
}

.cards-panel-header-quiz .cards-panel-title {
    color: #20c997;
}

/* Quiz question item */
.quiz-question-item {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid #FFD700;
}

/* Stat badge danger (for YouTube) */
.stat-badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

/* Global card form controls */
#globalCardContent .form-control,
#globalCardContent select {
    background-color: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #ffffff !important;
    font-size: 0.8rem;
}

#globalCardContent .form-control:focus {
    background-color: rgba(0,0,0,0.5) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15) !important;
}

#globalCardContent .form-control:disabled {
    background-color: rgba(0,0,0,0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

#globalCardContent .form-check-input {
    background-color: rgba(0,0,0,0.4);
    border-color: rgba(255, 215, 0, 0.5);
}

#globalCardContent .form-check-input:checked {
    background-color: #FFD700;
    border-color: #FFD700;
}

/* Location badges container */
#locationBadgesContainer {
    min-height: 20px;
}

#locationBadgesContainer .badge {
    font-size: 0.7rem;
}

/* ============================================================
   AI QUALITY SELECTOR STYLES
============================================================ */

.quality-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.quality-option {
    cursor: pointer;
    margin: 0;
}

.quality-option .quality-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    text-align: center;
}

.quality-option:hover .quality-card {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.quality-option.selected .quality-card {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.quality-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
}

.quality-header i {
    font-size: 0.9rem;
}

.quality-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.quality-words {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.quality-cost {
    font-size: 0.65rem;
    color: #FFD700;
    font-weight: 500;
}

/* Responsive quality selector */
@media (max-width: 480px) {
    .quality-selector {
        grid-template-columns: 1fr;
    }
    
    .quality-option .quality-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
    }
    
    .quality-header {
        margin-bottom: 0;
    }
    
    .quality-details {
        flex-direction: row;
        gap: 0.75rem;
    }
}

/* ============================================================
   WIKIPEDIA SOURCE LINK STYLES
============================================================ */

.wiki-source-link {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    transition: all 0.2s ease;
}

.wiki-source-link:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(23, 162, 184, 0.4);
}

.wiki-source-link i.bi-wikipedia {
    font-size: 1.1rem;
}

.wiki-link-text {
    color: #17a2b8;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    word-break: break-word;
}

.wiki-link-text:hover {
    color: #1fc8e3;
    text-decoration: underline;
}

.wiki-link-text i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.wiki-link-text:hover i {
    opacity: 1;
}

/* ============================================================
   WIKIPEDIA SOURCES LIST STYLES
============================================================ */

.wiki-sources-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
}

.wiki-source-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

.wiki-source-item:hover {
    background: rgba(23, 162, 184, 0.15);
    border-color: rgba(23, 162, 184, 0.4);
    color: #fff;
}

.wiki-source-item i.bi-link-45deg {
    color: #17a2b8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.wiki-source-item .source-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-source-item .source-domain {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-source-item .source-external {
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    color: #17a2b8;
}

.wiki-source-item:hover .source-external {
    opacity: 1;
}

#wikiSourcesLoading {
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Scrollbar for sources list */
.wiki-sources-list::-webkit-scrollbar {
    width: 4px;
}

.wiki-sources-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.wiki-sources-list::-webkit-scrollbar-thumb {
    background: rgba(23, 162, 184, 0.4);
    border-radius: 2px;
}

.wiki-sources-list::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 162, 184, 0.6);
}

/* Primary Wikipedia source styling */
.wiki-source-item.wiki-source-primary {
    background: rgba(23, 162, 184, 0.15);
    border-color: rgba(23, 162, 184, 0.3);
}

.wiki-source-item.wiki-source-primary:hover {
    background: rgba(23, 162, 184, 0.25);
    border-color: rgba(23, 162, 184, 0.5);
}

.wiki-source-item.wiki-source-primary i.bi-wikipedia {
    color: #17a2b8;
    font-size: 1rem;
}

.wiki-source-item.wiki-source-primary .source-title {
    font-weight: 500;
}

/* ============================================================
   SELECTABLE SOURCES STYLES
============================================================ */

.wiki-source-item {
    cursor: default;
}

.wiki-source-item.source-selectable {
    cursor: pointer;
}

.wiki-source-item .source-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
}

.wiki-source-item .source-checkbox i {
    font-size: 0.9rem;
}

.wiki-source-item .source-unchecked {
    color: rgba(255, 255, 255, 0.3);
}

.wiki-source-item.source-selectable:hover .source-unchecked {
    color: rgba(255, 255, 255, 0.5);
}

.wiki-source-item.source-selected {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.4);
}

.wiki-source-item.source-selected:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
}

.wiki-source-item .source-icon {
    flex-shrink: 0;
}

.wiki-source-item .source-external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wiki-source-item .source-external-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #17a2b8;
}

.wiki-source-item .source-external-link i {
    font-size: 0.7rem;
}

/* Selection hint styling */
#sourceSelectionHint {
    font-size: 0.75rem;
    font-weight: normal;
}

/* Quality option flex display fix */
.quality-option {
    display: flex;
}

.quality-option[style*="display: none"] {
    display: none !important;
}

/* ============================================================
   AI ARTICLE WRITER - NEW DESIGN
============================================================ */

/* Header */
.ai-writer-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-writer-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    color: #FFD700;
}

.ai-writer-badge i {
    font-size: 0.8rem;
}

/* Body */
.ai-writer-body {
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
}

/* Steps */
.ai-writer-step {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    transition: all 0.3s ease;
}

.ai-writer-step:last-of-type {
    border-bottom: none;
}

.ai-step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ai-step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #1a1a2e;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ai-step-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ai-step-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.ai-step-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-step-content {
    margin-left: 40px;
}

/* Loading State */
.ai-loading-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-loading-mini {
    padding: 0.75rem;
}

.ai-loading-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFD700;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

.ai-loading-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ai-loading-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.ai-loading-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-loading-dots {
    display: flex;
    gap: 4px;
}

.ai-loading-dots span {
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* No Results */
.ai-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    gap: 0.5rem;
}

.ai-no-results i {
    font-size: 2rem;
}

.ai-no-results-mini {
    flex-direction: row;
    padding: 1rem;
}

.ai-no-results-mini i {
    font-size: 1.2rem;
}

/* Article List */
.ai-article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-article-list .wiki-badge {
    background: rgba(23, 162, 184, 0.15);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-article-list .wiki-badge:hover {
    background: rgba(23, 162, 184, 0.25);
    border-color: rgba(23, 162, 184, 0.5);
    transform: translateY(-1px);
}

.ai-article-list .wiki-badge.active,
.ai-article-list .wiki-badge.bg-warning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
    border-color: #FFD700;
    color: #FFD700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.ai-article-list .wiki-badge::before {
    content: '\F7A5';
    font-family: 'bootstrap-icons';
    font-size: 0.9rem;
}

.ai-article-list .wiki-badge.active::before,
.ai-article-list .wiki-badge.bg-warning::before {
    content: '\F26A';
}

/* Sources Grid */
.ai-sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Selection Badge */
.ai-selection-badge {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    color: #FFD700;
    font-weight: 500;
}

/* Quality Grid */
.ai-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.ai-quality-option {
    cursor: pointer;
    display: block;
}

.ai-quality-option[style*="display: none"] {
    display: none !important;
}

.ai-quality-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.ai-quality-option:hover .ai-quality-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ai-quality-option.selected .ai-quality-card {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.ai-quality-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-quality-icon.quick {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 152, 0, 0.15) 100%);
    color: #ffc107;
}

.ai-quality-icon.standard {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.25) 0%, rgba(0, 123, 255, 0.15) 100%);
    color: #17a2b8;
}

.ai-quality-icon.detailed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.25) 0%, rgba(32, 201, 151, 0.15) 100%);
    color: #28a745;
}

.ai-quality-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-quality-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
}

.ai-quality-desc {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-quality-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.ai-quality-words {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-quality-check {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.2s ease;
}

.ai-quality-option.selected .ai-quality-check {
    color: #FFD700;
}

.ai-quality-cost {
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFD700;
}

/* Generate Button */
.ai-writer-action {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-generate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.ai-generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ai-generate-btn:disabled {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.ai-generate-btn:disabled .ai-btn-sparkle {
    display: none;
}

.ai-btn-icon i {
    font-size: 1.1rem;
}

.ai-btn-sparkle {
    position: absolute;
    right: 1rem;
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* Output Section */
.ai-writer-output {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.ai-output-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.ai-output-header i:first-child {
    color: #FFD700;
}

.ai-output-header span {
    flex: 1;
}

.ai-output-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-output-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ai-output-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
}

.ai-output-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.02);
}

.ai-output-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Step completed state */
.ai-writer-step.completed .ai-step-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    font-size: 0;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.ai-writer-step.completed .ai-step-number::after {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
}

/* AI Writer Source Items - Updated Styling */
.ai-sources-grid .wiki-source-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    transition: all 0.2s ease;
}

.ai-sources-grid .wiki-source-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.ai-sources-grid .wiki-source-item.source-selected {
    background: rgba(40, 167, 69, 0.12);
    border-color: rgba(40, 167, 69, 0.35);
}

.ai-sources-grid .wiki-source-item.wiki-source-primary {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(0, 123, 255, 0.1) 100%);
    border-color: rgba(23, 162, 184, 0.35);
}

/* AI Article badges in new design */
.ai-article-list .wiki-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.ai-article-list .wiki-badge::before {
    color: rgba(255, 255, 255, 0.4);
}

.ai-article-list .wiki-badge:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.ai-article-list .wiki-badge:hover::before {
    color: #FFD700;
}

.ai-article-list .wiki-badge.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #FFD700;
}

.ai-article-list .wiki-badge.active::before {
    color: #FFD700;
}

/* Generate button enabled animation */
.ai-generate-btn:not(:disabled) {
    animation: btn-ready 2s ease-in-out infinite;
}

@keyframes btn-ready {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.5); }
}

/* ============================================================
   WIKIPEDIA ARTICLE GRID CARDS (Dashboard Style)
============================================================ */

/* Grid container */
.ai-article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* Individual card */
.wiki-grid-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(23, 162, 184, 0.3);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wiki-grid-card:hover {
    transform: translateY(-3px);
    border-color: rgba(23, 162, 184, 0.6);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.2);
}

.wiki-grid-card.selected {
    border-color: #FFD700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

/* Checkmark */
.wiki-grid-check {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.2s ease;
    z-index: 2;
}

.wiki-grid-card.selected .wiki-grid-check {
    background: #FFD700;
    color: #1a1a2e;
}

/* Image */
.wiki-grid-image {
    width: 100%;
    height: 90px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(0, 123, 255, 0.1) 100%);
}

.wiki-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wiki-grid-card:hover .wiki-grid-image img {
    transform: scale(1.05);
}

.wiki-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(23, 162, 184, 0.5);
    font-size: 2rem;
}

/* Info section */
.wiki-grid-info {
    padding: 0.6rem;
}

.wiki-grid-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-grid-card.selected .wiki-grid-title {
    color: #FFD700;
}

.wiki-grid-desc {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* ============================================================
   WIKIPEDIA SELECTED SUMMARY (Minimized State)
============================================================ */

.wiki-selected-summary {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    margin-left: 40px;
}

.wiki-selected-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 1.25rem;
}

.wiki-selected-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-selected-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wiki-selected-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-selected-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFD700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-selected-change {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.wiki-selected-change:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Minimized step styling */
.ai-writer-step.minimized {
    padding-bottom: 0.75rem;
}

.ai-writer-step.minimized .ai-step-header {
    margin-bottom: 0.5rem;
}

/* ============================================================
   QUALITY SELECTED SUMMARY (Minimized State)
============================================================ */

.quality-selected-summary {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.quality-selected-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.quality-selected-icon.quick {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 152, 0, 0.15) 100%);
    color: #ffc107;
}

.quality-selected-icon.standard {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.25) 0%, rgba(0, 123, 255, 0.15) 100%);
    color: #17a2b8;
}

.quality-selected-icon.detailed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.25) 0%, rgba(32, 201, 151, 0.15) 100%);
    color: #28a745;
}

.quality-selected-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.quality-selected-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.quality-selected-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.quality-selected-change {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.quality-selected-change:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ============================================================
   AI LOADING ANIMATION
============================================================ */

.loading-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-dialog-content {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 30, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.ai-loading-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.ai-magic-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #FFD700;
    animation: magic-pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes magic-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

.ai-magic-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ai-magic-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: 50%;
    animation: ring-expand 3s ease-out infinite;
}

.ring-1 {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 215, 0, 0.6);
    animation-delay: 0s;
}

.ring-2 {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 215, 0, 0.4);
    animation-delay: 1s;
}

.ring-3 {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 215, 0, 0.2);
    animation-delay: 2s;
}

@keyframes ring-expand {
    0% {
        width: 40px;
        height: 40px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        border-width: 1px;
    }
}

.ai-loading-title {
    color: #FFD700;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-loading-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}

.ai-loading-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ai-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
    animation: progress-shimmer 2s linear infinite;
}

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

/* ============================================================
   AI WRITING STYLE SELECTOR
============================================================ */

.ai-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .ai-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ai-style-option {
    cursor: pointer;
    display: block;
}

.ai-style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ai-style-option:hover .ai-style-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ai-style-option.selected .ai-style-card {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.ai-style-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ai-style-icon.balanced {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.3) 0%, rgba(73, 80, 87, 0.2) 100%);
    color: #adb5bd;
}

.ai-style-icon.serious {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3) 0%, rgba(0, 86, 179, 0.2) 100%);
    color: #4dabf7;
}

.ai-style-icon.casual {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.3) 0%, rgba(25, 135, 84, 0.2) 100%);
    color: #63e6be;
}

.ai-style-icon.storyteller {
    background: linear-gradient(135deg, rgba(153, 102, 255, 0.3) 0%, rgba(111, 66, 193, 0.2) 100%);
    color: #b197fc;
}

.ai-style-icon.witty {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #ffd43b;
}

.ai-style-icon.dramatic {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3) 0%, rgba(185, 43, 39, 0.2) 100%);
    color: #ff6b6b;
}

.ai-style-option.selected .ai-style-icon {
    box-shadow: 0 0 12px currentColor;
}

.ai-style-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ai-style-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.ai-style-option.selected .ai-style-name {
    color: #FFD700;
}

.ai-style-desc {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   AI WRITER STEP ROW LAYOUT (Quality + Style side by side)
============================================================ */

.ai-writer-step-row {
    padding: 1rem;
}

.ai-step-row-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .ai-step-row-container {
        grid-template-columns: 1fr;
    }
}

.ai-step-column {
    display: flex;
    flex-direction: column;
}

.ai-step-column .ai-step-header {
    margin-bottom: 0.5rem;
}

.ai-step-column .ai-step-content {
    margin-left: 0;
    flex: 1;
}

/* Compact Quality Grid for row layout */
.ai-step-column .ai-quality-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-step-column .ai-quality-card {
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}

.ai-step-column .ai-quality-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.ai-step-column .ai-quality-info {
    align-items: flex-start;
}

.ai-step-column .ai-quality-name {
    font-size: 0.75rem;
}

.ai-step-column .ai-quality-desc {
    font-size: 0.65rem;
}

.ai-step-column .ai-quality-meta,
.ai-step-column .ai-quality-check {
    display: none;
}

/* Compact Style Grid */
.ai-style-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.ai-style-card-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-style-card-compact i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.ai-style-option:hover .ai-style-card-compact {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-style-option.selected .ai-style-card-compact {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
}

.ai-style-option.selected .ai-style-card-compact i {
    opacity: 1;
}

/* Style icon colors in compact mode */
.ai-style-option[data-style="balanced"] .ai-style-card-compact i { color: #adb5bd; }
.ai-style-option[data-style="serious"] .ai-style-card-compact i { color: #4dabf7; }
.ai-style-option[data-style="casual"] .ai-style-card-compact i { color: #63e6be; }
.ai-style-option[data-style="storyteller"] .ai-style-card-compact i { color: #b197fc; }
.ai-style-option[data-style="witty"] .ai-style-card-compact i { color: #ffd43b; }
.ai-style-option[data-style="dramatic"] .ai-style-card-compact i { color: #ff6b6b; }

.ai-style-option.selected .ai-style-card-compact i {
    color: #FFD700;
}

/* Style card checkmark */
.ai-style-card-compact .style-check {
    margin-left: auto;
    font-size: 0.7rem;
    color: transparent;
    transition: all 0.2s ease;
}

.ai-style-option.selected .ai-style-card-compact .style-check {
    color: #FFD700;
}

.ai-style-card-compact .style-icon {
    flex-shrink: 0;
}

.ai-style-card-compact span {
    flex: 1;
}

/* ============================================================
   AI WRITER COLUMN SUMMARY (minimized view for Quality/Style)
============================================================ */

.ai-column-summary {
    margin-top: 0.5rem;
}

.ai-summary-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.ai-summary-card .ai-summary-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Quality icon backgrounds */
.ai-summary-card .ai-summary-icon.quick {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.ai-summary-card .ai-summary-icon.standard {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.ai-summary-card .ai-summary-icon.detailed {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

/* Style icon backgrounds */
.ai-summary-card .ai-summary-icon.balanced { background: rgba(173, 181, 189, 0.2); color: #adb5bd; }
.ai-summary-card .ai-summary-icon.serious { background: rgba(77, 171, 247, 0.2); color: #4dabf7; }
.ai-summary-card .ai-summary-icon.casual { background: rgba(99, 230, 190, 0.2); color: #63e6be; }
.ai-summary-card .ai-summary-icon.storyteller { background: rgba(177, 151, 252, 0.2); color: #b197fc; }
.ai-summary-card .ai-summary-icon.witty { background: rgba(255, 212, 59, 0.2); color: #ffd43b; }
.ai-summary-card .ai-summary-icon.dramatic { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }

.ai-summary-card .ai-summary-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ai-summary-card .ai-summary-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.ai-summary-card .ai-summary-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.ai-summary-change-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-summary-change-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ============================================================
   COMPACT SOURCE CHIPS (Favicon-based Research Sources)
============================================================ */

.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 200px;
}

.source-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.source-chip-check {
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
}

.source-chip-check .source-checked {
    display: none;
    color: #28a745;
}

.source-chip-check .source-unchecked {
    display: inline;
}

.source-chip.source-selected .source-chip-check .source-checked {
    display: inline;
}

.source-chip.source-selected .source-chip-check .source-unchecked {
    display: none;
}

.source-chip-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: contain;
}

.source-chip-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.source-chip-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.source-chip:hover .source-chip-link {
    opacity: 1;
}

.source-chip-link:hover {
    color: #17a2b8;
}

.source-chip-link i {
    font-size: 0.6rem;
}

/* Selected state */
.source-chip.source-selected {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.4);
}

.source-chip.source-selected:hover {
    background: rgba(40, 167, 69, 0.2);
}

/* Primary Wikipedia chip */
.source-chip.source-chip-primary {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2), rgba(0, 123, 255, 0.15));
    border-color: rgba(23, 162, 184, 0.4);
    cursor: default;
}

.source-chip.source-chip-primary .source-chip-check i {
    color: #17a2b8;
}

.source-chip.source-chip-primary .source-chip-title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

/* Disabled/unavailable state for quick quality */
.source-chip.source-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   CLICKABLE STAT BADGES (Toggle functionality)
============================================================ */

.stat-badge-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.stat-badge-clickable:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-badge-clickable:active {
    transform: translateY(0);
}

.stat-badge-clickable:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Delete badge in stats bar */
.stat-badge-delete {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.stat-badge-delete:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff4d5e;
}

/* ============================================================
   MODERN CARD PREVIEW PANEL (Edit Prop Page)
============================================================ */

.card-preview-panel {
    perspective: 1000px;
    height: 480px;
}

.card-preview-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.card-preview-inner.flipped {
    transform: rotateY(180deg);
}

.card-preview-front,
.card-preview-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-preview-back {
    transform: rotateY(180deg);
}

/* Cover Image Section */
.card-cover-section {
    position: relative;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

.card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.card-cover-edit {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.card-cover-section:hover .card-cover-edit {
    opacity: 1;
}

.card-cover-edit:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: #FFD700;
}

/* Card Info Section */
.card-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
}

/* Deck Row */
.card-deck-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-deck-row:hover {
    background: rgba(255, 215, 0, 0.1);
}

.card-deck-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-deck-badge i {
    color: #17a2b8;
}

.card-edit-icon {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
}

.card-deck-row:hover .card-edit-icon,
.card-title-row:hover .card-edit-icon {
    color: #FFD700;
}

.card-select-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
}

/* Title Row */
.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-title-text {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.2s ease;
}

.card-title-row:hover .card-title-text {
    color: #FFD700;
}

.card-title-input {
    display: none;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Description Row */
.card-description-row {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card-description-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--courier-font);
}

.card-description-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: rgba(255, 215, 0, 0.6);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-description-row:hover .card-description-hint {
    opacity: 1;
}

/* Locations Button */
.card-locations-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-locations-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.card-locations-btn i {
    color: #FFD700;
}

.locations-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFD700;
}

/* ============================================================
   CARD PREVIEW BACK (Locations)
============================================================ */

.card-back-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.card-back-header i {
    color: #FFD700;
}

.card-back-header span.clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.card-back-header span.clickable:hover {
    color: #FFD700;
}

.card-header-title-input {
    display: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid #FFD700;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.25rem 0.5rem;
    width: auto;
    max-width: 180px;
    font-family: inherit;
}

.card-header-title-input:focus {
    outline: none;
}

.card-back-header span.clickable.d-none + .card-header-title-input {
    display: inline-block;
}

/* When card-back-header is on front, cover section follows */
.card-preview-front .card-back-header + .card-cover-section {
    flex: 1;
    height: auto;
}

.card-locations-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

.card-scope-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.scope-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid rgba(23, 162, 184, 0.4);
    border-radius: 20px;
    color: #17a2b8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scope-toggle-btn:hover {
    background: rgba(23, 162, 184, 0.3);
}

.card-scope-hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.card-countries-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.card-countries-toggle .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.card-region-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-region-selectors .form-select {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8rem;
}

.card-location-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.card-locations-scroll {
    flex: 1;
    overflow-y: auto;
}

.card-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
    margin: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================================================
   ARTICLE VIEW PANEL (Existing Article Display)
============================================================ */

.article-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-view-header .cards-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.article-view-header .cards-panel-title i {
    color: #17a2b8;
}

.article-rewrite-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-rewrite-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.article-rewrite-btn i {
    font-size: 0.85rem;
}

.article-view-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: none;
    overflow-y: visible;
}

.article-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Scrollbar for article content */
.article-content::-webkit-scrollbar {
    width: 6px;
}

.article-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.article-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.article-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.article-stats {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-stat i {
    color: rgba(255, 215, 0, 0.6);
}

/* Cancel button for AI Writer */
.ai-writer-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-cancel-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-cancel-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

/* ============================================================
   ARTICLE VIEW SECTIONS (YouTube, Quiz inside Article Panel)
============================================================ */

.article-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.article-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.article-section-header i {
    color: #FFD700;
    font-size: 0.9rem;
}

.article-section-header .bi-youtube {
    color: #ff0000;
}

.article-section-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #FFD700;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-section-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.article-section-content {
    padding: 0.75rem;
}

/* Quiz question styling in article view */
/* Quiz Cards Grid Layout */
.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 1200px) {
    .quiz-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .quiz-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quiz-cards-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-count-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.quiz-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.quiz-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.35);
}

.quiz-card.expanded {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.4);
}

.quiz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.quiz-card-num {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.quiz-card-toggle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.quiz-card.expanded .quiz-card-toggle {
    transform: rotate(180deg);
}

.quiz-card-question {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-card.expanded .quiz-card-question {
    display: none;
}

.quiz-card-answer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: #28a745;
    background: rgba(40, 167, 69, 0.15);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
}

.quiz-card-answer i {
    font-size: 0.6rem;
}

.quiz-card.expanded .quiz-card-answer {
    display: none;
}

/* Expanded card content */
.quiz-card-expanded {
    display: none;
}

.quiz-card.expanded .quiz-card-expanded {
    display: block;
}

.quiz-card-full-question {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quiz-card-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quiz-card-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-card-option i {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

.quiz-card-option.correct {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.quiz-card-option.correct i {
    color: #28a745;
}

/* Legacy quiz styles for backwards compatibility */
.quiz-question-item {
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.quiz-question-item:last-child {
    margin-bottom: 0;
}

.quiz-question-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-option i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.quiz-option.correct {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.quiz-option.correct i {
    color: #28a745;
}

/* ============================================================
   SOCIAL MEDIA POSTS SECTION (Article View)
============================================================ */

.social-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .social-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .social-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-posts-grid {
        grid-template-columns: 1fr;
    }
}

.social-post-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
    min-width: 0;
}

.social-post-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-post-header i {
    font-size: 1rem;
}

.social-post-platform {
    flex: 1;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.social-post-copy {
    padding: 0.2rem 0.4rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-post-copy:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.social-post-content {
    font-size: 0.7rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.social-post-hashtags {
    font-size: 0.65rem;
    color: #17a2b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Social post copy button copied state */
.social-post-copy.copied {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.4);
    color: #28a745;
}

/* ========================================
   YouTube Section Styles
   ======================================== */

.youtube-section .article-section-header .bi-youtube {
    color: #ff0000;
}

.youtube-content {
    padding: 0 !important;
}

.youtube-preview-wrapper {
    position: relative;
}

.youtube-preview {
    position: relative;
    overflow: hidden;
}

.youtube-preview.has-video .youtube-thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.youtube-preview.has-video .youtube-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-preview.has-video:hover .youtube-thumbnail-container img {
    transform: scale(1.02);
}

.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.youtube-preview.has-video:hover .youtube-play-overlay {
    color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-video-info {
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.youtube-video-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-channel-name {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.youtube-channel-name i {
    font-size: 0.75rem;
}

.youtube-preview.no-video {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6), rgba(20, 20, 20, 0.8));
}

.youtube-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.youtube-empty-state i {
    font-size: 2.5rem;
    color: rgba(255, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.youtube-empty-state span {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.youtube-empty-state small {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* YouTube Search Results */
/* YouTube URL Input */
/* YouTube Header with Input */
.youtube-header-with-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.youtube-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.youtube-header-form {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
    margin: 0;
}

.youtube-header-input-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.15rem 0.25rem 0.15rem 0.5rem;
    transition: border-color 0.2s ease;
}

.youtube-header-input-group:focus-within {
    border-color: rgba(255, 0, 0, 0.5);
}

.youtube-header-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.3rem 0.25rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    outline: none;
    min-width: 100px;
}

.youtube-header-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.youtube-header-load-btn,
.youtube-header-save-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.youtube-header-load-btn:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.youtube-header-save-btn {
    color: #28a745;
}

.youtube-header-save-btn:hover {
    background: rgba(40, 167, 69, 0.2);
}

/* Legacy styles - keep for backwards compatibility */
.youtube-load-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.3rem;
    transition: all 0.2s ease;
}

/* YouTube Embedded Player */
.youtube-player-container {
    background: #000;
    animation: fadeIn 0.3s ease;
}

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

.youtube-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(180, 0, 0, 0.1));
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.youtube-player-header span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.youtube-player-header span::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.youtube-player-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.youtube-player-close:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.youtube-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.youtube-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Clickable thumbnail with hover effect */
.youtube-preview.has-video .youtube-thumbnail-container {
    cursor: pointer;
}

.youtube-preview.has-video .youtube-thumbnail-container:hover .youtube-play-overlay i {
    transform: scale(1.15);
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* ============================================================
   CARD ANALYTICS DASHBOARD
   Comprehensive statistics panel for card edit page
============================================================ */

.card-analytics-dashboard {
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

/* Toggle Button */
.analytics-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    border: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--courier-font);
}

.analytics-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15) 0%, rgba(139, 69, 19, 0.15) 100%);
    color: #FFD700;
}

.analytics-toggle-btn.active {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(139, 69, 19, 0.2) 100%);
    color: #FFD700;
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.analytics-toggle-btn i:first-child {
    font-size: 1.1rem;
    color: #E91E8C;
}

.analytics-chevron {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.analytics-chevron.rotated {
    transform: rotate(180deg);
}

/* Dashboard Content */
.analytics-dashboard-content {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Analytics Section Header */
.analytics-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.analytics-section-header:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.analytics-section-header i {
    color: #E91E8C;
}

/* Primary Stats Row */
.analytics-primary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .analytics-primary-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .analytics-primary-row {
        grid-template-columns: 1fr;
    }
}

.analytics-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.analytics-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon-purple {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(233, 30, 140, 0.2) 100%);
    color: #E91E8C;
}

.stat-icon-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    color: #FFD700;
}

.stat-icon-teal {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15) 0%, rgba(23, 160, 133, 0.15) 100%);
    color: #20c997;
}

.stat-icon-pink {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15) 0%, rgba(220, 53, 69, 0.15) 100%);
    color: #E91E8C;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Analytics Section Grid */
.analytics-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .analytics-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-section-grid {
        grid-template-columns: 1fr;
    }
}

/* Analytics Panel */
.analytics-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.analytics-panel-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 600;
}

.analytics-panel-header i {
    font-size: 1rem;
}

.analytics-panel-body {
    padding: 1rem;
}

/* Mini Stats Grid */
.analytics-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
}

@media (max-width: 576px) {
    .analytics-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mini-stat {
    padding: 0.5rem 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.mini-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--courier-font);
}

.mini-stat-value.text-purple {
    color: #E91E8C !important;
}

.mini-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.15rem;
}

/* Divider */
.analytics-divider {
    height: 1px;
    background: rgba(255, 215, 0, 0.1);
    margin: 0.875rem 0;
}

/* Detail Rows */
.analytics-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.analytics-detail-row .detail-label {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.analytics-detail-row .detail-label i {
    font-size: 0.85rem;
}

.analytics-detail-row .detail-value {
    color: #fff;
    font-weight: 600;
    font-family: var(--courier-font);
}

/* Beacon Status Grid */
.beacon-status-grid {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.beacon-status-item {
    text-align: center;
}

.beacon-status-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
    font-family: var(--courier-font);
    font-weight: 700;
    font-size: 1.1rem;
}

.beacon-status-ring.active {
    background: rgba(40, 167, 69, 0.15);
    border: 2px solid #28a745;
    color: #28a745;
}

.beacon-status-ring.claimed {
    background: rgba(23, 162, 184, 0.15);
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.beacon-status-ring.expired {
    background: rgba(108, 117, 125, 0.15);
    border: 2px solid #6c757d;
    color: #6c757d;
}

.beacon-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Distribution Visual */
.distribution-visual {
    padding: 0.5rem 0;
}

.distribution-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.6rem;
}

.distribution-segment {
    height: 100%;
    transition: width 0.5s ease;
}

.segment-top1 {
    background: linear-gradient(90deg, #E91E8C, #ff6b9d);
}

.segment-top3 {
    background: linear-gradient(90deg, #FFD700, #ffc107);
}

.distribution-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-top1 {
    background: #E91E8C;
}

.dot-top3 {
    background: #FFD700;
}

/* Holdings Breakdown */
.holdings-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.holdings-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Bottom Row */
.analytics-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .analytics-bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .analytics-bottom-row {
        grid-template-columns: 1fr;
    }
}

.analytics-feature-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

/* Content Checklist */
.content-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.checklist-item.complete {
    color: #28a745;
}

.checklist-item.complete i {
    color: #28a745;
}

.checklist-item.incomplete {
    color: rgba(255, 255, 255, 0.4);
}

.checklist-item.incomplete i {
    color: rgba(255, 255, 255, 0.2);
}

/* Loyalty Badge */
.loyalty-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.loyalty-badge.active {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.loyalty-badge.active i {
    color: #28a745;
    font-size: 1.5rem;
}

.loyalty-badge.inactive {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.loyalty-badge.inactive i {
    color: #6c757d;
    font-size: 1.5rem;
}

.loyalty-info {
    display: flex;
    flex-direction: column;
}

.loyalty-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.loyalty-detail {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Events Summary */
.events-summary {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.event-stat {
    padding: 0.5rem;
}

.event-count {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #17a2b8;
    font-family: var(--courier-font);
}

.event-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.15rem;
}

/* Economic Value */
.economic-hero {
    text-align: center;
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(233, 30, 140, 0.05) 100%);
    border-radius: 10px;
}

.economic-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
}

.value-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    font-family: var(--courier-font);
}

.value-currency {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.value-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.economic-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.economic-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.economic-row span:first-child {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.economic-row span:last-child {
    color: #fff;
    font-weight: 600;
    font-family: var(--courier-font);
}

/* Timeline Visual */
.timeline-visual {
    padding: 0.5rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon.created {
    background: rgba(40, 167, 69, 0.15);
    border: 2px solid #28a745;
    color: #28a745;
}

.timeline-icon.updated {
    background: rgba(23, 162, 184, 0.15);
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.timeline-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--courier-font);
}

.timeline-ago {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

.timeline-connector {
    width: 2px;
    height: 20px;
    background: rgba(255, 215, 0, 0.2);
    margin: 0.35rem 0 0.35rem 17px;
}

/* ============================================================
   EDIT-PROP ADDITIONAL STYLES
   Expandable panels, holders list, beacon map, utilities
============================================================ */

/* Stat Sublabel (for holder breakdown) */
.stat-content .stat-sublabel {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-content .stat-sublabel i {
    font-size: 0.65rem;
}

.stat-content .stat-sublabel .stat-separator {
    margin: 0 0.15rem;
    opacity: 0.5;
}

/* Expandable Stat Card */
.stat-expandable {
    cursor: pointer;
    position: relative;
}

.stat-expandable:hover {
    border-color: rgba(255, 215, 0, 0.4);
}

.stat-expandable.expanded {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.stat-expand-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.stat-expandable:hover .stat-expand-icon {
    color: #FFD700;
}

.stat-expand-icon i {
    transition: transform 0.3s ease;
}

.stat-expandable.expanded .stat-expand-icon i {
    transform: rotate(180deg);
}

/* Holders List Panel */
.holders-list-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

.holders-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(255, 215, 0, 0.08);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    color: #FFD700;
    font-weight: 600;
    font-size: 0.9rem;
}

.holders-list-header i {
    margin-right: 0.5rem;
}

.holders-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.holders-list-content {
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.holders-list-content::-webkit-scrollbar {
    width: 6px;
}

.holders-list-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.holders-list-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

/* Holders Table */
.holders-table {
    width: 100%;
}

.holders-table-header {
    display: grid;
    grid-template-columns: 40px 1fr 100px 60px 90px;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.holders-table-body {
    display: flex;
    flex-direction: column;
}

.holder-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 60px 90px;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    align-items: center;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.holder-row:hover {
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
}

.holder-row.top-holder {
    background: rgba(255, 215, 0, 0.05);
}

.holder-col-rank {
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.holder-col-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.holder-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.holder-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.holder-name {
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.holder-col-country {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.holder-col-cards {
    text-align: right;
    font-weight: 600;
    color: #20c997;
    font-family: var(--courier-font);
    font-size: 0.85rem;
}

.holder-col-power {
    text-align: right;
    font-weight: 600;
    color: #FFD700;
    font-family: var(--courier-font);
    font-size: 0.85rem;
    white-space: nowrap;
}

.holders-more {
    text-align: center;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.holders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.holders-empty i {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .holders-table-header,
    .holder-row {
        grid-template-columns: 30px 1fr 60px 60px;
    }
    
    .holder-col-country {
        display: none;
    }
}

/* Beacon Map Panel */
.beacon-map-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(32, 201, 151, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.beacon-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(32, 201, 151, 0.1);
    border-bottom: 1px solid rgba(32, 201, 151, 0.2);
    color: #20c997;
    font-weight: 600;
    font-size: 0.9rem;
}

.beacon-map-header i {
    margin-right: 0.5rem;
}

.beacon-map-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.beacon-map-container {
    padding: 0;
}

.beacon-google-map {
    width: 100%;
    height: 350px;
    background: #1a1a2e;
}

.beacon-map-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

.beacon-map-empty i {
    font-size: 2.5rem;
    color: rgba(32, 201, 151, 0.3);
}

/* Custom Beacon Thumbnail Markers */
.beacon-marker-thumbnail {
    position: absolute;
    cursor: pointer;
    z-index: 100;
}

.beacon-marker-inner {
    width: 20px;
    height: 20px;
    position: relative;
}

.beacon-marker-inner img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #20c997;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(32, 201, 151, 0.3);
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.beacon-marker-thumbnail:hover .beacon-marker-inner img {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(32, 201, 151, 0.5);
    border-color: #FFD700;
}

.beacon-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(32, 201, 151, 0.3);
    animation: beaconPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes beaconPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ============================================================
   UTILITY CLASSES
   Common helper classes for edit-prop and other pages
============================================================ */

.initially-hidden {
    display: none;
}

.bronze-trophy {
    color: #cd7f32;
}

.text-muted-50 {
    color: rgba(255, 255, 255, 0.5);
}

.icon-md {
    font-size: 1.25rem;
}

.description-textarea-hidden {
    display: none;
}

.card-description-constrained {
    max-height: 120px;
}

.ai-loading-counter-style {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.ai-progress-initial {
    width: 0%;
}

/* Map Info Window Styles */
.map-info-content {
    color: #333;
    padding: 8px;
    min-width: 120px;
}

.map-info-title {
    color: #20c997;
}

.map-info-simple {
    color: #333;
    padding: 5px;
}

/* ============================================================
   USER LIST PAGE
   Modern redesign matching edit-prop aesthetics
============================================================ */

/* Page Header */
.user-list-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 22, 40, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.user-list-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.user-list-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-list-title > i {
    font-size: 2.5rem;
    color: #E91E8C;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
    padding: 0.75rem;
    border-radius: 16px;
}

.user-list-title .title-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: var(--courier-font);
}

.user-list-title .title-text h1.clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.user-list-title .title-text h1.clickable:hover {
    color: #FFD700;
}

.header-title-input {
    display: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid #FFD700;
    padding: 0 0.25rem;
    margin: 0;
    width: auto;
    font-family: var(--courier-font);
    min-width: 200px;
    font-family: inherit;
}

.header-title-input:focus {
    outline: none;
    color: #FFD700;
}

.user-list-title .title-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--courier-font);
}

.user-map-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15) 0%, rgba(23, 160, 133, 0.15) 100%);
    border: 1px solid rgba(32, 201, 151, 0.3);
    border-radius: 10px;
    color: #20c997;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--courier-font);
}

.user-map-btn:hover {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.25) 0%, rgba(23, 160, 133, 0.25) 100%);
    border-color: #20c997;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.user-map-btn i {
    font-size: 1.2rem;
}

/* Stats Row */
.user-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .user-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .user-stats-row {
        grid-template-columns: 1fr;
    }
}

.user-stat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.2);
}

.user-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
}

.stat-total .stat-icon {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
    color: #E91E8C;
}

.stat-24h .stat-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.2) 100%);
    color: #28a745;
}

.stat-7d .stat-icon {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2) 0%, rgba(0, 123, 255, 0.2) 100%);
    color: #17a2b8;
}

.stat-30d .stat-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #ffc107;
}

.user-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.user-stat-card .stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--courier-font);
    line-height: 1.2;
}

.user-stat-card .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--courier-font);
}

/* Search Bar */
.user-search-bar {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
}

.user-search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 768px) {
    .user-search-form {
        flex-direction: column;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: var(--courier-font);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.sort-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 160px;
}

.sort-select-wrapper i {
    position: absolute;
    left: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    pointer-events: none;
}

.sort-select-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff80' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    font-family: var(--courier-font);
}

.sort-select-wrapper select:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
}

.sort-select-wrapper select option {
    background: #1a1a2e;
    color: #fff;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #E91E8C 0%, #FFD700 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

/* Search Results Notice */
.search-results-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.search-results-notice i {
    color: #28a745;
    font-size: 1.1rem;
}

.search-results-notice .clear-search {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.search-results-notice .clear-search:hover {
    color: #dc3545;
}

/* Users Grid Header */
.users-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(20, 20, 38, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.users-grid-header .grid-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-weight: 600;
    font-size: 0.95rem;
}

.users-grid-header .grid-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Grid Pagination */
.grid-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.pagination-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    text-decoration: none;
}

.pagination-btn.disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier Prime', monospace;
    padding: 0 0.5rem;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(18, 18, 32, 0.98) 0%, rgba(12, 12, 24, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.users-grid::-webkit-scrollbar {
    width: 8px;
}

.users-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.users-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

@media (max-width: 576px) {
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* User Card - Portrait Style (like deck cards) */
.user-card-new {
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 38, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.user-card-new:hover {
    transform: translateY(-3px);
    border-color: #E91E8C;
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.3);
    color: inherit;
    text-decoration: none;
}

.user-card-new.verified-user {
    border-color: rgba(40, 167, 69, 0.5);
}

.user-card-new.verified-user:hover {
    border-color: #28a745;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.user-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.user-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Delete Button Overlay */
.delete-user-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 5;
    font-size: 0.75rem;
}

.user-card-new:hover .delete-user-btn {
    opacity: 1;
}

.delete-user-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Avatar Section */
.user-card-avatar {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(191, 0, 255, 0.2) 100%);
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-card-new:hover .user-card-avatar img:not(.img-error) {
    transform: scale(1.05);
}

/* Avatar with CSS fallback (no extra DOM element needed when image loads) */
.user-card-avatar img {
    position: relative;
    z-index: 2;
}

.user-card-avatar img.img-error {
    display: none !important;
}

.user-avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(191, 0, 255, 0.2) 100%);
    color: #E91E8C;
    font-size: 2.5rem;
    z-index: 1;
}

.avatar-overlay {
    display: none;
}

/* Country Flag Badge */
.user-country-flag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #20c997;
}

.user-country-flag .no-country {
    color: rgba(255, 255, 255, 0.4);
}

/* Verified Badge */
.user-verified-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.user-verified-badge.verified {
    color: #28a745;
}

.user-verified-badge.unverified {
    color: #dc3545;
}

/* User Info Section */
.user-card-info {
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(22, 22, 40, 1) 0%, rgba(16, 16, 30, 1) 100%);
}

.user-card-info .user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Stats Grid in Card */
.user-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.user-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-mini-stat i {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}

.user-mini-stat span {
    font-size: 0.65rem;
}

.user-mini-stat:nth-child(1) {
    color: #FFD700;
}

.user-mini-stat:nth-child(2) {
    color: #E91E8C;
}

.user-mini-stat:nth-child(3) {
    color: #20c997;
}

/* Bottom Row - Activity Stats */
.user-card-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-activity-badges {
    display: flex;
    gap: 0.4rem;
}

.activity-badge {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
}

.activity-badge i {
    font-size: 0.6rem;
}

.activity-badge.ad-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.activity-badge.iap-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

/* ================================================
   IN-APP PURCHASES PAGE STYLES
   ================================================ */

.iap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(18, 18, 32, 0.98) 0%, rgba(12, 12, 24, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 2rem;
}

.iap-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(20, 20, 35, 0.98));
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.iap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

.iap-card.iap-paused {
    opacity: 0.7;
    border-color: rgba(220, 53, 69, 0.3);
}

.iap-card.iap-paused:hover {
    opacity: 1;
    border-color: rgba(220, 53, 69, 0.5);
}

.iap-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.iap-card .delete-user-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iap-card:hover .delete-user-btn {
    opacity: 1;
}

.iap-card .delete-user-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.iap-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.iap-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.iap-card-image {
    position: relative;
    height: 140px;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.iap-card-image img {
    max-height: 100px;
    max-width: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.iap-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 2rem;
}

.iap-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.iap-status-badge.status-active {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
}

.iap-status-badge.status-paused {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.iap-type-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.iap-reward-type-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: capitalize;
}

.iap-reward-type-badge.iap-reward-wheel_spin {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.iap-reward-type-badge.iap-reward-time_bank {
    background: rgba(32, 201, 151, 0.9);
    color: #000;
}

.iap-reward-type-badge.iap-reward-iris {
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
}

.iap-reward-type-badge.iap-reward-blast {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

/* IAP Filter Buttons */
.iap-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.iap-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iap-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.iap-filter-btn.active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.5);
}

.iap-filter-btn.filter-wheel_spin.active {
    background: rgba(255, 193, 7, 0.25);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.5);
}

.iap-filter-btn.filter-time_bank.active {
    background: rgba(32, 201, 151, 0.25);
    color: #20c997;
    border-color: rgba(32, 201, 151, 0.5);
}

.iap-filter-btn.filter-iris.active {
    background: rgba(102, 126, 234, 0.25);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.5);
}

.iap-filter-btn.filter-blast.active {
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.5);
}

/* IAP No Results */
.iap-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(180deg, rgba(18, 18, 32, 0.98) 0%, rgba(12, 12, 24, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 2rem;
}

.iap-no-results i {
    font-size: 3rem;
    color: rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.iap-no-results p {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier Prime', monospace;
    margin: 0;
}

/* IAP Analytics Dashboard */
.iap-analytics-dashboard {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Period Filter */
.iap-period-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    flex-wrap: wrap;
}

.period-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: 'Courier Prime', monospace;
}

.period-filter-label i {
    color: #E91E8C;
}

.period-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-filter-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-filter-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 215, 0, 0.3);
}

.period-filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.type-period-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-left: 0.5rem;
}

.iap-analytics-row {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 992px) {
    .iap-analytics-row {
        grid-template-columns: 1fr !important;
    }
}

/* Type Breakdown Section */
.iap-type-breakdown {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.type-breakdown-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    margin-bottom: 1rem;
}

.type-breakdown-title i {
    color: #E91E8C;
}

.type-breakdown-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .type-breakdown-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.type-card i {
    font-size: 1.5rem;
}

.type-card .type-count {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier Prime', monospace;
}

.type-card .type-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.type-card.type-wheel_spin {
    border-color: rgba(255, 193, 7, 0.3);
}
.type-card.type-wheel_spin i,
.type-card.type-wheel_spin .type-count {
    color: #ffc107;
}

.type-card.type-time_bank {
    border-color: rgba(32, 201, 151, 0.3);
}
.type-card.type-time_bank i,
.type-card.type-time_bank .type-count {
    color: #20c997;
}

.type-card.type-iris {
    border-color: rgba(102, 126, 234, 0.3);
}
.type-card.type-iris i,
.type-card.type-iris .type-count {
    color: #667eea;
}

.type-card.type-blast {
    border-color: rgba(220, 53, 69, 0.3);
}
.type-card.type-blast i,
.type-card.type-blast .type-count {
    color: #dc3545;
}

/* Most Popular IAP */
.iap-most-popular {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-family: 'Courier Prime', monospace;
}

.iap-most-popular i {
    color: #FFD700;
    font-size: 1.1rem;
}

.iap-most-popular strong {
    color: #FFD700;
}

/* IAP Trend Chart */
.iap-trend-chart-container {
    padding: 1rem;
    height: 250px;
}

/* Purchase Stats on Cards */
.iap-purchase-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.iap-purchase-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-family: 'Courier Prime', monospace;
}

.iap-purchase-stat i {
    color: #20c997;
    font-size: 0.75rem;
}

.iap-purchase-stat span {
    color: #fff;
    font-weight: 600;
}

/* Stat sublabel styling */
.stat-sublabel {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.stat-sublabel i {
    font-size: 0.65rem;
    margin-right: 0.15rem;
}

.stat-separator {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* User Analytics Specific Styles */
.analytics-expandable-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .analytics-expandable-row {
        grid-template-columns: 1fr;
    }
}

.stat-icon-pink {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(233, 30, 140, 0.1) 100%);
}
.stat-icon-pink i {
    color: #E91E8C;
}

.stat-icon-blue {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 123, 255, 0.1) 100%);
}
.stat-icon-blue i {
    color: #007bff;
}

.stat-icon-green {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
}
.stat-icon-green i {
    color: #28a745;
}

.stat-icon-orange {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
}
.stat-icon-orange i {
    color: #ffa500;
}

.stat-icon-secondary {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2) 0%, rgba(149, 165, 166, 0.1) 100%);
}
.stat-icon-secondary i {
    color: #95a5a6;
}

/* Platform Stats Row */
.user-analytics-platform-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .user-analytics-platform-row {
        grid-template-columns: 1fr;
    }
}

.platform-stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.platform-stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
}

.platform-stat-header i {
    color: #20c997;
}

.platform-stat-list {
    padding: 0.5rem;
}

.platform-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Courier Prime', monospace;
    transition: background 0.2s ease;
}

.platform-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.platform-stat-item span:first-child {
    color: rgba(255, 255, 255, 0.8);
}

.platform-stat-item span:last-child {
    color: #FFD700;
    font-weight: 600;
}

/* Card Edit Page - Subtitle Selectors */
.card-subtitle-selectors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-subtitle-selectors .subtitle-separator {
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Stat card paused state */
.user-stat-card.stat-paused {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.user-stat-card.stat-paused .stat-icon {
    color: #ffc107;
}

.user-stat-card.stat-paused .stat-number {
    color: #ffc107;
}

/* Card Description Stats (sidebar) */
.card-description-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-description-stats .desc-stat-tokens {
    flex-basis: 100%;
    margin-top: 0.25rem;
}

.card-description-stats .desc-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier Prime', monospace;
}

.card-description-stats .desc-stat i {
    color: #FFD700;
    font-size: 0.7rem;
}

.card-description-stats .desc-stat-tokens {
    color: rgba(32, 201, 151, 0.8);
}

.card-description-stats .desc-stat-tokens i {
    color: #20c997;
}

.card-description-stats .desc-stat.initially-hidden {
    display: none !important;
}

.card-description-stats .token-cost {
    opacity: 0.7;
    font-size: 0.7rem;
    margin-left: 0.15rem;
}

/* Card Action Buttons (outside flip card) */
.card-action-buttons {
    margin-top: 1rem;
}

.card-flip-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: #FFD700;
    font-family: var(--courier-font);
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-flip-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.card-flip-btn i {
    font-size: 1rem;
}

.card-flip-btn .locations-count {
    background: rgba(255, 215, 0, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.card-flip-btn-back {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.card-flip-btn-back:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-flip-btn.initially-hidden {
    display: none !important;
}

.card-flip-btn-add {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15) 0%, rgba(32, 201, 151, 0.05) 100%);
    border-color: rgba(32, 201, 151, 0.3);
    color: #20c997;
    margin-top: 0.5rem;
}

.card-flip-btn-add:hover {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.25) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-color: rgba(32, 201, 151, 0.5);
}

/* Deck Settings Section (on card back) */
.deck-settings-section {
    margin-bottom: 1.25rem;
}

.deck-settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
}

.settings-section-title i {
    color: #FFD700;
    font-size: 0.7rem;
}

.deck-scope-buttons {
    display: flex;
    gap: 0.5rem;
}

.scope-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scope-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.scope-btn.active {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-color: rgba(32, 201, 151, 0.4);
    color: #20c997;
}

.scope-btn i {
    font-size: 0.85rem;
}

.deck-action-buttons {
    display: flex;
    gap: 0.5rem;
}

.deck-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deck-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.deck-action-btn i {
    font-size: 0.85rem;
}

.deck-action-status.active {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-color: rgba(32, 201, 151, 0.4);
    color: #20c997;
}

.deck-action-status.paused {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.deck-action-delete {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.deck-action-delete:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.1) 100%);
    border-color: rgba(220, 53, 69, 0.5);
}

/* Deck Age Sliders in Settings */
.deck-settings-section .deck-age-sliders {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
}

.deck-settings-section .age-slider-group {
    margin-bottom: 0.5rem;
}

.deck-settings-section .age-slider-group:last-child {
    margin-bottom: 0;
}

.deck-settings-section .age-slider-group label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier Prime', monospace;
    margin-bottom: 0.25rem;
    display: block;
}

.deck-settings-section .age-slider-group label span {
    color: #FFD700;
    font-weight: 600;
}

.deck-settings-section .form-range {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.deck-settings-section .form-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    background: #FFD700;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.iap-card-info {
    padding: 1rem;
}

.iap-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 0.25rem 0;
    font-family: 'Courier Prime', monospace;
}

.iap-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.iap-reward-display {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.iap-reward-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    font-family: 'Courier Prime', monospace;
}

.iap-reward-unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.iap-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.iap-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.iap-mini-stat i {
    color: #20c997;
    font-size: 0.65rem;
}

.iap-mini-stat.iap-sku {
    font-family: 'Courier Prime', monospace;
}

.iap-mini-stat.iap-sku i {
    color: #FFD700;
}

/* IAP Modal Styles */
.iap-modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #12121f 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.1) !important;
}

.iap-modal-content .modal-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(20, 20, 38, 0.98) 100%) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
    padding: 1rem 1.25rem;
}

.iap-modal-content .modal-header .modal-title {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.iap-modal-content .modal-header .modal-title i {
    color: #FFD700;
}

.iap-modal-body {
    background: linear-gradient(180deg, rgba(18, 18, 32, 0.98) 0%, rgba(12, 12, 24, 0.98) 100%) !important;
    padding: 1.5rem;
}

.iap-modal-content .modal-footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(20, 20, 38, 0.98) 100%) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 215, 0, 0.2) !important;
    padding: 1rem 1.25rem;
}

.iap-modal-content .modal-footer::before,
.iap-modal-content .modal-footer::after {
    display: none !important;
    border: none !important;
}

.iap-modal-content .modal-footer hr,
.iap-modal-content .modal-footer .border-top {
    display: none !important;
}

.iap-modal-content .modal-footer .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier Prime', monospace;
}

.iap-modal-content .modal-footer .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.iap-modal-content .modal-footer .btn-warning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700;
    font-family: 'Courier Prime', monospace;
    padding: 0.6rem 1.25rem;
}

.iap-modal-content .modal-footer .btn-warning:hover {
    background: linear-gradient(135deg, #FFE44D 0%, #FFB733 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.form-group-dark {
    margin-bottom: 1rem;
}

.form-group-dark .form-label {
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Courier Prime', monospace;
}

.form-group-dark .form-control,
.form-group-dark .form-select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
}

.form-group-dark .form-control:focus,
.form-group-dark .form-select:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15) !important;
    color: #fff !important;
}

.form-group-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group-dark .form-select option {
    background: #1a1a2e;
    color: #fff;
}

.form-group-dark .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.form-group-dark .form-check-input:checked {
    background-color: #FFD700;
    border-color: #FFD700;
}

.form-group-dark .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-group-dark .form-check-label {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Courier Prime', monospace;
    cursor: pointer;
}

.form-group-dark .text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.75rem;
}

/* ===========================================
   LOCATION MANAGER PAGE STYLES
   =========================================== */

/* FOUC Prevention */
.location-page-wrapper {
    opacity: 0;
    transition: opacity 0.15s ease-in;
}
.location-page-wrapper.loaded {
    opacity: 1;
}

/* Locations Panel */
.location-page-wrapper .locations-panel {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.location-page-wrapper .locations-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #fff;
}

.location-page-wrapper .locations-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-page-wrapper .locations-panel-header i {
    color: var(--accent-gold, #d4a957);
}

.location-page-wrapper .locations-count {
    background: rgba(212, 169, 87, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-gold, #d4a957);
}

.location-page-wrapper .locations-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.2), rgba(212, 169, 87, 0.1));
    border: 1px solid rgba(212, 169, 87, 0.4);
    border-radius: 8px;
    color: var(--accent-gold, #d4a957);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-page-wrapper .locations-add-btn:hover {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.35), rgba(212, 169, 87, 0.2));
    border-color: rgba(212, 169, 87, 0.7);
    box-shadow: 0 2px 12px rgba(212, 169, 87, 0.2);
    transform: translateY(-1px);
}

.location-page-wrapper .locations-add-btn i {
    font-size: 0.75rem;
}

.location-page-wrapper .locations-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-page-wrapper .locations-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    text-decoration: none;
}

.location-page-wrapper .locations-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.location-page-wrapper .locations-refresh-btn:hover i {
    animation: spin 0.5s ease;
}

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

.location-page-wrapper .locations-search {
    padding: 0.75rem;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-page-wrapper .locations-search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.location-page-wrapper .locations-search-input:focus-within {
    border-color: var(--accent-gold, #d4a957);
    background: rgba(255, 255, 255, 0.08);
}

.location-page-wrapper .locations-search-input i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.location-page-wrapper .locations-search-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.location-page-wrapper .locations-search-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.location-page-wrapper .locations-list {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    background: #0a0a0a;
}

/* Location Card (scoped to avoid conflicts) */
.location-page-wrapper .location-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: none;
}

.location-page-wrapper .location-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold, #d4a957);
    box-shadow: 0 4px 20px rgba(212, 169, 87, 0.15);
}

.location-page-wrapper .location-card.active {
    border-color: var(--accent-gold, #d4a957);
    box-shadow: 0 0 0 2px rgba(212, 169, 87, 0.3);
}

.location-page-wrapper .location-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.location-page-wrapper .location-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.location-page-wrapper .location-card-content {
    position: relative;
    z-index: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.location-page-wrapper .location-card-badges {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
}

.location-page-wrapper .location-badge {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.8);
}

.location-page-wrapper .location-card-info {
    text-align: center;
}

.location-page-wrapper .location-card-title {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.location-page-wrapper .location-card-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6rem;
    margin-bottom: 0.35rem;
}

.location-page-wrapper .location-card-subtitle i {
    font-size: 0.5rem;
    margin-right: 0.15rem;
}

.location-page-wrapper .location-card-leads {
    display: inline-block;
    background: rgba(212, 169, 87, 0.25);
    color: var(--accent-gold, #d4a957);
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.25rem;
}

.location-page-wrapper .location-card-leads i {
    font-size: 0.5rem;
    margin-right: 0.2rem;
}

.location-page-wrapper .locations-empty {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.location-page-wrapper .locations-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.location-page-wrapper .locations-empty span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-page-wrapper .locations-empty p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Leads Panel */
.location-page-wrapper .leads-panel {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.location-page-wrapper .leads-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.location-page-wrapper .leads-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #fff;
}

.location-page-wrapper .leads-header-info i {
    color: var(--accent-gold, #d4a957);
}

/* CRM Table Styles */
.location-page-wrapper .leads-table-container {
    background: #0a0a0a;
}

.location-page-wrapper .leads-table {
    width: 100%;
}

.location-page-wrapper .leads-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

.location-page-wrapper .leads-table-body {
    max-height: 65vh;
    overflow-y: auto;
}

.location-page-wrapper .leads-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    align-items: center;
}

.location-page-wrapper .leads-table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.location-page-wrapper .lead-col {
    min-width: 0;
}

/* Business Name Column */
.location-page-wrapper .lead-business-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.location-page-wrapper .lead-business-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-page-wrapper .lead-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(212, 169, 87, 0.15);
    color: var(--accent-gold, #d4a957);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

.location-page-wrapper .lead-category-badge i {
    font-size: 0.55rem;
}

.location-page-wrapper .lead-address {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
}

.location-page-wrapper .lead-address i {
    font-size: 0.65rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Contact Column */
.location-page-wrapper .lead-col-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.location-page-wrapper .lead-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-page-wrapper .lead-contact-item:hover {
    color: var(--accent-gold, #d4a957);
}

.location-page-wrapper .lead-contact-item i {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
}

/* Rating Column */
.location-page-wrapper .lead-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.location-page-wrapper .lead-rating-value {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.location-page-wrapper .lead-rating i {
    color: #f1c40f;
    font-size: 0.75rem;
}

.location-page-wrapper .lead-reviews {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    display: block;
    margin-top: 0.15rem;
}

.location-page-wrapper .lead-no-rating {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-style: italic;
}

/* Status Column */
.location-page-wrapper .lead-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.location-page-wrapper .lead-status-badge.status-open {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.location-page-wrapper .lead-status-badge.status-closed {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.location-page-wrapper .lead-status-badge i {
    font-size: 0.6rem;
}

/* Actions Column */
.location-page-wrapper .lead-col-actions {
    display: flex;
    gap: 0.4rem;
}

.location-page-wrapper .lead-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-page-wrapper .lead-action-btn:hover {
    background: rgba(212, 169, 87, 0.15);
    border-color: rgba(212, 169, 87, 0.3);
    color: var(--accent-gold, #d4a957);
}

/* Empty State */
.location-page-wrapper .leads-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.location-page-wrapper .leads-empty-state i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.location-page-wrapper .leads-empty-state h4 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.location-page-wrapper .leads-empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Panel Footer */
.location-page-wrapper .leads-panel-footer {
    padding: 1rem 1.25rem;
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

/* Search Actions */
.location-page-wrapper .search-actions {
    display: flex;
    gap: 0.5rem;
}

.location-page-wrapper .search-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-page-wrapper .search-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.location-page-wrapper .search-action-btn-primary {
    background: rgba(212, 169, 87, 0.15);
    border-color: rgba(212, 169, 87, 0.3);
    color: var(--accent-gold, #d4a957);
}

.location-page-wrapper .search-action-btn-primary:hover {
    background: rgba(212, 169, 87, 0.25);
    border-color: rgba(212, 169, 87, 0.5);
    color: var(--accent-gold, #d4a957);
}

/* Analytics Filter Cards */
.location-page-wrapper .stat-filter-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.location-page-wrapper .stat-filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 169, 87, 0.2);
}

.location-page-wrapper .stat-filter-card:hover .stat-filter-indicator {
    opacity: 1;
}

.location-page-wrapper .stat-filter-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.location-page-wrapper .stat-filter-card.filter-active {
    box-shadow: 0 0 0 2px var(--accent-gold, #d4a957), 0 4px 20px rgba(212, 169, 87, 0.3);
}

.location-page-wrapper .stat-filter-card.filter-active .stat-filter-indicator {
    opacity: 1;
    color: var(--accent-gold, #d4a957);
}

.location-page-wrapper .analytics-section-header {
    display: flex;
    align-items: center;
}

.location-page-wrapper .analytics-filter-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    letter-spacing: 0;
}

.location-page-wrapper .analytics-filter-hint i {
    margin-right: 0.25rem;
}

.location-page-wrapper .analytics-clear-filter {
    margin-left: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #e74c3c;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.2s ease;
}

.location-page-wrapper .analytics-clear-filter:hover {
    color: #ff6b6b;
}

.location-page-wrapper .analytics-clear-filter i {
    margin-right: 0.25rem;
}

/* Quality Filter Links */
.location-page-wrapper a.stat-filter-card {
    text-decoration: none;
    color: inherit;
}

.location-page-wrapper a.stat-filter-card:hover {
    text-decoration: none;
    color: inherit;
}

.location-page-wrapper .leads-quality-badge {
    display: inline-block;
    background: rgba(212, 169, 87, 0.2);
    color: var(--accent-gold, #d4a957);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Active Filter Badge */
.location-page-wrapper .active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(212, 169, 87, 0.2);
    border: 1px solid rgba(212, 169, 87, 0.4);
    color: var(--accent-gold, #d4a957);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.75rem;
}

.location-page-wrapper .active-filter-badge i {
    font-size: 0.65rem;
}

.location-page-wrapper .clear-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: inherit;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.location-page-wrapper .clear-filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.location-page-wrapper .clear-filter-btn i {
    font-size: 0.7rem;
}

/* Full Width Filter Bar */
.location-page-wrapper .filter-bar-fullwidth {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.location-page-wrapper .filter-bar-fullwidth .sort-select-wrapper {
    min-width: 0;
}

.location-page-wrapper .filter-bar-fullwidth .sort-select-wrapper.flex-grow-1 {
    flex: 1;
}

.location-page-wrapper .filter-bar-fullwidth .sort-select-wrapper select {
    width: 100%;
}

.location-page-wrapper .filter-bar-fullwidth .search-action-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Leads Count Display */
.location-page-wrapper #leadsCountDisplay {
    font-weight: 700;
    color: var(--accent-gold, #d4a957);
    transition: all 0.3s ease;
}

.location-page-wrapper #leadsCountDisplay.count-updated {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #fff; }
    100% { transform: scale(1); }
}

.location-page-wrapper .leads-filter-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    font-style: italic;
    margin-left: 0.25rem;
}

/* Analytics Top Rank Badges */
.location-page-wrapper .top-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.location-page-wrapper .top-rank.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.location-page-wrapper .top-rank.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #000;
}

.location-page-wrapper .top-rank.top-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

/* Stat Icon Secondary */
.location-page-wrapper .stat-icon-secondary {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.3) 0%, rgba(149, 165, 166, 0.1) 100%);
    color: #95a5a6;
}

/* Toast Notification */
.location-page-wrapper .copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #141414;
    border: 1px solid rgba(212, 169, 87, 0.3);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.location-page-wrapper .copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.location-page-wrapper .copy-toast i {
    color: var(--accent-gold, #d4a957);
}

/* Hide elements */
.location-page-wrapper .hidden {
    display: none !important;
}

/* Location Manager Responsive Styles */
@media (max-width: 1200px) {
    .location-page-wrapper .leads-table-header,
    .location-page-wrapper .leads-table-row {
        grid-template-columns: 2fr 1fr 0.8fr;
    }
    
    .location-page-wrapper .lead-col-actions {
        display: none;
    }
    
    .location-page-wrapper .lead-col-contact {
        display: none;
    }
}

@media (max-width: 991px) {
    .location-page-wrapper .locations-list {
        max-height: none;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .location-page-wrapper .leads-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .location-page-wrapper .leads-table-header {
        display: none;
    }
    
    .location-page-wrapper .leads-table-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .location-page-wrapper .lead-col {
        width: 100%;
    }
    
    .location-page-wrapper .lead-col-contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .location-page-wrapper .lead-col-rating,
    .location-page-wrapper .lead-col-status {
        display: inline-flex;
    }
    
    .location-page-wrapper .leads-table-row .lead-col-actions {
        justify-content: flex-start;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .location-page-wrapper .locations-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .location-page-wrapper .filter-bar-fullwidth {
        flex-wrap: wrap;
    }
    
    .location-page-wrapper .filter-bar-fullwidth .sort-select-wrapper.flex-grow-1 {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
    }
    
    .location-page-wrapper .filter-bar-fullwidth .search-action-btn {
        flex: 1 1 auto;
    }
    
    .location-page-wrapper .analytics-section-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .location-page-wrapper .locations-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-page-wrapper .leads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .location-page-wrapper .search-actions {
        flex-wrap: wrap;
    }
    
    .location-page-wrapper .search-action-btn span {
        display: none;
    }
}

/* ===========================================
   HONEYCOMB PAGE STYLES
   =========================================== */

/* FOUC Prevention */
.honeycomb-page-wrapper {
    opacity: 0;
    transition: opacity 0.15s ease-in;
}
.honeycomb-page-wrapper.loaded {
    opacity: 1;
}

/* Map Wrapper */
.honeycomb-page-wrapper .honeycomb-map-wrapper {
    position: relative;
    height: 400px;
    background: #0a0a0a;
}

.honeycomb-page-wrapper .honeycomb-map-canvas {
    width: 100%;
    height: 100%;
}

.honeycomb-page-wrapper .map-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.5);
}

.honeycomb-page-wrapper .map-loading-placeholder i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Business Overlay */
.honeycomb-page-wrapper .business-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    padding: 1rem;
    display: none;
    visibility: hidden;
}

.honeycomb-page-wrapper .business-overlay-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.honeycomb-page-wrapper .business-overlay-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.honeycomb-page-wrapper .business-overlay-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.honeycomb-page-wrapper .business-overlay-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.honeycomb-page-wrapper .business-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Controls Panel Body */
.honeycomb-page-wrapper .honeycomb-controls-body {
    padding: 1rem;
    background: #0a0a0a;
}

/* Hex Controls */
.honeycomb-page-wrapper .honeycomb-hex-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.honeycomb-page-wrapper .honeycomb-hex-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.honeycomb-page-wrapper .honeycomb-hex-btn:hover {
    background: rgba(212, 169, 87, 0.15);
    border-color: rgba(212, 169, 87, 0.3);
    color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .honeycomb-hex-btn.active {
    background: rgba(212, 169, 87, 0.2);
    border-color: rgba(212, 169, 87, 0.4);
    color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .honeycomb-hex-btn i {
    font-size: 0.9rem;
}

/* Category Select */
.honeycomb-page-wrapper .honeycomb-category-select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.honeycomb-page-wrapper .honeycomb-category-select:focus {
    outline: none;
    border-color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .honeycomb-category-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Comb Button */
.honeycomb-page-wrapper .honeycomb-comb-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-gold, #d4a957), #b8943c);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honeycomb-page-wrapper .honeycomb-comb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 169, 87, 0.3);
}

.honeycomb-page-wrapper .honeycomb-comb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* In Progress View */
.honeycomb-page-wrapper .honeycomb-in-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.honeycomb-page-wrapper .honeycomb-in-progress .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive adjustments for honeycomb */
@media (max-width: 991px) {
    .honeycomb-page-wrapper .honeycomb-map-wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .honeycomb-page-wrapper .honeycomb-hex-controls {
        flex-wrap: wrap;
    }
    
    .honeycomb-page-wrapper .honeycomb-hex-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    
    .honeycomb-page-wrapper .honeycomb-category-select {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Honeycomb Page - 4 Column Table Layout */
.honeycomb-page-wrapper .leads-table-header,
.honeycomb-page-wrapper .leads-table-row {
    grid-template-columns: 2fr 1.5fr 0.8fr 1fr !important;
}

@media (max-width: 1200px) {
    .honeycomb-page-wrapper .leads-table-header,
    .honeycomb-page-wrapper .leads-table-row {
        grid-template-columns: 2fr 1fr 0.8fr !important;
    }
    
    .honeycomb-page-wrapper .lead-col-contact {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .honeycomb-page-wrapper .leads-table-header {
        display: none !important;
    }
    
    .honeycomb-page-wrapper .leads-table-row {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .honeycomb-page-wrapper .lead-col {
        width: 100% !important;
    }
    
    .honeycomb-page-wrapper .lead-col-contact {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Fix honeycomb controls overflow */
.honeycomb-page-wrapper .locations-panel {
    overflow: visible;
}

.honeycomb-page-wrapper .honeycomb-controls-body {
    padding: 1rem;
    background: #0a0a0a;
}

.honeycomb-page-wrapper .honeycomb-hex-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.honeycomb-page-wrapper .honeycomb-hex-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.honeycomb-page-wrapper .honeycomb-hex-btn:hover {
    background: rgba(212, 169, 87, 0.15);
    border-color: rgba(212, 169, 87, 0.3);
    color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .honeycomb-hex-btn.active {
    background: rgba(212, 169, 87, 0.2);
    border-color: rgba(212, 169, 87, 0.4);
    color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .honeycomb-category-select {
    flex: 1;
    min-width: 120px;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.honeycomb-page-wrapper .honeycomb-category-select:focus {
    outline: none;
    border-color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .honeycomb-category-select option {
    background: #1a1a1a;
    color: #fff;
}

.honeycomb-page-wrapper .honeycomb-comb-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-gold, #d4a957), #b8943c);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honeycomb-page-wrapper .honeycomb-comb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 169, 87, 0.3);
}

.honeycomb-page-wrapper .honeycomb-comb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.honeycomb-page-wrapper .honeycomb-in-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .honeycomb-page-wrapper .honeycomb-hex-controls {
        flex-direction: column;
    }
    
    .honeycomb-page-wrapper .honeycomb-hex-btn {
        width: 100%;
        justify-content: center;
    }
    
    .honeycomb-page-wrapper .honeycomb-category-select {
        width: 100%;
    }
}

/* Honeycomb Combing Progress UI */
.honeycomb-page-wrapper .comb-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    width: 100%;
}

.honeycomb-page-wrapper .comb-progress-icon {
    position: relative;
}

.honeycomb-page-wrapper .comb-hex-icon {
    font-size: 3rem;
    color: var(--accent-gold, #d4a957);
    animation: hexPulse 1.5s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.honeycomb-page-wrapper .comb-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.honeycomb-page-wrapper .comb-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.honeycomb-page-wrapper .comb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold, #d4a957), #ffc107);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.honeycomb-page-wrapper .comb-progress-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold, #d4a957);
    min-width: 40px;
    text-align: right;
}

.honeycomb-page-wrapper .comb-progress-text {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
}

.honeycomb-page-wrapper .comb-progress-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.honeycomb-page-wrapper .comb-current-hex {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.honeycomb-page-wrapper .comb-current-hex i {
    color: #ffc107;
    animation: hexScan 0.5s ease-in-out infinite alternate;
}

@keyframes hexScan {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.honeycomb-page-wrapper .comb-business-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #2ecc71;
}

.honeycomb-page-wrapper .comb-business-count i {
    font-size: 0.9rem;
}

/* Completion Summary */
.honeycomb-page-wrapper .comb-completion-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.honeycomb-page-wrapper .comb-success-icon {
    font-size: 3rem;
    color: #2ecc71;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.honeycomb-page-wrapper .comb-warning-icon {
    font-size: 3rem;
    color: #ffc107;
}

.honeycomb-page-wrapper .comb-success-title {
    color: #2ecc71;
    margin: 0;
    font-weight: 600;
}

.honeycomb-page-wrapper .comb-warning-title {
    color: #ffc107;
    margin: 0;
    font-weight: 600;
}

.honeycomb-page-wrapper .comb-success-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.honeycomb-page-wrapper .comb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.honeycomb-page-wrapper .comb-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.honeycomb-page-wrapper .comb-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Honeycomb Combing Progress UI */
.honeycomb-page-wrapper .comb-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    width: 100%;
}

.honeycomb-page-wrapper .comb-progress-icon {
    position: relative;
}

.honeycomb-page-wrapper .comb-hex-icon {
    font-size: 3rem;
    color: var(--accent-gold, #d4a957);
    animation: hexPulse 1.5s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.honeycomb-page-wrapper .comb-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.honeycomb-page-wrapper .comb-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.honeycomb-page-wrapper .comb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold, #d4a957), #ffc107);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.honeycomb-page-wrapper .comb-progress-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold, #d4a957);
    min-width: 40px;
    text-align: right;
}

.honeycomb-page-wrapper .comb-progress-text {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
}

.honeycomb-page-wrapper .comb-progress-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.honeycomb-page-wrapper .comb-current-hex {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.honeycomb-page-wrapper .comb-current-hex i {
    color: #ffc107;
    animation: hexScan 0.5s ease-in-out infinite alternate;
}

@keyframes hexScan {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.honeycomb-page-wrapper .comb-business-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #2ecc71;
}

.honeycomb-page-wrapper .comb-business-count i {
    font-size: 0.9rem;
}

/* Completion Summary */
.honeycomb-page-wrapper .comb-completion-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.honeycomb-page-wrapper .comb-success-icon {
    font-size: 3rem;
    color: #2ecc71;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.honeycomb-page-wrapper .comb-warning-icon {
    font-size: 3rem;
    color: #ffc107;
}

.honeycomb-page-wrapper .comb-success-title {
    color: #2ecc71;
    margin: 0;
    font-weight: 600;
}

.honeycomb-page-wrapper .comb-warning-title {
    color: #ffc107;
    margin: 0;
    font-weight: 600;
}

.honeycomb-page-wrapper .comb-success-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.honeycomb-page-wrapper .comb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.honeycomb-page-wrapper .comb-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.honeycomb-page-wrapper .comb-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fix mobile map/controls overlap */
.honeycomb-page-wrapper .locations-panel {
    position: relative;
    z-index: 1;
}

.honeycomb-page-wrapper .locations-panel:has(.honeycomb-controls-body) {
    z-index: 2; /* Controls panel should be above map panel */
}

.honeycomb-page-wrapper .honeycomb-map-wrapper {
    z-index: 0;
}

/* Ensure controls body has solid background */
.honeycomb-page-wrapper .honeycomb-controls-body {
    position: relative;
    z-index: 1;
    background: #0a0a0a;
}

/* Mobile-specific fixes */
@media (max-width: 991px) {
    .honeycomb-page-wrapper .col-lg-4 .locations-panel:first-child {
        /* Map panel */
        margin-bottom: 1rem;
    }
    
    .honeycomb-page-wrapper .col-lg-4 .locations-panel:last-child {
        /* Controls panel */
        position: relative;
        z-index: 10;
    }
    
    .honeycomb-page-wrapper .honeycomb-map-wrapper {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .honeycomb-page-wrapper .honeycomb-map-wrapper {
        height: 220px;
    }
    
    .honeycomb-page-wrapper .honeycomb-controls-body {
        padding: 0.75rem;
    }
}

/* API Cost Display */
.honeycomb-page-wrapper .comb-api-cost {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #f39c12;
    font-weight: 500;
}

.honeycomb-page-wrapper .comb-api-cost i {
    font-size: 0.9rem;
}

/* Cost stat in completion summary */
.honeycomb-page-wrapper .comb-stat-cost .comb-stat-value {
    color: #f39c12;
}

/* Savings Display in Completion Summary */
.honeycomb-page-wrapper .comb-savings-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    color: #3498db;
    font-size: 0.85rem;
}

.honeycomb-page-wrapper .comb-savings-info i {
    font-size: 1rem;
}

.honeycomb-page-wrapper .comb-savings-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    color: #2ecc71;
    font-size: 0.85rem;
    font-weight: 500;
}

.honeycomb-page-wrapper .comb-savings-badge i {
    font-size: 1.1rem;
    color: #f39c12;
}

/* Skipped/Cached Count Display */
.honeycomb-page-wrapper .comb-skipped-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #3498db;
    font-weight: 500;
}

.honeycomb-page-wrapper .comb-skipped-count i {
    font-size: 0.9rem;
    color: #f39c12;
}

/* Cost Per Lead Display */
.honeycomb-page-wrapper .comb-cost-per-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    background: rgba(212, 169, 87, 0.1);
    border: 1px solid rgba(212, 169, 87, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.honeycomb-page-wrapper .comb-cost-per-lead i {
    color: var(--accent-gold, #d4a957);
    font-size: 1rem;
}

.honeycomb-page-wrapper .comb-cost-per-lead strong {
    color: var(--accent-gold, #d4a957);
    font-weight: 600;
}

/* Customer Cost Stat */
.honeycomb-page-wrapper .comb-stat-customer .comb-stat-value {
    color: #2ecc71;
}

/* Pricing Details Section */
.honeycomb-page-wrapper .comb-pricing-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.honeycomb-page-wrapper .comb-pricing-details > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.honeycomb-page-wrapper .comb-pricing-details i {
    font-size: 0.9rem;
}

.honeycomb-page-wrapper .comb-cost-per-lead i {
    color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .comb-cost-per-lead strong {
    color: var(--accent-gold, #d4a957);
}

.honeycomb-page-wrapper .comb-api-cost-detail i {
    color: #e74c3c;
}

.honeycomb-page-wrapper .comb-api-cost-detail strong {
    color: #e74c3c;
}

.honeycomb-page-wrapper .comb-profit-margin i {
    color: #2ecc71;
}

.honeycomb-page-wrapper .comb-profit-margin strong {
    color: #2ecc71;
}

/* Enrichment Button */
.honeycomb-page-wrapper .comb-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.honeycomb-page-wrapper .honeycomb-enrich-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honeycomb-page-wrapper .honeycomb-enrich-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

/* Enrichment Icon Animation */
.honeycomb-page-wrapper .comb-enrich-icon {
    font-size: 3rem;
    color: #9b59b6;
    animation: enrichPulse 1.5s ease-in-out infinite;
}

@keyframes enrichPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1) rotate(10deg);
        opacity: 0.8;
    }
}

/* Enrichment Stats */
.honeycomb-page-wrapper .comb-stat-email .comb-stat-value {
    color: #3498db;
}

.honeycomb-page-wrapper .comb-stat-social .comb-stat-value {
    color: #9b59b6;
}

.honeycomb-page-wrapper .comb-stat-failed .comb-stat-value {
    color: #e74c3c;
}

/* Enrichment Summary */
.honeycomb-page-wrapper .comb-enrichment-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 8px;
}

.honeycomb-page-wrapper .enrichment-data-found h6 {
    color: #9b59b6;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.honeycomb-page-wrapper .enrichment-data-found ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.honeycomb-page-wrapper .enrichment-data-found li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.honeycomb-page-wrapper .enrichment-data-found li i {
    color: #9b59b6;
}

/* Controls Panel Button Layout */
.honeycomb-page-wrapper .honeycomb-controls-body .honeycomb-comb-btn,
.honeycomb-page-wrapper .honeycomb-controls-body .honeycomb-enrich-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.honeycomb-page-wrapper .honeycomb-controls-body .honeycomb-enrich-btn {
    margin-top: 0.75rem;
}

/* Lead Social Media Links */
.honeycomb-page-wrapper .lead-social-links,
.location-page-wrapper .lead-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.honeycomb-page-wrapper .lead-social-icon,
.location-page-wrapper .lead-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.honeycomb-page-wrapper .lead-social-icon:hover,
.location-page-wrapper .lead-social-icon:hover {
    transform: translateY(-1px);
}

/* Social icon colors on hover */
.honeycomb-page-wrapper .lead-social-icon[title="Facebook"]:hover,
.location-page-wrapper .lead-social-icon[title="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    color: #1877f2;
}

.honeycomb-page-wrapper .lead-social-icon[title="Instagram"]:hover,
.location-page-wrapper .lead-social-icon[title="Instagram"]:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
    color: #e1306c;
}

.honeycomb-page-wrapper .lead-social-icon[title="Twitter/X"]:hover,
.location-page-wrapper .lead-social-icon[title="Twitter/X"]:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.honeycomb-page-wrapper .lead-social-icon[title="LinkedIn"]:hover,
.location-page-wrapper .lead-social-icon[title="LinkedIn"]:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: #0a66c2;
    color: #0a66c2;
}

.honeycomb-page-wrapper .lead-social-icon[title="YouTube"]:hover,
.location-page-wrapper .lead-social-icon[title="YouTube"]:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

.honeycomb-page-wrapper .lead-social-icon[title="TikTok"]:hover,
.location-page-wrapper .lead-social-icon[title="TikTok"]:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Email contact styling */
.honeycomb-page-wrapper .lead-contact-email,
.location-page-wrapper .lead-contact-email {
    color: #3498db;
}

.honeycomb-page-wrapper .lead-contact-email:hover,
.location-page-wrapper .lead-contact-email:hover {
    color: #5dade2;
}

.honeycomb-page-wrapper .lead-contact-email i,
.location-page-wrapper .lead-contact-email i {
    color: #3498db;
}

/* FIX: Override to show contact column with social links on medium screens */
@media (max-width: 1200px) and (min-width: 769px) {
    .honeycomb-page-wrapper .leads-table-header,
    .honeycomb-page-wrapper .leads-table-row {
        grid-template-columns: 2fr 1.5fr 0.6fr 0.6fr !important;
    }
    
    .honeycomb-page-wrapper .lead-col-contact {
        display: flex !important;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Make contact items more compact */
    .honeycomb-page-wrapper .lead-contact-item {
        font-size: 0.75rem;
    }
    
    .honeycomb-page-wrapper .lead-contact-item span {
        display: none;
    }
    
    /* Keep social icons visible and compact */
    .honeycomb-page-wrapper .lead-social-links {
        display: flex !important;
        gap: 0.3rem;
    }
    
    .honeycomb-page-wrapper .lead-social-icon {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .location-page-wrapper .leads-table-header,
    .location-page-wrapper .leads-table-row {
        grid-template-columns: 2fr 1.5fr 0.6fr 0.6fr !important;
    }
    
    .location-page-wrapper .lead-col-contact {
        display: flex !important;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Clear filter button for honeycomb page */
.honeycomb-page-wrapper .clear-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.honeycomb-page-wrapper .clear-filter-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.honeycomb-page-wrapper .clear-filter-btn i {
    font-size: 0.7rem;
}

/* Enrichment Cancel Button */
.honeycomb-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.honeycomb-cancel-btn:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.5);
}

.honeycomb-cancel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.honeycomb-cancel-btn i {
    font-size: 1rem;
}

/* Enrich button disabled state */
.honeycomb-enrich-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(155, 89, 182, 0.1);
}

.honeycomb-enrich-btn:disabled:hover {
    background: rgba(155, 89, 182, 0.1);
    transform: none;
}

/* Honeycomb Map Wrapper - Fix for map not showing */
.honeycomb-page-wrapper .honeycomb-map-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 400px;
    background: #1a1a2e;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.honeycomb-page-wrapper .unified-map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .honeycomb-page-wrapper .honeycomb-map-wrapper {
        min-height: 300px;
        height: 300px;
    }
}

/* Location Card Enrichment Stats */
.location-page-wrapper .location-card-enrichment {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.15rem;
}

.location-page-wrapper .location-card-enrichment i {
    font-size: 0.5rem;
}

.location-page-wrapper .location-card-enrichment .enrichment-count {
    color: #fff;
}

.location-page-wrapper .location-card-enrichment .enrichment-total {
    opacity: 0.7;
}

/* Enrichment Complete - Green */
.location-page-wrapper .location-card-enrichment.enrichment-complete {
    background: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

/* Enrichment Pending - Orange */
.location-page-wrapper .location-card-enrichment.enrichment-pending {
    background: rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

/* Lead Business Logo & Description */
.location-page-wrapper .lead-business-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.location-page-wrapper .lead-business-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.location-page-wrapper .lead-description {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(155, 89, 182, 0.8);
    margin: 0.35rem 0 0 0;
    line-height: 1.3;
    font-style: italic;
}

.location-page-wrapper .lead-description i {
    font-size: 0.6rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Lead Business Logo & Description for Honeycomb Page */
.honeycomb-page-wrapper .lead-business-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.honeycomb-page-wrapper .lead-business-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.honeycomb-page-wrapper .lead-description {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(155, 89, 182, 0.8);
    margin: 0.35rem 0 0 0;
    line-height: 1.3;
    font-style: italic;
}

.honeycomb-page-wrapper .lead-description i {
    font-size: 0.6rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Clean Lead Row Design */
.location-page-wrapper .lead-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.location-page-wrapper .lead-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    border: 2px solid rgba(212, 169, 87, 0.3);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.location-page-wrapper .lead-name-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.location-page-wrapper .lead-name-text .lead-business-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-page-wrapper .lead-name-text .lead-category {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-page-wrapper .lead-business-info .lead-address {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-page-wrapper .lead-business-info .lead-description {
    font-size: 0.7rem;
    color: rgba(155, 89, 182, 0.8);
    margin: 0.35rem 0 0 0;
    font-style: italic;
    line-height: 1.4;
}

/* Compact Contact Icons */
.location-page-wrapper .lead-contact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.location-page-wrapper .lead-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.location-page-wrapper .lead-icon-btn:hover {
    background: rgba(212, 169, 87, 0.2);
    color: #d4a957;
    transform: scale(1.1);
}

.location-page-wrapper .lead-icon-btn.lead-icon-email:hover { background: rgba(234, 67, 53, 0.2); color: #ea4335; }
.location-page-wrapper .lead-icon-btn.lead-icon-fb:hover { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.location-page-wrapper .lead-icon-btn.lead-icon-ig:hover { background: rgba(225, 48, 108, 0.2); color: #e1306c; }
.location-page-wrapper .lead-icon-btn.lead-icon-tw:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.location-page-wrapper .lead-icon-btn.lead-icon-li:hover { background: rgba(10, 102, 194, 0.2); color: #0a66c2; }
.location-page-wrapper .lead-icon-btn.lead-icon-yt:hover { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.location-page-wrapper .lead-icon-btn.lead-icon-tt:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.location-page-wrapper .lead-no-contact {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Clean Lead Row Design for Honeycomb Page */
.honeycomb-page-wrapper .lead-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.honeycomb-page-wrapper .lead-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    border: 2px solid rgba(212, 169, 87, 0.3);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.honeycomb-page-wrapper .lead-name-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.honeycomb-page-wrapper .lead-name-text .lead-business-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honeycomb-page-wrapper .lead-name-text .lead-category {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honeycomb-page-wrapper .lead-business-info .lead-address {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honeycomb-page-wrapper .lead-business-info .lead-description {
    font-size: 0.7rem;
    color: rgba(155, 89, 182, 0.8);
    margin: 0.35rem 0 0 0;
    font-style: italic;
    line-height: 1.4;
}

/* Compact Contact Icons for Honeycomb */
.honeycomb-page-wrapper .lead-contact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.honeycomb-page-wrapper .lead-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.honeycomb-page-wrapper .lead-icon-btn:hover {
    background: rgba(212, 169, 87, 0.2);
    color: #d4a957;
    transform: scale(1.1);
}

.honeycomb-page-wrapper .lead-icon-btn.lead-icon-email:hover { background: rgba(234, 67, 53, 0.2); color: #ea4335; }
.honeycomb-page-wrapper .lead-icon-btn.lead-icon-fb:hover { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.honeycomb-page-wrapper .lead-icon-btn.lead-icon-ig:hover { background: rgba(225, 48, 108, 0.2); color: #e1306c; }
.honeycomb-page-wrapper .lead-icon-btn.lead-icon-tw:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.honeycomb-page-wrapper .lead-icon-btn.lead-icon-li:hover { background: rgba(10, 102, 194, 0.2); color: #0a66c2; }
.honeycomb-page-wrapper .lead-icon-btn.lead-icon-yt:hover { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.honeycomb-page-wrapper .lead-icon-btn.lead-icon-tt:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.honeycomb-page-wrapper .lead-no-contact {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Custom Scrollbar Styling for Location Pages */
.location-page-wrapper ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.location-page-wrapper ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.location-page-wrapper ::-webkit-scrollbar-thumb {
    background: rgba(212, 169, 87, 0.4);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.location-page-wrapper ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 169, 87, 0.6);
}

.location-page-wrapper ::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar styling */
.location-page-wrapper * {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 169, 87, 0.4) rgba(0, 0, 0, 0.3);
}

/* Honeycomb page scrollbars */
.honeycomb-page-wrapper ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.honeycomb-page-wrapper ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.honeycomb-page-wrapper ::-webkit-scrollbar-thumb {
    background: rgba(212, 169, 87, 0.4);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.honeycomb-page-wrapper ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 169, 87, 0.6);
}

.honeycomb-page-wrapper ::-webkit-scrollbar-corner {
    background: transparent;
}

.honeycomb-page-wrapper * {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 169, 87, 0.4) rgba(0, 0, 0, 0.3);
}

/* ================================================
   Analytics Dashboard V2 - Modern Redesign
   ================================================ */

.analytics-dashboard-v2 {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 30, 0.98) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 169, 87, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.analytics-toggle-btn-v2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.15) 0%, rgba(212, 169, 87, 0.05) 100%);
    border: none;
    color: var(--accent-gold, #d4a957);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.analytics-toggle-btn-v2:hover {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.25) 0%, rgba(212, 169, 87, 0.1) 100%);
}

.analytics-toggle-btn-v2 .toggle-btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analytics-toggle-btn-v2 .toggle-btn-content i {
    font-size: 1.25rem;
}

.analytics-toggle-btn-v2 .toggle-btn-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.analytics-toggle-btn-v2 .summary-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.analytics-toggle-btn-v2 .summary-stat i {
    font-size: 0.75rem;
    color: var(--accent-gold);
}

.analytics-toggle-btn-v2 .analytics-chevron {
    transition: transform 0.3s ease;
}

.analytics-dashboard-v2.expanded .analytics-toggle-btn-v2 .analytics-chevron {
    transform: rotate(180deg);
}

.analytics-dashboard-content-v2 {
    padding: 1.5rem;
}

/* Active Filter Banner */
.analytics-active-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.2) 0%, rgba(212, 169, 87, 0.1) 100%);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(212, 169, 87, 0.3);
}

.analytics-active-filter span {
    color: var(--accent-gold);
    font-size: 0.85rem;
}

.analytics-active-filter a {
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.analytics-active-filter a:hover {
    color: #ff6b6b;
}

/* Hero Stats Row */
.analytics-hero-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-stat-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 14px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: radial-gradient(circle at top right, currentColor, transparent 70%);
}

.hero-total {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.6) 0%, rgba(44, 62, 80, 0.8) 100%);
    border: 1px solid rgba(127, 140, 141, 0.3);
    color: #ecf0f1;
}

.hero-enriched {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.4) 0%, rgba(142, 68, 173, 0.6) 100%);
    border: 1px solid rgba(155, 89, 182, 0.4);
    color: #e8daef;
}

.hero-marketing {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.4) 0%, rgba(30, 132, 73, 0.6) 100%);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #d5f5e3;
}

.hero-quality {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.4) 0%, rgba(180, 140, 60, 0.6) 100%);
    border: 1px solid rgba(212, 169, 87, 0.4);
    color: #fef5e7;
}

.hero-stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.hero-stat-percent {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

/* Analytics Grid */
.analytics-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.analytics-panel-v2 {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    transition: border-color 0.2s ease;
}

.analytics-panel-v2:hover {
    border-color: rgba(212, 169, 87, 0.3);
}

.analytics-panel-v2.panel-double {
    grid-column: span 1;
}

.panel-header-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 169, 87, 0.2);
}

.panel-header-v2.small {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
}

.panel-header-v2 i {
    font-size: 0.9rem;
}

.panel-header-v2 .panel-header-badge {
    margin-left: auto;
    background: rgba(212, 169, 87, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Mini Stats Row */
.panel-stats-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mini-stat {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
}

.mini-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.mini-stat-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

/* Panel Detail Row */
.panel-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.panel-detail-row span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.panel-detail-row strong {
    color: #fff;
}

.panel-detail-row small {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Panel Filter Row (Clickable) */
.panel-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    margin: 0.3rem 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.panel-filter-row:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-filter-row.active {
    background: rgba(212, 169, 87, 0.2);
    border-color: rgba(212, 169, 87, 0.4);
    color: var(--accent-gold);
}

.panel-filter-row.highlight {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-color: rgba(39, 174, 96, 0.2);
}

.panel-filter-row.highlight:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.25) 0%, rgba(39, 174, 96, 0.1) 100%);
    border-color: rgba(39, 174, 96, 0.4);
}

.panel-filter-row.highlight-purple {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(155, 89, 182, 0.05) 100%);
    border-color: rgba(155, 89, 182, 0.2);
}

.panel-filter-row.highlight-purple:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25) 0%, rgba(155, 89, 182, 0.1) 100%);
    border-color: rgba(155, 89, 182, 0.4);
}

.panel-filter-row span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-row-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-count {
    font-weight: 600;
    color: #fff;
}

.filter-percent {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
}

/* Social Stats Grid */
.social-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.social-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.social-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.social-stat i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-stat i.bi-facebook { color: #1877f2; }
.social-stat i.bi-instagram { color: #e4405f; }
.social-stat i.bi-twitter-x { color: #fff; }
.social-stat i.bi-linkedin { color: #0a66c2; }
.social-stat i.bi-youtube { color: #ff0000; }
.social-stat i.bi-tiktok { color: #69c9d0; }

.social-stat span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* Panel Split (For Top Lists) */
.panel-split {
    display: flex;
    gap: 1rem;
}

.panel-half {
    flex: 1;
}

.top-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.75rem;
}

.top-rank {
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.top-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.top-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.top-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.top-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-count {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* Analytics V2 Responsive Adjustments */
@media (max-width: 1200px) {
    .analytics-hero-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-toggle-btn-v2 {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .analytics-toggle-btn-v2 .toggle-btn-summary {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .analytics-hero-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .analytics-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    .panel-split {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Hero Stat Cards - Clickable Filter Styles */
.hero-stat-card {
    text-decoration: none;
    cursor: pointer;
}

.hero-filter-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.hero-stat-card:hover .hero-filter-badge {
    opacity: 1;
    transform: scale(1.1);
}

.hero-stat-card.hero-active .hero-filter-badge {
    opacity: 1;
    color: #fff;
}

/* Active State Styles */
.hero-stat-card.hero-active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-stat-card.hero-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.hero-total.hero-active {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8) 0%, rgba(44, 62, 80, 1) 100%);
}

.hero-enriched.hero-active {
    border-color: rgba(155, 89, 182, 0.7);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.6) 0%, rgba(142, 68, 173, 0.8) 100%);
}

.hero-marketing.hero-active {
    border-color: rgba(39, 174, 96, 0.7);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.6) 0%, rgba(30, 132, 73, 0.8) 100%);
}

.hero-quality.hero-active {
    border-color: rgba(212, 169, 87, 0.7);
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.6) 0%, rgba(180, 140, 60, 0.8) 100%);
}

/* ============================================
   AURA DASHBOARD STYLES
   ============================================ */

/* Aura Dashboard Header */
.aura-dashboard-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.aura-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #E91E8C, #FFD700);
}

.aura-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.aura-welcome h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
}

.aura-subtitle {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: 'Fredoka', sans-serif;
}

.aura-header-stats {
    display: flex;
    gap: 1.5rem;
}

.aura-header-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aura-header-stat i {
    font-size: 1.5rem;
    color: #FFD700;
}

.aura-header-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.aura-header-stat .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
}

.aura-header-stat .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Aura Cards */
.aura-card {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.aura-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    color: #FFD700;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aura-card-header i {
    font-size: 1.1rem;
}

.aura-card-body {
    padding: 1.25rem;
    min-height: 150px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Fredoka', sans-serif;
}

/* Aura Dashboard Responsive */
@media (max-width: 768px) {
    .aura-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .aura-header-stats {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .aura-header-stat {
        flex: 1;
        min-width: 120px;
    }
}

/* ============================================
   AURA PROFILE & STATS STYLES
   ============================================ */

/* Profile Section */
.profile-avatar-section {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.4);
    margin-bottom: 0.75rem;
}

.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(233, 30, 140, 0.2) 100%);
    border: 3px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.profile-avatar-placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 0.25rem;
}

.profile-name i {
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.profile-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-info-item i {
    color: #FFD700;
    width: 18px;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-icon.gold { background: rgba(255, 215, 0, 0.2); color: #FFD700; }
.stat-icon.amber { background: rgba(255, 193, 7, 0.2); color: #FFC107; }
.stat-icon.green { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.stat-icon.pink { background: rgba(233, 30, 140, 0.2); color: #E91E8C; }
.stat-icon.cyan { background: rgba(23, 162, 184, 0.2); color: #17a2b8; }
.stat-icon.purple { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.stat-icon.blue { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.stat-icon.orange { background: rgba(243, 156, 18, 0.2); color: #f39c12; }

.stat-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    line-height: 1.2;
}

.stat-name {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bonus Section */
.bonus-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-radius: 8px;
    border: 1px solid rgba(233, 30, 140, 0.3);
}

.bonus-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #E91E8C;
}

.bonus-expires {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    margin-left: 1.5rem;
}

.spin-reset {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(155, 89, 182, 0.15);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #9b59b6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item > i {
    color: #FFD700;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.activity-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.activity-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.activity-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.activity-value .bi-check-circle-fill.text-success {
    color: #28a745 !important;
}

.activity-value .bi-x-circle-fill.text-warning {
    color: #f39c12 !important;
}

/* Responsive adjustments for profile/stats */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
}

/* ============================================
   AURA CARDS & DECKS COLLECTION STYLES
   ============================================ */

/* Collection Overview */
.collection-overview {
    display: flex;
    gap: 1.5rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.collection-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    flex: 1;
    min-width: 140px;
}

.collection-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(233, 30, 140, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFD700;
}

.collection-stat-info {
    display: flex;
    flex-direction: column;
}

.collection-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    line-height: 1.2;
}

.collection-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Deck Card Header */
.deck-header {
    justify-content: flex-start !important;
}

.deck-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.deck-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    text-transform: none;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.card-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Rarity-based border colors */
.card-item.rarity-common {
    border-color: rgba(150, 150, 150, 0.4);
}

.card-item.rarity-rare {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

.card-item.rarity-epic {
    border-color: rgba(155, 89, 182, 0.6);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.2);
}

.card-item.rarity-shiny {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Card Image */
.card-image {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.card-count-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fredoka', sans-serif;
}

/* Card Info */
.card-info {
    padding: 0.75rem;
}

.card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.card-rarity {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.rarity-common .card-rarity {
    background: rgba(150, 150, 150, 0.3);
    color: #aaa;
}

.rarity-rare .card-rarity {
    background: rgba(52, 152, 219, 0.3);
    color: #5dade2;
}

.rarity-epic .card-rarity {
    background: rgba(155, 89, 182, 0.3);
    color: #bb8fce;
}

.rarity-shiny .card-rarity {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.card-klout {
    font-size: 0.7rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.card-klout i {
    font-size: 0.6rem;
}

.card-aura {
    font-size: 0.7rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-aura i {
    font-size: 0.6rem;
}

/* Empty Collection */
.empty-collection {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-collection i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}

.empty-collection h4 {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 0.5rem;
}

.empty-collection p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive for Cards */
@media (max-width: 576px) {
    .collection-overview {
        flex-direction: column;
    }
    
    .collection-stat {
        justify-content: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card Aura Badge - Top Center of Image */
.card-aura-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #28a745;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Fredoka', sans-serif;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(40, 167, 69, 0.4);
    white-space: nowrap;
}

/* Card Name Row - Name and Count side by side */
.card-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.card-name-row .card-name {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.card-count {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Fredoka', sans-serif;
    flex-shrink: 0;
}

/* Card Aura Badge - Enhanced Visibility */
.card-aura-badge {
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95) 0%, rgba(30, 130, 55, 0.95) 100%) !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-family: 'Fredoka', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5), 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
}

.card-aura-badge::before {
    content: '◉';
    font-size: 0.7rem;
    margin-right: 2px;
}

/* Unowned/Uncollected Cards */
.card-item.card-unowned {
    opacity: 0.5;
    filter: grayscale(100%);
    border-color: rgba(100, 100, 100, 0.3) !important;
    box-shadow: none !important;
}

.card-item.card-unowned:hover {
    opacity: 0.7;
    filter: grayscale(80%);
    transform: translateY(-2px);
}

.card-item.card-unowned .card-image img {
    filter: grayscale(100%);
}

.card-item.card-unowned .card-rarity {
    background: rgba(100, 100, 100, 0.3) !important;
    color: #888 !important;
}

.card-item.card-unowned .card-klout {
    color: #888 !important;
}

/* Locked Badge */
.card-locked-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Card Quiz Button */
.card-quiz-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.95) 0%, rgba(142, 68, 173, 0.95) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Fredoka', sans-serif;
}

.card-quiz-btn:hover {
    background: linear-gradient(135deg, rgba(175, 109, 202, 0.98) 0%, rgba(162, 88, 193, 0.98) 100%);
    color: #fff;
    text-decoration: none;
}

.card-quiz-btn i {
    font-size: 0.85rem;
}

/* Card Quiz Button - Updated Style (matching aura badge) */
.card-quiz-btn {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.95) 0%, rgba(142, 68, 173, 0.95) 100%) !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: 'Fredoka', sans-serif !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.5), 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}

.card-quiz-btn:hover {
    background: linear-gradient(135deg, rgba(175, 109, 202, 0.98) 0%, rgba(162, 88, 193, 0.98) 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateX(-50%) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6), 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.card-quiz-btn i {
    font-size: 0.8rem !important;
}

/* Card Quiz Reward */
.card-quiz-reward {
    font-size: 0.7rem;
    color: #9b59b6;
    display: flex;
    align-items: center;
    gap: 2px;
}

.card-quiz-reward i {
    font-size: 0.6rem;
}

/* Mobile Stats Row - Profile & Game Stats side by side */
.mobile-stats-row {
    margin-left: -0.375rem;
    margin-right: -0.375rem;
}

.mobile-stats-row > [class*="col-"] {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

/* Compact styles for mobile cards */
@media (max-width: 767px) {
    .mobile-stats-row .aura-card-header {
        padding: 0.6rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .mobile-stats-row .aura-card-header i {
        font-size: 0.85rem;
    }
    
    .mobile-stats-row .aura-card-body {
        padding: 0.75rem;
        min-height: auto;
    }
    
    .mobile-stats-row .profile-avatar-section {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-stats-row .profile-avatar,
    .mobile-stats-row .profile-avatar-placeholder {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .mobile-stats-row .profile-avatar-placeholder i {
        font-size: 1.5rem;
    }
    
    .mobile-stats-row .profile-name {
        font-size: 0.85rem;
    }
    
    .mobile-stats-row .profile-email {
        font-size: 0.65rem;
    }
    
    .mobile-stats-row .profile-info-list {
        gap: 0.25rem;
    }
    
    .mobile-stats-row .profile-info-item {
        font-size: 0.7rem;
    }
    
    .mobile-stats-row .profile-info-item i {
        width: 14px;
        font-size: 0.7rem;
    }
    
    .mobile-stats-row .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .mobile-stats-row .stat-item {
        padding: 0.4rem;
    }
    
    .mobile-stats-row .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .mobile-stats-row .stat-number {
        font-size: 0.75rem;
    }
    
    .mobile-stats-row .stat-name {
        font-size: 0.55rem;
    }
    
    .mobile-stats-row .bonus-section {
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .mobile-stats-row .bonus-badge {
        font-size: 0.7rem;
    }
    
    .mobile-stats-row .spin-reset {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }
}

/* Center stat numbers and details */
.stats-grid .stat-details {
    text-align: center;
    align-items: center;
}

.stats-grid .stat-number {
    text-align: center;
}

.stats-grid .stat-name {
    text-align: center;
}

/* Mobile stats grid - 2 columns */
@media (max-width: 767px) {
    .mobile-stats-row .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

/* Equal height stat items on mobile */
@media (max-width: 767px) {
    .mobile-stats-row .stats-grid .stat-item {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-stats-row .stats-grid .stat-icon {
        margin-bottom: 0.25rem;
    }
    
    .mobile-stats-row .stats-grid .stat-details {
        width: 100%;
    }
}

/* Activity List Grid Layout */
.activity-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.activity-item {
    flex-direction: column !important;
    text-align: center !important;
    padding: 0.75rem !important;
}

.activity-item > i {
    margin-bottom: 0.35rem !important;
    font-size: 1.1rem !important;
}

.activity-details {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.15rem !important;
}

.activity-label {
    font-size: 0.7rem !important;
}

.activity-value {
    font-size: 0.8rem !important;
}

/* Mobile: 3 items per row */
@media (max-width: 767px) {
    .activity-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .activity-item {
        padding: 0.5rem !important;
    }
    
    .activity-item > i {
        font-size: 1rem !important;
    }
    
    .activity-label {
        font-size: 0.6rem !important;
    }
    
    .activity-value {
        font-size: 0.7rem !important;
    }
}

/* Fix: Activity List - 3 items per row on both desktop and mobile */
.activity-list {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Fix: Reduce gap between icon and text in activity items */
.activity-item > i {
    margin-bottom: 0.15rem !important;
}

.activity-details {
    gap: 0.1rem !important;
}

/* FINAL FIX: Activity item icon gap - highest specificity */
.aura-card .activity-list .activity-item > i.bi {
    margin-bottom: 0.1rem !important;
}

.aura-card .activity-list .activity-item .activity-details {
    gap: 0 !important;
}

/* OVERRIDE: Remove ALL spacing from activity icons */
.activity-list .activity-item > i {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
}

.activity-list .activity-item {
    gap: 2px !important;
}

/* Collection Overview - Single row on mobile */
@media (max-width: 767px) {
    .collection-overview {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .collection-stat {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.5rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .collection-stat-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        margin: 0 auto 0.35rem auto !important;
    }
    
    .collection-stat-info {
        align-items: center !important;
    }
    
    .collection-stat-value {
        font-size: 1rem !important;
    }
    
    .collection-stat-label {
        font-size: 0.6rem !important;
    }
}

/* Reduce gap between icon and text in collection stats */
.collection-stat {
    gap: 0.5rem !important;
}

.collection-stat-icon {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .collection-stat-icon {
        margin-bottom: 0.2rem !important;
    }
    
    .collection-stat-info {
        gap: 0.1rem !important;
    }
}

/* Even smaller gap in collection stats */
.collection-stat {
    gap: 0.25rem !important;
}

@media (max-width: 767px) {
    .collection-stat-icon {
        margin-bottom: 0.1rem !important;
    }
}

/* Remove fixed min-height from aura-card-body - fit to content */
.aura-card-body {
    min-height: auto !important;
}

/* REVERT: Restore min-height for aura-card-body */
.aura-card-body {
    min-height: 150px !important;
}

/* But remove min-height for mobile stats row */
.mobile-stats-row .aura-card-body {
    min-height: auto !important;
}

/* aura-card-body - fit to content */
.aura-card-body {
    min-height: unset !important;
}

/* REVERT: Restore aura-card-body min-height */
.aura-card-body {
    min-height: 150px !important;
    overflow: visible !important;
}

/* FIX: aura-card-body should expand to fit content */
.aura-card-body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    min-height: 0 !important;
}

.aura-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* FIX: aura-card should expand to fit content width on desktop too */
.aura-card {
    width: 100% !important;
    max-width: none !important;
}

.aura-card-body {
    width: 100% !important;
    max-width: none !important;
}

/* FIX: Card items should fit to their own content height, not stretch */
.cards-grid {
    align-items: start !important;
}

.card-item {
    height: auto !important;
}

/* REMOVE fixed aspect ratio from card images - fit to content */
.card-image {
    aspect-ratio: unset !important;
}

.card-image img {
    height: auto !important;
    width: 100% !important;
}

/* REVERT: Restore card-image aspect ratio */
.card-image {
    aspect-ratio: 1 !important;
}

.card-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* FINAL FIX: Deck containers must fit to content */
.deck-card .aura-card-body,
.aura-card.deck-card .aura-card-body,
.aura-card.mb-3.deck-card .aura-card-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* ============================================
   SWIPEABLE DECK CAROUSEL
   ============================================ */

.deck-carousel-container {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Deck Tabs */
.deck-tabs-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.deck-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.deck-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem;
    min-width: max-content;
}

.deck-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.deck-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #fff;
}

.deck-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(233, 30, 140, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.deck-tab-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.deck-tab-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deck-tab-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.deck-tab.active .deck-tab-count {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

/* Carousel Navigation */
.deck-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.deck-nav-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.deck-nav-btn:active {
    transform: scale(0.95);
}

.deck-nav-indicator {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.deck-nav-indicator span:first-child {
    color: #FFD700;
    font-weight: 600;
}

/* Carousel Container */
.deck-carousel {
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.deck-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.deck-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

/* Swipe hint animation */
@keyframes swipeHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

.deck-carousel.show-hint .deck-carousel-track {
    animation: swipeHint 1s ease-in-out 2;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .deck-tabs {
        padding: 0.5rem;
    }
    
    .deck-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .deck-tab-logo {
        width: 18px;
        height: 18px;
    }
    
    .deck-tab-name {
        max-width: 70px;
    }
    
    .deck-carousel-nav {
        padding: 0.5rem;
    }
    
    .deck-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .deck-slide {
        padding: 0.75rem;
    }
}

/* Game Stats - 3 items in one row */
.aura-card .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 767px) {
    .aura-card .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    
    .aura-card .stats-grid .stat-item {
        padding: 0.4rem;
    }
    
    .aura-card .stats-grid .stat-number {
        font-size: 0.7rem;
    }
    
    .aura-card .stats-grid .stat-name {
        font-size: 0.6rem;
    }
}

/* Game Stats - 2 items in one row */
.aura-card .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Iris panel - 3 items in one row */
.collection-overview {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 767px) {
    .collection-overview {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    
    .collection-overview .collection-stat-value {
        font-size: 0.75rem;
    }
    
    .collection-overview .collection-stat-label {
        font-size: 0.6rem;
    }
}

/* Deck Header Row - tabs and nav on same row */
.deck-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding: 0.5rem;
}

.deck-header-row .deck-tabs-wrapper {
    flex: 1;
    overflow-x: auto;
    border-bottom: none;
    background: transparent;
}

.deck-header-row .deck-carousel-nav {
    flex-shrink: 0;
    border-bottom: none;
    background: transparent;
    padding: 0;
    gap: 0.5rem;
}

.deck-header-row .deck-nav-btn {
    width: 28px;
    height: 28px;
}

.deck-header-row .deck-nav-indicator {
    font-size: 0.8rem;
    min-width: 40px;
    text-align: center;
}

@media (max-width: 767px) {
    .deck-header-row {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .deck-header-row .deck-nav-btn {
        width: 24px;
        height: 24px;
    }
    
    .deck-header-row .deck-nav-indicator {
        font-size: 0.7rem;
        min-width: 35px;
    }
}

/* Game Stats - 4 items in 2x2 grid */
.aura-card .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Profile card - avatar and info side by side on desktop */
@media (min-width: 768px) {
    .aura-card-body .profile-avatar-section,
    .aura-card-body .profile-info-list {
        display: inline-block;
        vertical-align: top;
    }
    
    .aura-card-body {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .aura-card-body .profile-avatar-section {
        flex: 0 0 auto;
    }
    
    .aura-card-body .profile-info-list {
        flex: 1;
        min-width: 150px;
    }
}

/* Fix: More specific profile card layout */
@media (min-width: 768px) {
    .aura-card-body {
        display: block !important;
    }
    
    .aura-card-body:has(.profile-avatar-section) {
        display: flex !important;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .profile-info-list {
        display: flex;
        flex-direction: column;
        gap: 0.4rem !important;
    }
    
    .profile-info-item {
        margin-bottom: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
    }
}

/* Fix profile-info-list line spacing */
.profile-info-list {
    gap: 0.8rem !important;
}

.profile-info-list .profile-info-item {
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
}

/* Reset mobile profile-info-list spacing */
@media (max-width: 767px) {
    .profile-info-list {
        gap: 0.3rem !important;
    }
    
    .profile-info-list .profile-info-item {
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
    }
}

/* Desktop profile card fixes */
@media (min-width: 768px) {
    .aura-card-body:has(.profile-avatar-section) {
        align-items: center !important;
    }
    
    .profile-avatar-section {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .profile-avatar-section::after {
        display: none !important;
    }
}
