:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --bg-dark: #0b0914;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }
body { background: var(--bg-dark); color: #f1f2f6; min-height: 100vh; }

/* Simple Navbar Styling with Top-Left Logo Alignment */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(11, 9, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Container Framework */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

/* Authentication Center */
.auth-container { max-width: 380px; margin: 10vh auto; text-align: center; }
.auth-container h2 { margin-bottom: 5px; font-weight: 600; }

input, select {
    width: 100%; padding: 10px 14px; margin: 8px 0;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    color: white; border-radius: 6px; transition: 0.2s ease;
    font-size: 0.95rem;
}
input:focus, select:focus { outline: none; border-color: var(--primary); }

button {
    width: 100%; padding: 11px; background: var(--primary);
    border: none; color: white; font-weight: 600; border-radius: 6px; cursor: pointer;
    transition: background 0.2s ease; font-size: 0.95rem;
}
button:hover { background: #5b4cc4; }

#dashboard { display: none; }

/* Clean Minimal User Panel */
.user-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.user-badge { font-size: 1.1rem; color: var(--secondary); font-weight: 600; background: rgba(108, 92, 231, 0.1); padding: 6px 14px; border-radius: 30px; border: 1px solid rgba(108, 92, 231, 0.2); }

.section-title { margin: 2.5rem 0 1rem 0; font-size: 1.3rem; font-weight: 600; color: #fff; }

/* Streamlined Store Grid */
.grid-store {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}

.item-card {
    display: flex; flex-direction: column; justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}
.item-card h4 { font-size: 1.1rem; margin-bottom: 6px; color: #fff; }

.points-tag {
    color: var(--secondary); font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 12px;
}

/* 🖼️ Actionable View Image Button */
.view-img-link {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 8px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: #fff;
    text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: 6px; transition: all 0.2s;
}
.view-img-link:hover:not(.disabled-link) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.2); }
.disabled-link { color: #444; border-color: transparent; cursor: not-allowed; }

/* Tabular Ledger */
.table-container { overflow-x: auto; width: 100%; padding: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 650px; font-size: 0.9rem; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { background: rgba(255, 255, 255, 0.02); color: #fff; font-weight: 600; }
tr:hover { background: rgba(255, 255, 255, 0.01); }
.status-badge { background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); color: #2ecc71; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; }


/* ==========================================================================
   🎬 CINEMATIC PARALLAX & ENTRANCE ANIMATIONS
   ========================================================================== */

/* The Keyframe instructions for the spatial upward glide slide */
@keyframes parallaxGlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Base structural layout modifications for items */
.item-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    
    /* Animation Assignment properties */
    animation: parallaxGlideUp 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    will-change: transform, opacity;
}

/* Staggered Spatial Parallax Depth:
   By assigning escalating step delays, items load on screen sequentially 
   creating a fluid layered motion wave effect. */
.item-card:nth-child(1)  { animation-delay: 0.05s; }
.item-card:nth-child(2)  { animation-delay: 0.12s; }
.item-card:nth-child(3)  { animation-delay: 0.19s; }
.item-card:nth-child(4)  { animation-delay: 0.26s; }
.item-card:nth-child(5)  { animation-delay: 0.33s; }
.item-card:nth-child(6)  { animation-delay: 0.40s; }
.item-card:nth-child(7)  { animation-delay: 0.47s; }
.item-card:nth-child(8)  { animation-delay: 0.54s; }
.item-card:nth-child(9)  { animation-delay: 0.61s; }
.item-card:nth-child(10) { animation-delay: 0.68s; }

/* Interactive Hover Response: Micro-parallax shift */
.item-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.4s ease;
}

/* History table container structural appearance animation */
.table-container {
    overflow-x: auto;
    width: 100%;
    padding: 0;
    animation: parallaxGlideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    animation-delay: 0.3s;
}