/* ============================================
   GROOHBAZ - MODERN DARK THEME + GLASSMORPHISM
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --neon-cyan: #00f0ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff006e;
    --neon-green: #39ff14;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-neon-purple: 0 0 20px rgba(176, 38, 255, 0.3);
}

/* Alpine.js x-cloak */
[x-cloak] {
    display: none !important;
}

/* SweetAlert2 Dark Theme Styling */
.swal-dark-popup {
    background: rgba(17, 17, 24, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(0, 240, 255, 0.2) !important;
    color: #ffffff !important;
}

.swal-dark-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    background: linear-gradient(135deg, #00f0ff, #b026ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.swal-dark-content {
    color: #e5e7eb !important;
    font-size: 1rem !important;
}

.swal-dark-confirm {
    background: linear-gradient(135deg, #00f0ff, #b026ff) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.swal-dark-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6) !important;
}

.swal-dark-confirm:active {
    transform: translateY(0) !important;
}

.swal-dark-cancel {
    background: rgba(255, 0, 110, 0.2) !important;
    border: 1px solid rgba(255, 0, 110, 0.5) !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    color: #ff006e !important;
    transition: all 0.3s ease !important;
}

.swal-dark-cancel:hover {
    background: rgba(255, 0, 110, 0.3) !important;
    border-color: rgba(255, 0, 110, 0.7) !important;
    transform: translateY(-2px) !important;
}

/* SweetAlert2 Icon Colors */
.swal2-success {
    border-color: #00f0ff !important;
}

.swal2-success [class^=swal2-success-line] {
    background-color: #00f0ff !important;
}

.swal2-success .swal2-success-ring {
    border-color: rgba(0, 240, 255, 0.3) !important;
}

.swal2-error {
    border-color: #ff006e !important;
}

.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ff006e !important;
}

.swal2-warning {
    border-color: #ffaa00 !important;
    color: #ffaa00 !important;
}

.swal2-info {
    border-color: #00f0ff !important;
    color: #00f0ff !important;
}

/* SweetAlert2 Close Button */
.swal2-close {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    opacity: 1 !important;
    color: #00f0ff !important;
    transform: rotate(90deg) !important;
}

* {
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    /* Enable smooth scrolling with hardware acceleration */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Animated Gradient Background - Optimized with GPU acceleration */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(176, 38, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    z-index: -1;
    pointer-events: none;
    will-change: opacity, transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: translateZ(0) scale(1); }
    50% { opacity: 0.8; transform: translateZ(0) scale(1.1); }
}

/* Particles Effect - Optimized with GPU acceleration */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 240, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(176, 38, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 0, 110, 0.1), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(57, 255, 20, 0.1), transparent);
    background-size: 200% 200%;
    animation: particleMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
    will-change: background-position;
    transform: translateZ(0); /* Force GPU acceleration */
}

@keyframes particleMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Glassmorphism Card - Optimized backdrop-filter and transitions */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Only animate transform and opacity for better performance */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 240, 255, 0.5), 
        rgba(176, 38, 255, 0.5), 
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    /* Use transform only - no layout-affecting properties */
    transform: translateY(-8px) scale(1.02) translateZ(0);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Neon Glow Effects */
.neon-glow-cyan {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5),
                0 0 20px rgba(0, 240, 255, 0.3),
                0 0 30px rgba(0, 240, 255, 0.2);
}

.neon-glow-purple {
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.5),
                0 0 20px rgba(176, 38, 255, 0.3),
                0 0 30px rgba(176, 38, 255, 0.2);
}

.neon-glow-pink {
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5),
                0 0 20px rgba(255, 0, 110, 0.3),
                0 0 30px rgba(255, 0, 110, 0.2);
}

/* Modern Input Styles */
.modern-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    color: #ffffff !important;
    padding: 14px 18px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    width: 100%;
}

.modern-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1) !important;
    outline: none !important;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

.modern-input option {
    background: var(--bg-secondary);
    color: #ffffff;
}

.modern-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1),
                0 0 15px rgba(0, 240, 255, 0.2);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

/* Ensure input text is always visible */
.modern-input,
input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="time"],
textarea {
    color: #ffffff !important;
}

.modern-input:not(:placeholder-shown),
input:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
    color: #ffffff !important;
}

/* Floating Label */
.floating-label-group {
    position: relative;
    margin-bottom: 0;
}

.floating-label {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff !important;
    transition: all 0.3s ease;
    pointer-events: none !important;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-secondary) 50%, var(--bg-secondary) 50%, transparent 50%, transparent 100%);
    padding: 0 8px;
    font-size: 15px;
    font-weight: 500;
    z-index: 3;
    white-space: nowrap;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-label-group input,
.floating-label-group textarea {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05) !important;
}

.floating-label-group input:focus ~ .floating-label,
.floating-label-group input:not(:placeholder-shown) ~ .floating-label,
.floating-label-group input[value]:not([value=""]) ~ .floating-label,
.floating-label-group textarea:focus ~ .floating-label,
.floating-label-group textarea:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--neon-cyan) !important;
    font-weight: 600;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-secondary) 55%, transparent 55%, transparent 100%);
    padding: 0 6px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Special handling for textarea */
.floating-label-group textarea ~ .floating-label {
    top: 18px;
    transform: none;
}

.floating-label-group textarea:focus ~ .floating-label,
.floating-label-group textarea:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--neon-cyan) !important;
    font-weight: 600;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-secondary) 55%, transparent 55%, transparent 100%);
    padding: 0 6px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.segmented-control button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
}

.segmented-control button.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

/* Modern Button */
.btn-modern {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    color: white;
    font-weight: 600;
    /* Only animate transform and box-shadow for better performance */
    transition: transform 0.3s, 
                box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    color: white;
}

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

.btn-modern.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Animated Select */
.modern-select {
    position: relative;
}

.modern-select select {
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    padding: 14px 45px 14px 18px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    width: 100%;
}

.modern-select select option {
    background: var(--bg-secondary);
    color: #ffffff;
}

.modern-select::after {
    content: '▼';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 12px;
}

.modern-select select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

/* Global Select Styles - Apply to all selects */
select,
.form-select,
select.form-control,
select.modern-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 12px 40px 12px 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 12px !important;
    padding-left: 40px !important;
    padding-right: 16px !important;
}

select:focus,
.form-select:focus,
select.form-control:focus,
select.modern-input:focus {
    outline: none !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

select:hover,
.form-select:hover,
select.form-control:hover,
select.modern-input:hover {
    border-color: rgba(0, 240, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
}

select option,
.form-select option,
select.form-control option,
select.modern-input option,
option {
    background: #111118 !important;
    background-color: #111118 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border: none !important;
    font-size: 1rem !important;
}

select option:hover,
.form-select option:hover,
select.form-control option:hover,
select.modern-input option:hover,
option:hover {
    background: rgba(0, 240, 255, 0.2) !important;
    background-color: rgba(0, 240, 255, 0.2) !important;
    color: #00f0ff !important;
}

select option:checked,
.form-select option:checked,
select.form-control option:checked,
select.modern-input option:checked,
select option:focus,
.form-select option:focus,
select.form-control option:focus,
select.modern-input option:focus,
option:checked,
option:focus {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(176, 38, 255, 0.3)) !important;
    background-color: rgba(0, 240, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Enhanced option styling for better visibility */
select option:not(:disabled),
.form-select option:not(:disabled),
select.form-control option:not(:disabled),
select.modern-input option:not(:disabled),
option:not(:disabled) {
    background: #111118 !important;
    background-color: #111118 !important;
    color: #ffffff !important;
}

select option:disabled,
.form-select option:disabled,
select.form-control option:disabled,
select.modern-input option:disabled,
option:disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.5 !important;
}

select:disabled,
.form-select:disabled,
select.form-control:disabled,
select.modern-input:disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* RTL Support for Select Arrow */
[dir="rtl"] select,
[dir="rtl"] .form-select,
[dir="rtl"] select.form-control,
[dir="rtl"] select.modern-input {
    background-position: right 12px center !important;
    padding-right: 40px !important;
    padding-left: 16px !important;
}

/* Fix for select dropdown list (native browser dropdown) */
select::-ms-expand {
    display: none;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
select::-webkit-select-arrow {
    display: none;
}

/* Force dark dropdown background */
select:focus option,
.form-select:focus option,
select.form-control:focus option,
select.modern-input:focus option,
select option,
.form-select option,
select.form-control option,
select.modern-input option {
    background: #111118 !important;
    background-color: #111118 !important;
    color: #ffffff !important;
}

/* Additional styling for select dropdown list */
select:not([multiple]) option,
.form-select:not([multiple]) option,
select.form-control:not([multiple]) option,
select.modern-input:not([multiple]) option {
    background: #111118 !important;
    background-color: #111118 !important;
    color: #ffffff !important;
}

/* Ensure select elements have proper background */
select,
.form-select,
select.form-control,
select.modern-input {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.3) 50%),
                      linear-gradient(135deg, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) !important;
}

/* Additional styles for better dropdown appearance */
select optgroup,
.form-select optgroup {
    background: #111118 !important;
    background-color: #111118 !important;
    color: #00f0ff !important;
    font-weight: 600;
}

select optgroup option,
.form-select optgroup option {
    background: #1a1a24 !important;
    background-color: #1a1a24 !important;
    color: #ffffff !important;
    padding-right: 24px !important;
}

/* Price Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Floating Action Button - Optimized with GPU acceleration */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 60px;
    height: 60px;
    padding: 0 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4),
                0 0 40px rgba(0, 240, 255, 0.3),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
    /* Only animate transform and opacity */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

.fab .fab-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.fab .fab-text {
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
}

.fab:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.6),
                0 0 50px rgba(0, 240, 255, 0.4),
                inset 0 2px 15px rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0 28px;
}

.fab:hover .fab-text {
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4),
                    0 0 40px rgba(0, 240, 255, 0.3),
                    inset 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 0 8px 35px rgba(0, 240, 255, 0.7),
                    0 0 50px rgba(0, 240, 255, 0.5),
                    inset 0 2px 15px rgba(255, 255, 255, 0.3);
    }
}

@keyframes float {
    0%, 100% { transform: translateZ(0) translateY(0); }
    50% { transform: translateZ(0) translateY(-5px); }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Counter Animation */
.counter {
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 20px;
    color: var(--neon-green);
    font-size: 14px;
    font-weight: 500;
}

/* Category Icon */
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(176, 38, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
}

.category-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.step.completed .step-number {
    background: var(--neon-green);
    border-color: var(--neon-green);
}

/* Image Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

/* Live Preview Card */
.preview-card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
}

/* Modern Navbar - Optimized backdrop-filter for better performance */
.navbar-modern {
    background: rgba(17, 17, 24, 0.85) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration for fixed navbar */
}

.navbar-brand-modern {
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #00f0ff, #b026ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.8) !important;
    /* Only animate transform and color for better performance */
    transition: transform 0.3s, 
                background-color 0.3s, 
                color 0.3s;
    padding: 8px 16px !important;
    border-radius: 8px;
    margin: 0 4px;
}

.nav-link-modern:hover {
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.1);
}

/* Footer */
footer {
    background: rgba(17, 17, 24, 0.8) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .fab {
        bottom: 20px;
        right: 20px;
        left: auto;
        transform: none;
        width: auto;
        min-width: auto;
        max-width: calc(100% - 40px);
        height: 64px;
        padding: 0 28px;
        border-radius: 50px;
        font-size: 22px;
        box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5),
                    0 0 50px rgba(0, 240, 255, 0.4),
                    inset 0 2px 15px rgba(255, 255, 255, 0.25),
                    0 0 0 2px rgba(255, 255, 255, 0.1);
        animation: pulse 2s infinite, mobilePulse 2.5s ease-in-out infinite;
    }
    
    .fab .fab-icon {
        font-size: 22px;
    }
    
    .fab .fab-text {
        display: inline-block !important;
        font-size: 17px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .fab:hover {
        transform: translateY(-3px) scale(1.02);
        padding: 0 32px;
        box-shadow: 0 15px 40px rgba(0, 240, 255, 0.6),
                    0 0 60px rgba(0, 240, 255, 0.5),
                    inset 0 2px 20px rgba(255, 255, 255, 0.35),
                    0 0 0 3px rgba(255, 255, 255, 0.15);
    }
    
    .fab:hover .fab-text {
        display: inline-block !important;
    }
    
    @keyframes mobilePulse {
        0%, 100% { 
            box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5),
                        0 0 50px rgba(0, 240, 255, 0.4),
                        inset 0 2px 15px rgba(255, 255, 255, 0.25),
                        0 0 0 2px rgba(255, 255, 255, 0.1);
        }
        50% { 
            box-shadow: 0 15px 40px rgba(0, 240, 255, 0.7),
                        0 0 60px rgba(0, 240, 255, 0.6),
                        inset 0 2px 20px rgba(255, 255, 255, 0.35),
                        0 0 0 3px rgba(255, 255, 255, 0.2);
        }
    }
    
    .glass-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step-indicator::before {
        display: none;
    }
}

/* Fix jalali datepicker z-index */
.jdp-container,
.jdp-wrapper,
.datepicker-plot-area,
[class*="jdp"],
[id*="jdp"],
div[class*="datepicker"],
div[class*="jdp-container"],
div[id*="jdp-container"] {
    z-index: 1060 !important;
}

.modal-backdrop ~ .jdp-container,
.modal-backdrop ~ div[class*="jdp"],
.modal.show ~ .jdp-container,
.modal.show ~ div[class*="jdp"] {
    z-index: 1060 !important;
}

/* Modal Scrollable */
.modal-dialog {
    max-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog:not(.modal-dialog-scrollable) {
    max-height: calc(100% - 3.5rem);
}

.modal-dialog:not(.modal-dialog-scrollable) .modal-content {
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-dialog:not(.modal-dialog-scrollable) .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* ============================================
   TEXT READABILITY IMPROVEMENTS
   ============================================ */

/* Card Titles - Pure White */
.glass-card h5,
.glass-card h4,
.glass-card h3,
.glass-card h2,
.glass-card h1 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Prices - High Contrast */
.price-display,
.price-text {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Button Text - Always White */
.btn-modern,
.btn-modern:hover,
.btn-modern:focus {
    color: #ffffff !important;
}

/* Search Labels - Light Gray */
.search-label,
.filter-label {
    color: #e5e7eb !important;
    font-weight: 500;
}

/* Card Content Text */
.glass-card p,
.glass-card small:not(.text-muted) {
    color: #e5e7eb !important;
}

/* Text Muted - Lighter */
.text-muted {
    color: #9ca3af !important;
}

/* Ad Card Specific Improvements */
.ad-card-title {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-card-price {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 
        0 0 15px rgba(0, 240, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.ad-card-bid {
    color: #ff006e !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

.ad-card-countdown {
    color: #ff006e !important;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.3);
}

/* Range Slider Value Display */
.range-value-display {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Search Section Headings */
.search-section h3,
.search-section h2 {
    color: #ffffff !important;
    font-weight: 700;
}

/* Search Section Improvements */
.search-section .filter-label {
    color: #e5e7eb !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Range Slider Improvements */
.range-slider {
    cursor: pointer;
}

.range-slider:active {
    cursor: grabbing;
}

/* Price Range Display */
.price-range-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
}

/* Section Headings */
section h2,
section h3 {
    color: #ffffff !important;
}

/* Category Cards */
.category-icon + h6 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Statistics Cards */
.glass-card .counter {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Links */
a.text-decoration-none {
    color: #00f0ff !important;
    transition: all 0.3s;
}

a.text-decoration-none:hover {
    color: #b026ff !important;
}

/* Badge Improvements */
.badge {
    color: #ffffff !important;
    font-weight: 600;
}

/* Table Improvements - Force Dark Theme */
.table,
table.table {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th,
table.table thead th,
.table thead th[style],
table.table thead th[style] {
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    padding: 16px !important;
    text-align: right;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td,
table.table tbody td,
.table tbody td[style],
table.table tbody td[style] {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle;
}

.table tbody tr,
table.table tbody tr {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

.table tbody tr:hover,
table.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    /* Use transform with translateZ for GPU acceleration */
    transform: translateX(-2px) translateZ(0);
}

.table-striped > tbody > tr:nth-of-type(odd),
table.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.table-striped > tbody > tr:nth-of-type(odd):hover,
table.table-striped > tbody > tr:nth-of-type(odd):hover {
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.table-hover > tbody > tr:hover,
table.table-hover > tbody > tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* Table in glass cards */
.glass-card .table,
.glass-card table.table {
    margin-bottom: 0;
    background: transparent !important;
}

.glass-card .table thead th,
.glass-card table.table thead th {
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Override Bootstrap default table styles */
.table td,
.table th {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table-bordered td,
.table-bordered th {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Force remove white backgrounds */
.table tbody tr td,
.table tbody tr th,
table tbody tr td,
table tbody tr th {
    background: transparent !important;
    background-color: transparent !important;
}

/* Override Bootstrap table default styles */
.table,
.table > :not(caption) > * > * {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table > :not(caption) > * > * {
    padding: 16px !important;
    color: #ffffff !important;
}

.table > thead {
    vertical-align: bottom;
}

.table > tbody {
    vertical-align: inherit;
}

/* Ensure no white backgrounds in any table context */
.glass-card .table,
.panel-content .table,
#mainContent .table,
#adminMainContent .table {
    background: transparent !important;
    background-color: transparent !important;
}

.glass-card .table tbody tr,
.panel-content .table tbody tr,
#mainContent .table tbody tr,
#adminMainContent .table tbody tr {
    background: transparent !important;
    background-color: transparent !important;
}

.glass-card .table tbody tr td,
.panel-content .table tbody tr td,
#mainContent .table tbody tr td,
#adminMainContent .table tbody tr td {
    background: transparent !important;
    background-color: transparent !important;
}

/* Strong override for all table cells - Force dark theme */
table.table tbody tr td,
table.table tbody tr th,
table tbody tr td,
table tbody tr th,
.table tbody tr td,
.table tbody tr th {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Override Bootstrap's default table styles completely */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #ffffff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.1) !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-striped-color: #ffffff !important;
    --bs-table-active-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-active-color: #ffffff !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-hover-color: #ffffff !important;
}

/* Force dark theme for all table elements */
.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table > thead > tr > th {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #ffffff !important;
}

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

/* Pagination - Bootstrap 5 Dark Theme */
.pagination {
    background: transparent !important;
    backdrop-filter: none !important;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 500 !important;
}

.pagination .page-link:hover:not(.disabled):not(.active) {
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(176, 38, 255, 0.3)) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Pagination info text */
.pagination + .small,
nav .small.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

nav .small .fw-semibold.text-white {
    color: #ffffff !important;
}

/* Breadcrumb Improvements */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.breadcrumb-item a {
    color: #00f0ff !important;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-item a:hover {
    color: #b026ff !important;
}

.breadcrumb-item.active {
    color: #ffffff !important;
}

/* List Group Improvements */
.list-group-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Carousel Improvements */
.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

/* Alert Improvements */
.alert {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: #00f0ff;
}

/* Search Filter Visual Feedback */
.filter-active {
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
}

/* Range Slider Value Display Animation */
.range-value-display {
    transition: all 0.3s;
}

input[type="range"]:active + .range-value-display,
input[type="range"]:focus + .range-value-display {
    transform: scale(1.05);
    color: #00f0ff !important;
}

/* ============================================
   MODERN LOGIN MODAL - GLASSMORPHISM
   ============================================ */

.login-modal-content {
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 240, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-modal-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(176, 38, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f0ff, #b026ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form {
    padding: 0;
}

.login-input-group {
    position: relative;
    margin-bottom: 0;
}

.login-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    padding: 18px 20px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    width: 100%;
}

.login-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(0, 240, 255, 0.1),
        0 0 20px rgba(0, 240, 255, 0.3),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
}

.login-input.is-invalid,
.login-input.shake {
    border-color: var(--neon-pink);
    animation: shake 0.5s;
}

.login-label {
    position: absolute;
    right: 20px;
    top: 18px;
    color: var(--text-muted);
    transition: all 0.3s;
    pointer-events: none;
    background: rgba(17, 17, 24, 0.95);
    padding: 0 10px;
    font-size: 15px;
    font-weight: 500;
}

.login-input:focus ~ .login-label,
.login-input:not(:placeholder-shown) ~ .login-label {
    top: -12px;
    font-size: 13px;
    color: var(--neon-cyan);
    background: rgba(17, 17, 24, 1);
}

.error-message {
    color: var(--neon-pink);
    font-size: 14px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s;
}

.login-submit-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    margin-top: 8px;
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-back-btn {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.login-back-btn:hover {
    color: var(--neon-cyan) !important;
    background: rgba(0, 240, 255, 0.1);
}

/* OTP Input Container */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    direction: ltr;
}

.otp-input {
    width: 55px;
    height: 65px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.otp-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 4px rgba(0, 240, 255, 0.1),
        0 0 25px rgba(0, 240, 255, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
    transform: scale(1.05) translateY(-2px);
}

.otp-input.otp-error,
.otp-input-container.shake {
    border-color: var(--neon-pink);
    animation: shake 0.5s;
}

.otp-phone-display {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--neon-cyan);
    font-size: 15px;
    display: inline-block;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    }
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-modal-content {
        border-radius: 20px;
        margin: 10px;
    }
    
    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .otp-input-container {
        gap: 8px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-input {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

/* ============================================
   BLOG SPECIFIC STYLES
   ============================================ */

/* Blog Post Content Styling */
.post-content {
    color: #e5e7eb !important;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h1 { font-size: 2.5rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.75rem; }
.post-content h4 { font-size: 1.5rem; }

.post-content p {
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.post-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00f0ff;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.post-content a {
    color: #00f0ff;
    text-decoration: underline;
    transition: all 0.3s;
}

.post-content a:hover {
    color: #b026ff;
    text-shadow: 0 0 8px rgba(176, 38, 255, 0.5);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.post-content blockquote {
    border-right: 4px solid #00f0ff;
    padding-right: 1.5rem;
    margin: 2rem 0;
    color: #b0b0b0;
    font-style: italic;
    background: rgba(0, 240, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.post-content table th {
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    font-weight: 600;
}

/* Blog Card Hover Effects - Optimized */
.blog-card {
    /* Only animate transform and opacity for better performance */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.blog-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.2);
}

/* Featured Post Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    z-index: 2;
}

/* Blog Search Highlight */
mark {
    background: rgba(0, 240, 255, 0.3) !important;
    color: #00f0ff !important;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Swiper Customization for Blog */
.featured-swiper .swiper-button-next,
.featured-swiper .swiper-button-prev {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.featured-swiper .swiper-button-next:after,
.featured-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.featured-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.featured-swiper .swiper-pagination-bullet-active {
    background: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Lazy Loading Images - FIXED: Images always visible */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s;
}

/* Ensure images are always visible, even during load */
img {
    opacity: 1 !important;
}

/* Reading Progress Bar - Optimized with transform for GPU acceleration */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #b026ff);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: right;
    will-change: transform;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ============================================
   ENHANCED SELECT OPTION STYLING - COMPREHENSIVE
   ============================================ */

/* Force dark theme for ALL select options - Maximum specificity */
* select option,
* select.form-control option,
* select.modern-input option,
* select[class*="modern"] option,
* select[class*="form"] option,
* select[class*="select"] option,
* .form-select option,
* .form-control option,
* .modern-input option,
* option,
html select option,
html body select option,
html body * select option {
    background-color: #111118 !important;
    background: #111118 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Hover state for options - Enhanced */
* select option:hover,
* select.form-control option:hover,
* select.modern-input option:hover,
* select[class*="modern"] option:hover,
* select[class*="form"] option:hover,
* select[class*="select"] option:hover,
* .form-select option:hover,
* .form-control option:hover,
* .modern-input option:hover,
* option:hover,
html select option:hover,
html body select option:hover {
    background-color: rgba(0, 240, 255, 0.25) !important;
    background: rgba(0, 240, 255, 0.25) !important;
    color: #00f0ff !important;
}

/* Selected/checked option - Enhanced */
* select option:checked,
* select.form-control option:checked,
* select.modern-input option:checked,
* select[class*="modern"] option:checked,
* select[class*="form"] option:checked,
* select[class*="select"] option:checked,
* .form-select option:checked,
* .form-control option:checked,
* .modern-input option:checked,
* option:checked,
html select option:checked,
html body select option:checked {
    background-color: rgba(0, 240, 255, 0.35) !important;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(176, 38, 255, 0.35)) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Focused option - Enhanced */
* select option:focus,
* select.form-control option:focus,
* select.modern-input option:focus,
* select[class*="modern"] option:focus,
* select[class*="form"] option:focus,
* select[class*="select"] option:focus,
* .form-select option:focus,
* .form-control option:focus,
* .modern-input option:focus,
* option:focus,
html select option:focus,
html body select option:focus {
    background-color: rgba(0, 240, 255, 0.3) !important;
    background: rgba(0, 240, 255, 0.3) !important;
    color: #ffffff !important;
    outline: none !important;
}

/* Disabled options */
* select option:disabled,
* select.form-control option:disabled,
* select.modern-input option:disabled,
* select[class*="modern"] option:disabled,
* select[class*="form"] option:disabled,
* select[class*="select"] option:disabled,
* .form-select option:disabled,
* .form-control option:disabled,
* .modern-input option:disabled,
* option:disabled,
html select option:disabled,
html body select option:disabled {
    background-color: rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Ensure all select elements have dark background */
select,
select.form-control,
select.modern-input,
select[class*="modern"],
select[class*="form"],
select[class*="select"],
.form-select,
.form-control.modern-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Additional styling for select dropdown when open */
select:focus,
select:active,
select:focus-visible {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Force dark background for optgroup */
select optgroup,
select.form-control optgroup,
select.modern-input optgroup,
.form-select optgroup,
optgroup {
    background-color: #111118 !important;
    background: #111118 !important;
    color: #00f0ff !important;
    font-weight: 600 !important;
    padding: 8px !important;
}

select optgroup option,
select.form-control optgroup option,
select.modern-input optgroup option,
.form-select optgroup option,
optgroup option {
    background-color: #1a1a24 !important;
    background: #1a1a24 !important;
    color: #ffffff !important;
    padding-right: 24px !important;
}
