body {
    background-color: #111;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #0a0a0a;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #b30000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.logo-img {
    height: 70px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.login-btn,
.logout-btn {
    background: #5865F2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.login-btn:hover {
    background: #4752C4;
}

.logout-btn {
    background: #b30000;
    padding: 8px 16px;
}

.logout-btn:hover {
    background: #ff0000;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Virtual Gift Card Container - 3D Perspective */
.card-image-container {
    width: 100%;
    aspect-ratio: 1.586;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
    background: #000;
}

.card-image-container:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
    /* 3D Tilt */
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 60, 0, 0.5);
    z-index: 10;
}

/* Background Image - The User's Fiery Texture */
.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    /* Slight zoom to prevent edge bleeding */
}

/* Glossy Sheen Animation */
.card-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 60%,
            transparent 80%);
    transform: skewX(-25deg);
    z-index: 5;
    animation: gloss-sweep 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes gloss-sweep {

    0%,
    40% {
        left: -150%;
    }

    /* Longer Pause */
    60%,
    100% {
        left: 150%;
    }

    /* Sweep */
}

/* Static Overlay for Readability */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: span;
    align-items: center;
    /* Center everything */
    text-align: center;
}

/* Typography */
.card-brand {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: auto;
    /* Push to top */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 4;
}

.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
    margin-bottom: auto;
    /* Center vertically with margin adjustments */
    transform: translateY(20px);
}

.card-type-label {
    font-family: 'Segoe UI', sans-serif;
    /* Modern Sans */
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.price-tag {
    font-family: 'Segoe UI', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    margin: 0;
    letter-spacing: -2px;
    line-height: 1;
}

/* Card Body & Button */
.card-body {
    padding: 0 15px 15px 15px;
    background: transparent;
    z-index: 5;
    position: relative;
}

.stock-status {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 10px;
}

.btn-buy {
    background: linear-gradient(90deg, #b30000, #e60000);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    background: linear-gradient(90deg, #cc0000, #ff0000);
}

.custom-input {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 2px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.custom-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 40px;
    margin-top: 50px;
    color: #555;
    font-size: 14px;
}