:root {
    --bg-color: #121212;
    --sidebar-bg: #1c1c1c;
    --card-bg: #242424;
    --accent-color: #f39c12; /* Warm orange from the design */
    --accent-hover: #e67e22;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-min-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    background-color: var(--bg-color);
    overflow: hidden;
    height: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden; /* Main container will handle scrolling */
    height: 100%;
    width: 100%;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle at top right, #1f1f1f, #121212);
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-right: 1px solid var(--border-color);
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
}

.logo-icon {
    margin-right: 10px;
}

.mobile-only-btn {
    display: none;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-nav h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 40px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 15px;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.checkbox-container:hover {
    color: var(--text-primary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#price-range-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(243, 156, 18, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.price-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 10px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--sidebar-bg);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.slider-input::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--sidebar-bg);
    pointer-events: auto;
    cursor: pointer;
}

.max-price {
    z-index: 1;
}

.price-separator {
    color: var(--text-secondary);
}

/* Size Selector Styling */
.size-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

.size-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

#card-size-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 80px;
    text-align: center;
}


.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.sidebar-footer {
    padding-top: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Main Content Styling */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #0d0d0d;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.top-nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--accent-color);
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    width: 300px;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 10px;
    width: 18px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn {
    text-decoration: none;
    margin-right: 15px;
    display: flex;
}

.social-icon {
    transition: var(--transition);
}

.social-btn:hover .social-icon {
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px rgba(255, 166, 0, 0.4));
}

.wa-btn:hover .social-icon {
    color: #25d366;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.4));
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #76b3ff;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1c1c1c;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.show {
    transform: scale(1);
}

.nav-btn:hover {
    color: var(--text-primary);
}

.user-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.user-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(243, 156, 18, 0.35), rgba(243, 156, 18, 0.08) 60%, rgba(0, 0, 0, 0.3));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.user-profile-badge span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* Gallery / Cards Styling */
.hero-card {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    cursor: pointer;
}

.hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent-color);
    margin-top: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: 25px;
    align-items: stretch;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    background-color: #2e2e2e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.game-card.pinned-game {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
    background: linear-gradient(145deg, var(--card-bg), #2a2a2a);
}

.game-card.pinned-game:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.card-image-wrap {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 15px;
    background-color: rgba(255,255,255,0.03);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffd700, #ffcc00);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge i {
    width: 12px;
    height: 12px;
}

.card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .card-image-wrap img {
    transform: scale(1.1);
}

.skeleton-card {
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(41, 41, 41, 0.9), rgba(24, 24, 24, 0.95));
    box-shadow: none;
}

.skeleton-card:hover {
    transform: none;
    background: linear-gradient(180deg, rgba(41, 41, 41, 0.9), rgba(24, 24, 24, 0.95));
    box-shadow: none;
}

.skeleton-media,
.skeleton-line,
.skeleton-button {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.skeleton-media::after,
.skeleton-line::after,
.skeleton-button::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-media {
    border-radius: var(--radius-sm);
}

.skeleton-line {
    border-radius: 999px;
}

.skeleton-line--title {
    width: 78%;
    height: 18px;
    margin-bottom: 10px;
}

.skeleton-line--meta {
    width: 42%;
    height: 12px;
    margin-bottom: 18px;
}

.skeleton-line--price {
    width: 34%;
    height: 20px;
}

.skeleton-button {
    width: 86px;
    height: 36px;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

.card-info {
    padding: 0 5px;
}

.game-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.pinned-game .game-title {
    color: #ffd700;
}

.game-platform {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.game-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: #000;
    padding: 6px 20px;
    width: auto;
    font-size: 13px;
}

.btn-sm {
    padding: 6px 15px;
    border-radius: var(--radius-sm);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--sidebar-bg);
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--accent-color);
    color: black;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-image {
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    flex: 1.2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-width: 350px;
}

.modal-info h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.modal-cats {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.modal-cats .cat-badge {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-bg);
    border-radius: 100px;
    color: var(--text-secondary);
}

.modal-description {
    flex: 1;
    margin-bottom: 30px;
}

.modal-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: auto;
}

/* Tabs Styling */
.modal-tabs {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-tab:hover {
    color: var(--text-primary);
}

.modal-tab.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.modal-tab-content {
    height: 200px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding-right: 10px;
}

/* Custom Scrollbar for tab content */
.modal-tab-content::-webkit-scrollbar {
    width: 6px;
}

.modal-tab-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

.modal-tab-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Arabic Rules Styles */
.arabic-rules {
    direction: rtl;
    text-align: right;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.arabic-rules p {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.arabic-rules ul {
    margin-bottom: 15px;
    padding-right: 20px;
}

.arabic-rules li {
    margin-bottom: 10px;
}

.modal-price-val {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-color);
}

/* Cart Styles */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

.cart-panel {
    position: absolute;
    right: -400px;
    top: 0;
    bottom: 0;
    width: 400px;
    background-color: var(--sidebar-bg);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.cart-overlay.active .cart-panel {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: var(--radius-md);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 700;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.empty-msg {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
}

/* Transitions and Animations */
.game-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Entry Animations */
.modal-content.anim-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content.anim-zoom-in {
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-content.anim-slide-right {
    animation: slideRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content.anim-flip {
    animation: flipIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Checkout Selection Modal */
.checkout-selection-modal {
    max-width: 450px;
    padding: 40px;
    text-align: center;
}

.checkout-header h2 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.checkout-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.checkout-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
}

.tg-option {
    background: #0088cc;
    color: white;
}

.tg-option:hover {
    background: #0099e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.ig-option {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.ig-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.wa-option {
    background: #25d366;
    color: white;
}

.wa-option:hover {
    background: #22c35e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.checkout-order-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.summary-total {
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Glassmorphism for the cart panel */
.cart-panel {
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
}

.cart-item {
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateX(-5px);
}

.remove-item:hover {
    color: #ff3b30;
}

/* Scrollbar styling for premium feel */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Floating WhatsApp Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #22c35e;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i, .whatsapp-float svg {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.whatsapp-float .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 300px;
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .pc-only {
        display: none !important;
    }

    .mobile-only-btn {
        display: flex;
    }

    .main-content {
        padding: 15px;
        padding-bottom: 90px; /* Space for bottom nav */
    }

    .hero-card {
        height: 200px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 32px;
    }

    .navbar {
        margin-bottom: 25px;
        gap: 15px;
    }

    .top-nav, .user-profile {
        display: none;
    }

    .search-bar {
        width: 100%;
        flex: 1;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card {
        padding: 10px;
    }

    .card-image-wrap {
        height: 120px;
        margin-bottom: 12px;
    }

    .game-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-platform {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .game-price {
        font-size: 16px;
    }

    .btn-sm {
        padding: 5px 12px;
        font-size: 12px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-image {
        height: 200px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h2 {
        font-size: 24px;
    }

    /* Bottom Nav Styling */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background-color: rgba(28, 28, 28, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--border-color);
        z-index: 1500;
        padding: 0 10px;
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 10px;
        font-weight: 600;
        gap: 4px;
        transition: var(--transition);
        flex: 1;
    }

    .bottom-nav-item i {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-item.active {
        color: var(--accent-color);
    }

    .icon-badge-wrap {
        position: relative;
    }

    .mobile-cart-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background-color: var(--accent-color);
        color: black;
        font-size: 9px;
        font-weight: 800;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #1c1c1c;
        transform: scale(0);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mobile-cart-badge.show {
        transform: scale(1);
    }
}

.mobile-bottom-nav {
    display: none;
}

/* Loading & Empty States */
.loading-state, .empty-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    gap: 20px;
}

.luxury-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(243, 156, 18, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: luxury-spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes luxury-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-icon {
    width: 80px;
    height: 80px;
    color: var(--border-color);
    margin-bottom: 10px;
}

.empty-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.empty-description {
    max-width: 520px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.error-results .empty-icon {
    color: #ff8a65;
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Card Entrance Animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    .modal-image {
        height: 200px;
    }
    .modal-info {
        padding: 20px;
    }
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Game Card Admin Overrides */
.game-card {
    position: relative;
}

.card-select {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

.admin-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 18px;
    width: 18px;
}

.checkbox-box {
    display: block;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: var(--transition);
}

.admin-checkbox:checked ~ .checkbox-box {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-checkbox:checked ~ .checkbox-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.admin-controls {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.edit-item:hover { color: var(--accent-color); }
.delete-item:hover { color: #e74c3c; }

.icon-btn i {
    width: 18px;
    height: 18px;
}

/* Refining Pagination to match the user's latest image */
.pagination-section {
    display: flex;
    justify-content: center;
    padding: 60px 0 40px 0;
    margin-top: 20px;
}

.pagination-section[hidden] {
    display: none !important;
}

.pagination-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 12px 35px;
    background: rgba(18, 18, 18, 0.8); /* Darker like in screenshot */
    backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.pager-btn {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 25px;
    border-radius: 15px; /* Slightly more square rounded like image */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.pager-btn:hover:not(:disabled) {
    background: #111;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pager-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.page-info {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    letter-spacing: 0.5px;
}

.page-current {
    color: #3498db; /* Cyan/Blue-ish color from the image */
    font-size: 18px;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.load-more-bar {
    gap: 18px;
}

.load-more-status {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .pagination-bar {
        gap: 15px;
        padding: 8px 15px;
    }
    
    .pager-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .page-info {
        font-size: 12px;
    }

    .load-more-status {
        font-size: 11px;
    }
}
