/* ==============================
   Core Identity & Fonts
================================ */
:root {
    --primary-yellow: #f8e561;
    --dark-bg: #1A1308;
    --light-bg: #fdfdfb;
    --text-dark: #111;
    --text-muted: #555;
    --blob-radius: 400px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Readex Pro', sans-serif;
    background: var(--light-bg);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    color: var(--text-dark);
}

html {
    overflow-x: hidden;
}

/* ==============================
   Modern Navigation Bar
================================ */

.navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(26, 19, 8, 0.9);
    /* Semi-black */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 40px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: navIn 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hamburger {
    display: none;
}

.navbar:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(248, 229, 97, 0.3);
    transform: translateX(-50%) translateY(-3px);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    /* Changed from dark-bg */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    object-fit: contain !important;
    border-radius: 8px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    /* White with opacity */
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
    border: 2px solid var(--dark-bg);
}

.login-btn-nav {
    background: var(--primary-yellow);
    color: var(--dark-bg) !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: transform 0.3s;
}

.login-btn-nav:hover {
    transform: scale(1.05);
}

/* ==============================
   Homepage: Hero Section
   ============================== */
.hero-section {
    padding: 10rem 20px 6rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--dark-bg);
    animation: fadeInUp 1s ease-out;
}

.hero-section .highlight {
    color: #f8e561;
    text-shadow: 2px 2px 0px rgba(26, 19, 8, 1);
    display: inline-block;
    padding: 0 10px;
}

.hero-section p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--dark-bg);
    color: var(--primary-yellow);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: #000;
}

/* Premium Success Modal */
.success-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 10000 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

/* When active, override the display: none !important */
.success-modal.active {
    display: flex !important;
}

.s-modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 3rem 2rem !important;
    border-radius: 40px !important;
    text-align: center !important;
    max-width: 500px !important;
    width: 100% !important;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15) !important;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    position: relative !important;
    margin: auto !important;
    /* Fallback centering */
}

.s-modal-content h2 {
    margin: 0 0 1.5rem;
    color: var(--dark-bg);
    font-size: 2.2rem;
    font-weight: 800;
}

.s-modal-content p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.s-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary-modal {
    padding: 1.3rem;
    background: var(--dark-bg);
    color: var(--primary-yellow) !important;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary-modal:hover {
    transform: scale(1.02);
    background: #000;
}

.btn-secondary-modal {
    padding: 1.3rem;
    background: #f1f3f5;
    color: var(--dark-bg);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-secondary-modal:hover {
    background: #e9ecef;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   Home Page: Zigzag Design
================================ */

.main-wrapper {
    padding-top: 150px;
    position: relative;
}

.games-zigzag {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding-bottom: 10vw;
}

.game-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 500px;
    gap: 2rem;
}

/* THE BASE BLOB STYLES - DON'T DELETE THESE */
.game-blob {
    width: 100%;
    height: 550px;
    background: var(--primary-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* FIRST ROW: Blob VISUALLY LEFT (in RTL, this means higher column numbers) */
.row-left-edge .game-blob {
    grid-column: 3 / 5;
    grid-row: 1;
    /* Force on first row */
    border-radius: 0 var(--blob-radius) var(--blob-radius) 0;
    animation: slideInLeftEdge 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.row-left-edge .game-info {
    grid-column: 2 / 3;
    grid-row: 1;
    /* Force on first row */
    text-align: center;
    padding: 0 1rem;
}

.row-left-edge .opposite-dots {
    grid-column: 1 / 2;
    grid-row: 1;
    /* Force on first row */
}

/* SECOND ROW: Blob VISUALLY RIGHT (in RTL, this means lower column numbers) */
.row-right-edge .game-blob {
    grid-column: 1 / 3;
    grid-row: 1;
    /* Force on first row */
    border-radius: var(--blob-radius) 0 0 var(--blob-radius);
    animation: slideInRightEdge 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.row-right-edge .game-info {
    grid-column: 3 / 4;
    grid-row: 1;
    /* Force on first row */
    text-align: center;
    padding: 0 1rem;
}

.row-right-edge .opposite-dots {
    grid-column: 4 / 5;
    grid-row: 1;
    /* Force on first row */
}

/* Blob Hover Animation */
.game-blob:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.game-blob:hover .game-img {
    transform: scale(1.1);
}

/* Opposite Decorative Dots */
.opposite-dots {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: none;
}


.black-dot {
    position: absolute;
    background: #000 !important;
    border-radius: 50%;
    animation: pulseFloat 4s infinite ease-in-out alternate;
}

.dot-1 {
    width: 60px;
    height: 60px;
    top: 0;
    left: 0;
}

.dot-2 {
    width: 30px;
    height: 30px;
    bottom: 20px;
    right: 20px;
    animation-delay: 1s;
}

.dot-3 {
    width: 45px;
    height: 45px;
    top: 65%;
    /* Adjusted position */
    left: -20px;
    /* Moved slightly more into the margin */
    animation-delay: 2s;
}

@keyframes pulseFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, -20px) scale(1.1);
    }
}


/* Game Content */
.game-info {
    flex: 1;
    padding: 0 4vw;
    z-index: 5;
    animation: fadeIn 1.8s ease-out;
}

.game-title {
    font-size: 4rem;
    margin: 0;
    color: var(--dark-bg);
}

.game-desc {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 2rem 0;
    line-height: 1.8;
}

.game-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.view-btn {
    display: inline-block;
    padding: 1.3rem 3.5rem;
    background: var(--dark-bg);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s;
}

.view-btn:hover {
    transform: scale(1.05);
    background: #000;
}

/* Scroll Reveal Classes - Global Premium Feel */
.reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: blur(10px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Who are we Section */
.about-section {
    padding: 10vw 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: #fff;
    padding: 5rem 3rem;
    border-radius: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.about-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-yellow);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.about-label {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(248, 229, 97, 0.2);
    color: var(--dark-bg);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 2rem;
    line-height: 1.6;
    /* Increased spacing */
}

.about-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Modern Footer */
.main-footer {
    background: var(--dark-bg);
    color: white;
    padding: 6rem 20px 4rem;
    margin-top: 5vw;
    border-radius: 60px 60px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    text-align: right;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 1.1rem;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes navIn {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideInLeftEdge {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRightEdge {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Decor */
.deco-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    animation: float 10s infinite ease-in-out alternate;
}

.dot-y1 {
    width: 280px;
    height: 280px;
    top: 5%;
    left: -100px;
    background: radial-gradient(circle, var(--primary-yellow) 0%, #f1d53f 100%);
    filter: blur(25px);
}

.dot-y2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: -40px;
    background: var(--primary-yellow);
    animation-delay: 2s;
    filter: blur(15px);
}

.dot-y3 {
    width: 180px;
    height: 180px;
    bottom: 25%;
    left: 5%;
    background: var(--primary-yellow);
    opacity: 0.3;
    animation-delay: 4s;
    filter: blur(45px);
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, -50px);
    }
}

/* Checkout Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--dark-bg);
}

.modal-header p {
    color: var(--text-muted);
    margin: 10px 0 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.order-summary {
    background: #fdfdfb;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #eee;
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 1.2rem;
}

.submit-order-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-order-btn:hover {
    background: #000;
    transform: translateY(-3px);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==============================
   Login Page Styles
   ============================== */
.login-body {
    background: #fff;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

.login-image-side {
    flex: 1.2;
    background: var(--primary-yellow);
    position: relative;
    overflow: hidden;
}

.login-image-side .side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.1));
}

.login-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    background: white;
    z-index: 10;
}

.login-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.login-sub {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.form-group-login {
    margin-bottom: 2rem;
    text-align: right;
}

.login-form p {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.login-form input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fdfdfb;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.login-btn {
    width: 100%;
    padding: 1.3rem;
    background: var(--dark-bg);
    color: var(--primary-yellow);
    border: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

@media (max-width: 768px) {

    /* Stack game rows vertically on mobile */
    .game-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .row-left-edge .game-blob,
    .row-right-edge .game-blob {
        grid-column: 1 / 2;
        border-radius: var(--blob-radius);
        height: 400px;
    }

    .row-left-edge .game-info,
    .row-right-edge .game-info {
        grid-column: 1 / 2;
        padding: 2rem 1rem;
    }

    .row-left-edge .opposite-dots,
    .row-right-edge .opposite-dots {
        display: none;
        /* Hide decorative dots on mobile */
    }

    .game-info {
        padding: 0 2rem;
    }

    .login-wrapper {
        flex-direction: column;
    }

    .login-image-side {
        height: 30vh;
        min-height: 250px;
    }

    .login-card {
        padding: 4rem 2rem;
        height: 70vh;
    }

    .login-heading {
        font-size: 2.2rem;
    }
}

/* ==============================
   Dashboard Styles
   ============================== */
.dashboard-body {
    background: #f8f9fa;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--dark-bg);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.sidebar-header {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-yellow);
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -1px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    border-radius: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

/* The Animated Bar/Background */
.menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-yellow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
}

.menu-item:hover,
.menu-item.active {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

.menu-item:hover::before,
.menu-item.active::before {
    width: 100%;
    opacity: 1;
}

.menu-item .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.menu-item:hover .icon {
    transform: scale(1.2) rotate(-5deg);
}

.badge {
    background: #ff4757;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: auto;
}

.logout-btn {
    margin-top: 2rem !important;
    background: transparent !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
    color: #ff6b6b !important;
}

.logout-btn:hover {
    background: #ff6b6b !important;
    color: white !important;
    border-color: #ff6b6b !important;
}

.logout-btn::before {
    background: #ff6b6b !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.tab-pane.active {
    display: block;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Stats Styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card.highlight {
    background: var(--primary-yellow);
    border: none;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-bg);
}

/* Table Management */
.orders-table-wrapper {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: right;
    padding: 1.5rem;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid #f8f9fa;
}

.orders-table td {
    padding: 1.8rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-pending {
    background: #fff8e1;
    color: #ffa000;
}

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-shipped {
    background: #e3f2fd;
    color: #1565c0;
}

.action-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 2px dashed #ddd;
    max-width: 400px;
}

.action-card:hover {
    border-color: var(--primary-yellow);
    background: #fffdf5;
    transform: translateY(-5px);
}

.action-icon {
    font-size: 1.5rem;
    background: var(--primary-yellow);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.action-text {
    font-weight: 700;
    color: var(--dark-bg);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .dashboard-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        padding: 2rem;
    }

    /* Mobile Navbar Tweaks with Hamburger */
    .navbar {
        width: 90%;
        padding: 15px 20px;
        /* More standard padding */
        justify-content: space-between;
        position: relative;
        /* Context for absolute dropdown */
    }

    .nav-brand {
        font-size: 1.4rem;
        gap: 10px;
    }

    .nav-logo {
        width: 30px !important;
        height: 30px !important;
    }

    /* Hamburger Menu Icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 2000;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 10px;
        transition: all 0.3s;
    }

    /* Active Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Nav Links (Dropdown) */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 5%;
        /* Center it */
        width: 90%;
        /* Make box smaller width-wise */
        background: rgba(26, 19, 8, 0.95);
        backdrop-filter: blur(25px);
        padding: 15px;
        /* Reduced padding */
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        align-items: center;
        gap: 10px;
        /* Reduced gap */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        font-size: 1rem;
        /* Slightly smaller font */
        width: 100%;
        text-align: center;
        padding: 8px 0;
        /* Reduced padding */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: white !important;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Restore visibility for mobile menu items */
    .cart-link {
        font-size: 1.1rem !important;
        /* Restore text size */
        padding: 10px !important;
        background: transparent !important;
    }

    .cart-link::before {
        content: '';
        /* Remove extra icon content if added previously */
    }

    .cart-badge {
        position: relative;
        /* Inline badge for menu */
        top: 0;
        right: 0;
        margin-right: 10px;
        display: inline-flex;
    }

    .login-btn-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* FORCE RESET GRID ROWS FOR MOBILE STACKING */
    .game-row,
    .row-left-edge .game-blob,
    .row-right-edge .game-blob,
    .row-left-edge .game-info,
    .row-right-edge .game-info,
    .row-left-edge .opposite-dots,
    .row-right-edge .opposite-dots {
        grid-row: auto !important;
        /* Take full width */
    }

    /* Prevent Blob Overflow on Mobile */
    .game-blob {
        width: 280px !important;
        height: 280px !important;
        margin: 0 auto 2rem;
        /* Center it */
    }

    .game-row {
        gap: 0 rem;
        /* Reduce gap since stacking */
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        gap: 15px;
    }

    .item-img {
        width: 60px;
        height: 60px;
    }

    .item-info {
        width: 100%;
    }

    .item-qty-controls {
        width: 100%;
        justify-content: space-between;
        background: #f8f9fa;
    }

    .item-price-total {
        font-size: 1.2rem;
        align-self: flex-end;
    }

    .checkout-box {
        position: static;
        padding: 2rem;
    }

    /* Mobile Orders Table (Card View) */
    .orders-table-wrapper {
        border-radius: 15px;
        padding: 1rem;
        background: transparent;
        /* Cleaner visual on gray bg */
        box-shadow: none;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table tbody,
    .orders-table tr,
    .orders-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .orders-table tr {
        margin-bottom: 1.5rem;
        background: white;
        border-radius: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
        overflow: hidden;
    }

    .orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        /* Value aligns left */
        padding: 1rem;
        border-bottom: 1px dashed #f0f0f0;
    }

    .orders-table td:last-child {
        border-bottom: none;
        background: #fbfbfb;
        justify-content: center;
        /* Center action button */
    }

    .orders-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #888;
        font-size: 0.9rem;
        margin-left: 1rem;
        /* Gap between label and value */
    }

    /* Specific Cell Tweaks */
    .orders-table td[data-label="إجراءات"]::before {
        display: none;
        /* Hide label for actions, just center it */
    }
}