/* ===========================================
CSS VARIABLES
=========================================== */
:root {
    --primary-yellow: #ffd700;
    --primary-black: #000000;
    --border-yellow: #fbbf24;
    --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
=========================================== */
body, .app-content, .main-content {
    line-height: 1.5;
}

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

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

.cke_notifications_area {
    display: none !important;
}

/* ===========================================
TYPOGRAPHY
=========================================== */
header h1 {
    font-family: var(--slackey-font) !important;
    color: var(--primary-black) !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;
    border-bottom: none !important;
    box-shadow: 0 4px 12px var(--shadow-dark) !important;
}

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

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

.top-navbar .nav-link:hover {
    color: var(--primary-black) !important;
    background-color: var(--primary-yellow) !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='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.mobile-menu-toggle {
    color: var(--primary-yellow) !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-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: 3px solid var(--border-yellow);
    border-radius: 12px;
}

.card-header-yellow,
.user-map-header,
.server-performance-header {
    background: var(--primary-black);
    border-bottom: none !important;
    color: var(--primary-yellow);
    border-top-left-radius: 9px !important;
    border-top-right-radius: 9px !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: var(--primary-yellow);
}

.bg-yellow {
    background: var(--primary-yellow) !important;
    color: var(--primary-black) !important;
}

.bg-yellow body, .app-content, .main-content {
    color: var(--primary-black) !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%;
}

.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: none !important;
    border-radius: 10px !important;
    box-shadow: 2px 2px 8px var(--shadow-dark) !important;
}

/* ===========================================
RESPONSIVE DESIGN
=========================================== */
@media (max-width: 768px) {
    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.5;
    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.5;
    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: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: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;
}

/* Dropdown styling to match theme */

.dropdown-item:hover,


/* 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: "Slackey", cursive !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.5;
}

/* 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) {
}

#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: none;
    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-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.5;
    text-align: center;
}

.ls-tight-header-small {
    -webkit-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.5;
    text-align: center;
}

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

/* Description Text */
.font-courier-prime-header {
    font-family: "Courier Prime", monospace !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);
}

/* 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;
    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;
    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;
    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;
    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: none;
}

.modal-title-custom {
    color: #ffd700;
    font-family: "Courier Prime", monospace;
}

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

.modal-footer-custom {
    border-top: none;
}

.form-label-custom {
    color: #fff !important;
    font-family: "Courier Prime", monospace;
    font-weight: bold;
}

.form-control-custom {
    background: #ffd700;
    color: #000000;
    border: 2px solid #000000;
    font-family: "Courier Prime", monospace;
}

.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: "Courier Prime", monospace;
    font-weight: bold;
}

.form-check-label-terms {
    color: #ffd700;
    font-family: "Courier Prime", monospace;
    padding-right: 20px;
    font-size: 0.75rem !important;
}

.form-select-custom {
    background: #ffd700;
    color: #000000;
    border: 2px solid #000000;
    font-family: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
}

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

.image-preview-logo {
    width: 100px;
    height: 100px;
    border: none;
    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: none;
    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: "Courier Prime", monospace;
    font-size: 0.8rem;
    text-align: center;
}

.upload-btn-custom {
    background: #ffd700;
    color: #000000;
    border: 2px solid #000000;
    font-family: "Courier Prime", monospace;
    font-weight: bold;
    font-size: 0.8rem;
}

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

.btn-cancel-custom {
    background: transparent;
    color: #ffd700;
    border: none;
    font-family: "Courier Prime", monospace;
}

.btn-create-custom {
    background: #6c757d;
    color: #ffffff;
    border: 2px solid #6c757d;
    font-family: "Courier Prime", monospace;
    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 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;
    }
}

@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-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 */

.bg-dark {
    border-bottom: none !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;
    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 */

.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: "Courier Prime", monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.terms-heading {
    font-family: "Slackey", cursive !important;
}

.terms-acknowledgment {
    font-family: "Slackey", cursive !important;
}

.terms-close-btn {
    background-color: var(--primary-yellow) !important;
    color: var(--primary-black) !important;
    border: 2px solid var(--primary-black) !important;
    font-family: "Slackey", cursive !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: "Slackey", cursive !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: "Slackey", cursive !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 */

/* 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-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) {
}

@media (min-width: 1200px) {
}

/* 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 */

/* 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 */

/* Card Count Title */
.deck-cards-count-title {
    font-family: "Slackey", cursive;
}

/* 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: none !important;
}

#imageCropperModal .modal-title {
    color: #ffd700 !important;
    font-family: "Slackey", cursive !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: none !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: "Courier Prime", monospace;
}

.map-btn-exact {
    background: #000000 !important;
    color: #ffd700 !important;
    border: 2px solid #000000 !important;
    font-family: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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: none;
}

/* 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;
}

/* 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 */

/* Modal crop area specific styles */

/* Modal crop area inner specific styles */

.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");
}

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

/* Form control styles */

/* 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;
}

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

.draw-button {
    background: #000000 !important;
    color: #ffd700 !important;
    border: 2px solid #000000 !important;
    font-family: "Courier Prime", monospace;
    font-weight: bold;
}

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

.clear-button {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 2px solid #dc3545 !important;
    font-family: "Courier Prime", monospace;
    font-weight: bold;
}

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

.finish-button {
    background: #28a745 !important;
    color: #ffffff !important;
    border: 2px solid #28a745 !important;
    font-family: "Courier Prime", monospace;
    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: none;
}

.description-modal-title {
    font-family: "Slackey", cursive;
    color: #ffd700;
}

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

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

/* Map popup content */
.map-popup-content {
    font-family: "Courier Prime", monospace;
    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: none !important;
}

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

.modal-no-border {
    border: none !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: wrap;
}

.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;
}

.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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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: "Courier Prime", monospace !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;
    -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: "Courier Prime", monospace;
    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: none;
        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: "Courier Prime", monospace !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-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::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 */
}

/* Card Preview Panel */

/* 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: "Slackey", cursive;
    color: white;
}

/* Title Edit Input */
#nameEdit {
    font-weight: 500;
    display: none;
    font-family: "Slackey", cursive;
}

/* Deck Name Display */
#deckNameDisplay {
    cursor: pointer;
    font-family: "Slackey", cursive;
    color: white;
    margin-bottom: 1rem;
}

/* Deck Edit Select */
#deckEdit {
    display: none;
    font-family: "Slackey", cursive;
    background-color: #212529 !important;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

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

/* Image Preview */

/* 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) {
}

/* Description Edit Textarea */
/* Description Edit Textarea */

/* 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: "Slackey", cursive;
    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;
}

.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 {
    border-radius: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

/* Klout Badge Styles */

.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,
    
    /* Klout badge font family */
    .klout-badge-text {
    font-family: "Slackey", monospace;
}

/* Klout badge font sizes */

/* Base dilation description positioning */

/* Description display cursor */

/* 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 > body, .app-content, .main-content {
    position: relative;
    z-index: 1;
}

/* Deck status toggle button display styles */
#activeBadge {
    /* NOTE: This property should be set dynamically via JavaScript/Blade template */
}

#pausedBadge {
    /* NOTE: This property should be set dynamically via JavaScript/Blade template */
}

#globalBadge {
    /* NOTE: This property should be set dynamically via JavaScript/Blade template */
}

#localBadge {
    /* NOTE: This property should be set dynamically via JavaScript/Blade template */
}

/* Deck card preview panel background */
.deck-card-preview-panel {
    /* NOTE: Background image should be set dynamically via JavaScript/Blade template */
}

/* Crop modal image styling */

@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 */
}

/* 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 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 */

/* 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: "Slackey", cursive !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: "Courier Prime", monospace !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;
}

.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-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;
}

/* Footer styling */

/* 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: "Slackey", sans-serif !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 */

/* 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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    cursor: pointer;
}

/* File Upload Styles */

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

/* 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: "Courier Prime", monospace;
    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: "Courier Prime", monospace;
    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;
}

@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 */

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 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

.flex-input-group .btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.flex-input-group .form-control,
.flex-input-group select {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* 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 */

/* 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 PAGE COMMON STYLES
   ========================================== */

/* Location Page Wrapper */
.location-page-wrapper {
    padding: 2rem 0;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-page-wrapper.loaded {
    opacity: 1;
}

/* User List Header */
.user-list-header {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(212, 169, 87, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.user-list-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a957 0%, #f0c674 50%, #d4a957 100%);
}

.user-list-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-list-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-list-title i {
    font-size: 2rem;
    color: #d4a957;
}

.user-list-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.title-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.title-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subtitle-separator {
    opacity: 0.3;
}

/* User Search Bar */
.user-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.user-search-bar.filter-bar-fullwidth {
    margin-top: 1rem;
}

.sort-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-select-wrapper i {
    position: absolute;
    left: 0.75rem;
    color: #d4a957;
    pointer-events: none;
    z-index: 1;
}

.sort-select-wrapper select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 169, 87, 0.3);
    color: #fff;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 200px;
}

.sort-select-wrapper select:focus {
    outline: none;
    border-color: #d4a957;
}

.search-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 169, 87, 0.15);
    border: 1px solid rgba(212, 169, 87, 0.3);
    border-radius: 6px;
    color: #d4a957;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-action-btn:hover {
    background: rgba(212, 169, 87, 0.25);
    color: #d4a957;
    text-decoration: none;
}

/* User Map Button */
.user-map-btn {
    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: 6px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-map-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

/* Analytics Dashboard V2 */
.analytics-dashboard-v2 {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(212, 169, 87, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.analytics-dashboard-v2.expanded {
    border-color: rgba(212, 169, 87, 0.4);
}

.analytics-toggle-btn-v2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analytics-toggle-btn-v2:hover {
    background: rgba(255, 255, 255, 0.03);
}

.analytics-toggle-btn-v2.active {
    border-bottom: 1px solid rgba(212, 169, 87, 0.2);
}

.toggle-btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.toggle-btn-content i {
    color: #d4a957;
    font-size: 1.25rem;
}

.toggle-btn-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.summary-stat i {
    font-size: 0.9rem;
}

.analytics-chevron {
    color: #d4a957;
    transition: transform 0.3s ease;
}

.analytics-dashboard-content-v2 {
    padding: 1.25rem;
}

.analytics-dashboard-content-v2.initially-hidden {
    display: none;
}

/* Lead Card Styles */
.lead-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.lead-card {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(18, 18, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.lead-card:hover {
    border-color: rgba(212, 169, 87, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .user-list-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-btn-summary {
        display: none;
    }
    
    .user-search-bar {
        flex-direction: column;
    }
    
    .sort-select-wrapper {
        width: 100%;
    }
    
    .sort-select-wrapper select {
        width: 100%;
    }
}

/* ==========================================
   HONEYCOMB PAGE STYLES
   ========================================== */

.honeycomb-page-wrapper {
    padding: 2rem 0;
}

/* User Stats Row (Cards) */
.user-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.user-stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.user-stat-card:hover {
    border-color: rgba(212, 169, 87, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.user-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 169, 87, 0.15);
    border-radius: 8px;
    color: #d4a957;
    font-size: 1.25rem;
}

.user-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.user-stat-card .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    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;
}

/* Map Container */
.honeycomb-map-container {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

#map, #honeycomb-map {
    width: 100%;
    height: 450px;
    background: #1a1a1a;
}

/* Lead Grid */
.honeycomb-lead-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Header Title Edit */
.header-title-input {
    display: none;
    background: transparent;
    border: 1px solid rgba(212, 169, 87, 0.5);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

.header-title-input:focus {
    outline: none;
    border-color: #d4a957;
}

h1.clickable {
    cursor: pointer;
}

h1.clickable:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

/* Server Load Warning */
.server-load-warning {
    cursor: pointer;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hex Map Controls */
.map-controls-wrapper {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-controls-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-hex-toggles {
    display: flex;
    gap: 0.5rem;
}

.map-hex-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    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.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-hex-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.map-hex-btn.active {
    background: rgba(212, 169, 87, 0.2);
    border-color: rgba(212, 169, 87, 0.5);
    color: #d4a957;
}

.map-hex-count {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.map-category-select {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.map-category-select:focus {
    outline: none;
    border-color: #d4a957;
}

.map-comb-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #d4a957, #c9922f);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-comb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 169, 87, 0.4);
}

.map-comb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enriched Leads Grid */
.enriched-leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.enriched-lead-card {
    background: linear-gradient(145deg, rgba(35, 30, 22, 0.95), rgba(28, 24, 18, 0.98));
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enriched-lead-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .user-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-hex-toggles {
        justify-content: center;
    }
    
    #map, #honeycomb-map {
        height: 300px;
    }
}

/* ==========================================
   ADMIN PANELS & MAP STYLES
   ========================================== */

/* Locations Panel */
.locations-panel {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(12, 12, 12, 0.98));
    border: 1px solid rgba(212, 169, 87, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

.locations-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(212, 169, 87, 0.2);
    font-weight: 600;
    color: #fff;
}

.locations-panel-header i {
    font-size: 1.25rem;
    color: #d4a957;
}

.locations-panel-header .locations-count {
    margin-left: auto;
    font-size: 0.8rem;
    background: rgba(212, 169, 87, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: #d4a957;
}

/* Map Wrapper and Canvas */
.honeycomb-map-wrapper {
    position: relative;
    background: #0a0a0a;
}

.unified-map-container {
    position: relative;
    width: 100%;
}

.honeycomb-map-canvas,
#map {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.map-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.map-loading-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

/* Business Overlay */
.business-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.business-overlay.visible {
    transform: translateY(0);
}

.business-overlay-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.business-overlay-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.business-overlay-address {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.business-overlay-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Map Controls Wrapper */
.map-controls-wrapper {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.map-controls-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.map-controls-row:last-child {
    margin-bottom: 0;
}

/* Scraping Progress */
.map-scraping-progress {
    display: none;
}

.map-scraping-progress.active {
    display: block;
}

.map-progress-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 1rem;
}

.map-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.map-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.map-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a957, #f0c674);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Lead Cards in Panel */
.leads-card-container {
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.lead-card-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.lead-card-item:hover {
    border-color: rgba(212, 169, 87, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.lead-card-item:last-child {
    margin-bottom: 0;
}

/* Scrollbar Styling */
.leads-card-container::-webkit-scrollbar {
    width: 6px;
}

.leads-card-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.leads-card-container::-webkit-scrollbar-thumb {
    background: rgba(212, 169, 87, 0.3);
    border-radius: 3px;
}

.leads-card-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 169, 87, 0.5);
}

/* Page Pagination */
.leads-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.leads-pagination button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leads-pagination button:hover:not(:disabled) {
    background: rgba(212, 169, 87, 0.2);
    border-color: rgba(212, 169, 87, 0.4);
    color: #d4a957;
}

.leads-pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.leads-pagination .page-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 0 0.5rem;
}

/* ==========================================
   MAP HEIGHT FIX - CRITICAL
   ========================================== */
#map,
.honeycomb-map-canvas,
#unified-map #map,
.unified-map-container #map {
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
    display: block !important;
    position: relative !important;
}

.unified-map-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.honeycomb-map-wrapper {
    position: relative;
    min-height: 400px;
    background: #0a0a0a;
    border-radius: 0 0 12px 12px;
}

/* Hide loading placeholder when map loads */
.map-loading-placeholder.hidden {
    display: none !important;
}

/* Fix for global line-height override */
#map *,
.gm-style *,
.gm-style-iw body, .app-content, .main-content {
    line-height: normal !important;
}

/* ========== USER LIST CARDS ========== */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.user-card-new {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.user-card-new.verified-user {
    border: 2px solid #10b981;
}

.user-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px;
}

.delete-user-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.user-card-new:hover .delete-user-btn {
    opacity: 1;
}

.delete-user-btn:hover {
    background: #ef4444;
    color: #fff;
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    position: relative;
    overflow: hidden;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-card-avatar img.img-error {
    display: none;
}

.user-avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 32px;
}

.user-card-avatar img:not(.img-error) + .user-avatar-placeholder {
    display: none;
}

.user-country-flag {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.user-verified-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-verified-badge.verified {
    background: #10b981;
    color: #fff;
}

.user-verified-badge.unverified {
    background: #94a3b8;
    color: #fff;
}

.user-card-info {
    text-align: center;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.user-mini-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.user-mini-stat i {
    font-size: 11px;
    color: #94a3b8;
}

.user-card-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 4px;
}

.user-activity-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
}

.activity-badge.ad-badge {
    background: #dbeafe;
    color: #2563eb;
}

.activity-badge.iap-badge {
    background: #fef3c7;
    color: #d97706;
}

.activity-badge i {
    font-size: 10px;
}

/* User list pagination */
.user-list-pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.user-list-pagination .pagination {
    display: flex;
    gap: 4px;
}

.user-list-pagination .page-link {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-list-pagination .page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.user-list-pagination .page-item.active .page-link {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.user-list-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search results notice */
.search-results-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #3b82f6;
}

.search-results-notice .clear-search {
    margin-left: auto;
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-results-notice .clear-search:hover {
    color: #ef4444;
}

/* ========== REFERRALS PAGE STYLES ========== */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

/* Referral Chart */
.referral-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    padding: 20px 10px;
    background: #1e293b;
    border-radius: 12px;
    gap: 8px;
}

.referral-chart-bar {
    flex: 1;
    max-width: 60px;
    background: linear-gradient(to top, #6366f1, #8b5cf6);
    border-radius: 6px 6px 0 0;
    position: relative;
    min-height: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.referral-chart-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.referral-chart-label {
    position: absolute;
    bottom: -24px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.referral-chart-value {
    position: absolute;
    top: -22px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1e293b;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    background: #334155;
    transform: translateX(4px);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #1e293b;
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.leaderboard-rank.default {
    background: #475569;
    color: #e2e8f0;
}

.leaderboard-user {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 14px;
}

.leaderboard-stats {
    font-size: 12px;
    color: #94a3b8;
}

.leaderboard-count {
    color: #6366f1;
    font-weight: 600;
}

/* Recent Referrals List */
.referral-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1e293b;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.referral-list-item:hover {
    background: #334155;
}

.referral-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.referral-user-info {
    flex: 1;
    min-width: 0;
}

.referral-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.referral-details {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.referral-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.referral-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.referral-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.referral-status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.referral-status-badge.rewarded {
    background: #dbeafe;
    color: #2563eb;
}

.referral-status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Admin Panel for Referrals */
.admin-panel {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.admin-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
}

.admin-panel-title i {
    color: #6366f1;
}

.admin-panel-link {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.admin-panel-link:hover {
    color: #818cf8;
}

.admin-panel-body {
    padding: 20px;
}

.admin-panel-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.admin-panel-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Referral Action Buttons */
.referral-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn-approve,
.action-btn-reject {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.action-btn-approve {
    background: #d1fae5;
    color: #059669;
}

.action-btn-approve:hover {
    background: #059669;
    color: #fff;
    transform: scale(1.1);
}

.action-btn-reject {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn-reject:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.1);
}

/* Referral Header Filters */
.referral-header-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select,
.filter-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 14px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #6366f1;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #4f46e5;
}

.filter-btn-reset {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-btn-reset:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.admin-panel-badge {
    background: #334155;
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.admin-panel-highlight {
    border: 1px solid #6366f1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.admin-panel-footer {
    padding: 16px 20px;
    background: #1e293b;
    border-top: 1px solid #334155;
}

/* Referral Code Form */
.code-create-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.code-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-form-field label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

.code-form-field input,
.code-form-field select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 14px;
}

.code-form-field input:focus,
.code-form-field select:focus {
    outline: none;
    border-color: #6366f1;
}

.code-form-field input::placeholder {
    color: #64748b;
}

.code-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.code-create-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.code-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Code List Items */
.code-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #1e293b;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.code-list-item:hover {
    background: #334155;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.code-details {
    flex: 1;
    min-width: 0;
}

.code-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 15px;
    margin-bottom: 4px;
}

.code-value {
    font-family: 'Courier New', monospace;
    background: #0f172a;
    padding: 4px 10px;
    border-radius: 6px;
    color: #6366f1;
    font-weight: 600;
    letter-spacing: 1px;
}

.code-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.code-usage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-usage-max {
    color: #94a3b8;
}

.code-type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.code-type-badge.standard {
    background: #334155;
    color: #94a3b8;
}

.code-type-badge.premium {
    background: #fef3c7;
    color: #d97706;
}

.code-type-badge.vip {
    background: #dbeafe;
    color: #2563eb;
}

.code-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #475569;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.code-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: all 0.2s ease;
}

.code-toggle.active {
    background: #10b981;
}

.code-toggle.active::after {
    left: 23px;
}

/* Admin Alerts */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-alert-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.admin-alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Empty State */
.empty-state-admin {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state-admin i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state-admin h4 {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.empty-state-admin p {
    font-size: 14px;
    color: #64748b;
}

/* Location Card Hover */
.location-card-hover {
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-card-hover:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    transform: translateX(4px);
}
