body {
    background-color: #f6f8fa;
}

/* Navigation - Game Boy Style */
.navbar-dark {
    background: linear-gradient(135deg, #1a252f 0%, #243342 50%, #1a252f 100%) !important;
    border-bottom: 2px solid rgba(155, 188, 15, 0.3);
    backdrop-filter: blur(10px);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(155, 188, 15, 0.1);
    z-index: 1040 !important;
    min-height: 70px;
    padding: 0.5rem 0;
}

/* Brand Styling - Game Boy Theme */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace !important;
    color: #9bbc0f !important;
    text-shadow:
        2px 2px 0 #0f380f,
        0 0 10px rgba(155, 188, 15, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    filter: none !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
    padding: 0.25rem 0;
}

/* Chart Candle Icons */
.candle-icons {
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.candle {
    position: relative;
    width: 6px;
    height: 18px;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.candle::before,
.candle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: currentColor;
}

.candle::before {
    top: -4px;
    height: 4px;
}

.candle::after {
    bottom: -4px;
    height: 3px;
}

.candle-red::before {
    top: -8px;
    height: 8px;
}

.candle-red::after {
    bottom: -8px;
    height: 8px;
}

.candle-green {
    background: #9bbc0f;
    color: #9bbc0f;
    box-shadow: 0 0 6px rgba(155, 188, 15, 0.4);
}

.candle-red {
    background: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
    height: 8px;
    margin-bottom: 16px;
}

.navbar-brand:hover .candle {
    transform: scaleY(1.1);
}

.navbar-brand:hover .candle-green {
    box-shadow: 0 0 10px rgba(155, 188, 15, 0.6);
}

.navbar-brand:hover .candle-red {
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.navbar-brand:hover {
    color: #9bbc0f !important;
    transform: scale(1.05);
    text-shadow:
        2px 2px 0 #0f380f,
        0 0 15px rgba(155, 188, 15, 0.7),
        0 0 25px rgba(155, 188, 15, 0.4);
}

/* Navigation Links - Game Boy Style */
.navbar-dark .navbar-nav .nav-link {
    color: #a8b5a0 !important;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #9bbc0f !important;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(155, 188, 15, 0.6);
}

/* Active link indicator */
.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #9bbc0f;
    box-shadow: 0 0 5px rgba(155, 188, 15, 0.6);
    border-radius: 1px;
}

/* Navbar Toggle - Game Boy Style */
.navbar-toggler {
    border: 2px solid rgba(155, 188, 15, 0.5) !important;
    border-radius: 8px;
    background: rgba(155, 188, 15, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    border-color: rgba(155, 188, 15, 0.7) !important;
    background: rgba(155, 188, 15, 0.2);
    box-shadow: 0 0 8px rgba(155, 188, 15, 0.3);
}

.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='rgba%28155, 188, 15, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Auth Buttons - Game Boy Style */
.navbar .btn {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    min-height: 36px;
    white-space: nowrap;
}

/* Prevent navbar height changes during auth loading */
#auth-guest-buttons {
    min-height: 40px;
    display: flex !important;
    align-items: center;
    width: 120px; /* Exact same width as dropdown container */
    justify-content: center;
}

#auth-user-buttons {
    min-height: 40px;
    width: 120px; /* Exact same width as guest container */
    justify-content: center;
}

#auth-guest-buttons.d-none,
#auth-user-buttons.d-none {
    display: none !important;
}

/* Ensure dropdown button maintains styling */
#auth-user-buttons .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Removed duplicate auth-loading rule - consolidated below */

.navbar .btn-outline-light {
    background: rgba(155, 188, 15, 0.1);
    border: 2px solid rgba(155, 188, 15, 0.4);
    color: #a8b5a0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(155, 188, 15, 0.1);
}

.navbar .btn-outline-light:hover {
    background: rgba(155, 188, 15, 0.25);
    border-color: rgba(155, 188, 15, 0.6);
    color: #9bbc0f;
    transform: translateY(-1px);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(155, 188, 15, 0.15);
}

.navbar .btn-light {
    background: rgba(155, 188, 15, 0.25);
    border: 2px solid rgba(155, 188, 15, 0.5);
    color: #9bbc0f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(155, 188, 15, 0.15);
}

.navbar .btn-light:hover {
    background: rgba(155, 188, 15, 0.35);
    border-color: rgba(155, 188, 15, 0.7);
    color: #9bbc0f;
    transform: translateY(-1px);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(155, 188, 15, 0.2);
}

/* Navbar Collapse - Game Boy Style */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, #1a252f 0%, #243342 50%, #1a252f 100%);
        border-radius: 0 0 12px 12px;
        border: 2px solid rgba(155, 188, 15, 0.3);
        border-top: none;
        margin-top: 10px;
        padding: 1rem;
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.5),
            inset 0 2px 3px rgba(155, 188, 15, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        margin: 0.25rem 0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(155, 188, 15, 0.15);
        border-radius: 8px;
    }

    /* Auth buttons mobile styling */
    #auth-guest-buttons,
    #auth-user-buttons {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

    #auth-guest-buttons button,
    #auth-user-buttons button {
        margin-bottom: 0.5rem;
        min-width: 120px;
    }
}

/* Username display - Game Boy style */
#userDisplayName {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* User dropdown styling - Game Boy theme */
.navbar .dropdown-menu {
    background: linear-gradient(135deg, #1a252f 0%, #243342 50%, #1a252f 100%);
    border: 2px solid rgba(155, 188, 15, 0.3);
    border-radius: 8px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(155, 188, 15, 0.1);
    padding: 0.5rem 0;
    min-width: 160px;
}

.navbar .dropdown-item {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #a8b5a0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(155, 188, 15, 0.15);
    color: #9bbc0f;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(155, 188, 15, 0.5);
}

.navbar .dropdown-toggle::after {
    border-top-color: #a8b5a0;
    transition: all 0.3s ease;
}

.navbar .dropdown-toggle:hover::after {
    border-top-color: #9bbc0f;
}

/* Loading states for navbar */
.auth-loading {
    opacity: 0.8;
    pointer-events: none;
    /* Remove blur and transition to prevent flicker */
}

.auth-loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Navbar scroll effect */
.navbar-dark.scrolled {
    background: linear-gradient(135deg, #0f1419 0%, #1a252f 50%, #0f1419 100%) !important;
    border-bottom-color: rgba(155, 188, 15, 0.5);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(155, 188, 15, 0.15);
}

.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 0;
    overflow: hidden;
}

.gameboy-console {
    position: relative;
}

/* ========================================
   HERO SECTION - LEFT SIDE CONTENT
   ======================================== */

/* Hero Content - Main Area */
.hero-content {
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    color: white;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.pixel-text {
    display: block;
    font-size: 3.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #9bbc0f;
    text-shadow:
        2px 2px 0 #0f380f,
        4px 4px 0 rgba(15, 56, 15, 0.8),
        0 0 20px rgba(155, 188, 15, 0.5),
        0 0 40px rgba(155, 188, 15, 0.3);
    line-height: 1;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    animation: pixelGlow 2s ease-in-out infinite alternate;
}

@keyframes pixelGlow {
    from {
        text-shadow:
            2px 2px 0 #0f380f,
            4px 4px 0 rgba(15, 56, 15, 0.8),
            0 0 20px rgba(155, 188, 15, 0.5),
            0 0 40px rgba(155, 188, 15, 0.3);
    }

    to {
        text-shadow:
            2px 2px 0 #0f380f,
            4px 4px 0 rgba(15, 56, 15, 0.8),
            0 0 30px rgba(155, 188, 15, 0.7),
            0 0 50px rgba(155, 188, 15, 0.5);
    }
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    color: #a8b5a0;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: subtitleBlink 3s ease-in-out infinite;
}

@keyframes subtitleBlink {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    95% {
        opacity: 0.7;
    }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description.retro-intro {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(155, 188, 15, 0.3);
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #9bbc0f;
    text-shadow:
        2px 2px 0 #0f380f,
        0 0 10px rgba(155, 188, 15, 0.6);
    line-height: 1;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 0.8rem;
    color: #a8b5a0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-pixel {
    background: rgba(155, 188, 15, 0.2);
    border: 2px solid rgba(155, 188, 15, 0.5);
    color: #9bbc0f;
    padding: 0.75rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(155, 188, 15, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-pixel:hover {
    transform: translateY(-2px);
    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(155, 188, 15, 0.2);
    color: #9bbc0f;
    border-color: rgba(155, 188, 15, 0.7);
    background: rgba(155, 188, 15, 0.3);
}

.btn-pixel.primary {
    background: rgba(155, 188, 15, 0.25);
    color: #9bbc0f;
    border-color: rgba(155, 188, 15, 0.6);
}

.btn-pixel.secondary {
    background: rgba(155, 188, 15, 0.25);
    color: #9bbc0f;
    border-color: rgba(155, 188, 15, 0.6);
}

.btn-pixel.secondary:hover {
    color: #9bbc0f;
    border-color: rgba(155, 188, 15, 0.7);
    background: rgba(155, 188, 15, 0.3);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: rgba(155, 188, 15, 0.15);
    color: #c5d8a0;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    border: 1px solid rgba(155, 188, 15, 0.25);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(155, 188, 15, 0.1);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(155, 188, 15, 0.25);
    border-color: rgba(155, 188, 15, 0.4);
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(155, 188, 15, 0.15);
}

/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
}

body {
    padding-top: 56px;
}

/* Fix anchor scroll for Products section */
section#products::before {
    content: "";
    display: block;
    height: 56px;
    /* Match navbar height exactly */
    margin-top: -56px;
    visibility: hidden;
    pointer-events: none;
}

/* Fix anchor scroll for Products heading */
#products::before {
    content: "";
    display: block;
    height: 72px;
    /* Height of navbar + extra spacing */
    margin-top: -72px;
    visibility: hidden;
    pointer-events: none;
}

/* Fix anchor scroll for About heading */
#about::before {
    content: "";
    display: block;
    height: 72px;
    /* Height of navbar + extra spacing */
    margin-top: 0px;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN - HERO SECTION
   ======================================== */

@media (max-width: 991px) {
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .pixel-text {
        font-size: 2.8rem;
    }

    .hero-text {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
    }

    .pixel-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-text {
        max-width: 500px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-pixel {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .pixel-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .stat-item {
        min-width: auto;
    }
}

/* Product Cards - Main Products Grid Only */
.products-grid .product-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.products-grid .product-card:hover {
    transform: translateY(-5px);
}

/* Fixed Size Cards */
.fixed-size-card {
    border-radius: 1rem !important;
    display: flex;
    flex-direction: column;
}

.fixed-size-card .card-body {
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}



/* Products Grid Layout */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0;
}

.products-grid .col-auto {
    padding: 0;
    flex: 0 0 auto;
}

/* Update the product cards size in home page here */
/* Ensure cards maintain fixed size at all screen widths */
.fixed-size-card {
    width: 300px !important;
    height: 280px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    min-height: 280px !important;
    max-height: 280px !important;
}

/* Center the grid when there are fewer cards than can fit in a row */
@media (min-width: 576px) {
    .products-grid {
        justify-content: center;
    }
}

/* For very small screens, center single cards but maintain fixed size */
@media (max-width: 320px) {
    .products-grid {
        justify-content: center;
        gap: 1rem;
    }
}

/* Buy Button */
.btn-buy {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-buy:hover:not(:disabled) {
    background-color: #0056b3;
    color: white;
}

.btn-buy:disabled {
    background-color: var(--primary-color);
    color: white;
    opacity: 0.65;
}

/* Contact Form */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Social Links */
.social-links a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Comments Section */
.comments-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.comment {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.comment:last-child {
    border-bottom: none;
}

/* Auth Buttons - Fixed width to prevent layout shift */
#auth-guest-buttons,
#auth-user-buttons {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

/* Dropdown menu items styling */
#userProfileBtn,
#signOutBtn {
    /* These are dropdown menu items, not the main navbar buttons */
    min-width: auto;
}

/* Ensure consistent button widths - Fix flicker by making Sign In and Username buttons identical */
#auth-guest-buttons button,
#auth-user-buttons .dropdown-toggle {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    /* Force exact same width for both Sign In and Username dropdown buttons */
}

/* Username display - truncate long names */
#userDisplayName {
    display: inline-block;
    max-width: 80px; /* Reduced to account for dropdown arrow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    #auth-guest-buttons,
    #auth-user-buttons {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    #auth-guest-buttons button,
    #auth-user-buttons button {
        margin-bottom: 0.5rem;
        flex: 0 0 auto;
        /* Prevent flex stretching */
    }

    /* Maintain fixed widths on mobile */
    #auth-guest-buttons button:first-child,
    #userProfileBtn {
        width: 120px;
    }

    #auth-guest-buttons button:last-child,
    #signOutBtn {
        width: 100px;
    }
}

/* Comment Action Buttons */
.comment .btn-group {
    gap: 0.25rem;
}

.comment .btn-sm i {
    font-size: 0.875rem;
}

.comment-text {
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Skeleton Loading Animations */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

.skeleton-loading.skeleton-text {
    height: 1.2em;
    margin: 0.2em 0;
}

.skeleton-loading.skeleton-price {
    height: 2em;
    width: 120px;
}

.skeleton-loading.skeleton-badge {
    height: 1.5em;
    width: 80px;
    display: inline-block;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-loading.loaded {
    background: none;
    animation: none;
    color: inherit;
}

/* Smooth transitions for content updates */
[data-product-name],
[data-product-price],
[data-product-rating],
[data-product-version],
[data-product-description] {
    transition: all 0.2s ease;
}

.updating {
    transform: scale(1.02);
    opacity: 0.8;
}

/* Loading states for empty content */
[data-product-name]:empty::after {
    content: "Loading Product...";
    color: #6c757d;
}

[data-product-price]:empty::after {
    content: "$---.--";
    color: #6c757d;
}

[data-product-rating]:empty::after {
    content: "⭐ Loading...";
    color: #6c757d;
}

[data-product-version]:empty::after {
    content: "Version: ...";
    color: #6c757d;
}

/* Products grid loading state */
.products-grid:empty::after {
    content: "Loading products...";
    display: block;
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Fade transitions */
.fade-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-out {
    opacity: 0.7;
    transform: translateY(-2px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Auth button skeleton */
#userDisplayName:empty::after {
    content: "Loading...";
    color: #6c757d;
}

/* Product card skeleton animation */
.product-card.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    min-height: 300px;
    border-radius: 8px;
}

/* Smooth product card transitions */
.product-card {
    transition: all 0.3s ease;
    opacity: 1;
}

.product-card.updating {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Better loading states */
.spinner-border.large {
    width: 3rem;
    height: 3rem;
}

/* Skeleton loading for user display name */
#userDisplayName[data-user-name]:empty {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    min-width: 80px;
    height: 1.2em;
    display: inline-block;
}

@media (max-width: 768px) {
    .skeleton-loading {
        min-height: 1.5rem;
    }

    #userDisplayName[data-user-name]:empty {
        min-width: 60px;
    }
}

/* Auth buttons blur effect */
.auth-loading {
    filter: blur(3px);
    pointer-events: none;
    transition: filter 0.2s ease-in-out;
    opacity: 0.7;
}

.auth-loaded {
    filter: blur(0px);
    pointer-events: auto;
    transition: filter 0.2s ease-in-out;
    opacity: 1;
}

/* Skip animation if auth state loads very quickly */
.auth-instant {
    transition: none !important;
}