@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
    --bg-color: #0b0e14;
    --card-bg: #161b22;
    --text-primary: #ffffff;
    --accent: #0d6efd;
    --glass: rgba(255, 255, 255, 0.05);
    --navbar-bg: rgba(11, 14, 20, 0.95);
}

[data-bs-theme="light"] {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --glass: rgba(0, 0, 0, 0.05);
    --navbar-bg: rgba(248, 249, 250, 0.95);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: 0.3s ease;
}

.navbar {
    position: sticky;
    top: 0;
    /* High z-index ensures it stays above the body content (1030 is standard for Bootstrap) */
    z-index: 1030; 
    
    /* Background must be solid or a blurred translucent color to block text behind it */
    background-color: var(--navbar-bg); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    
    /* Add a subtle border to separate it from the scrolling content */
    border-bottom: 1px solid var(--glass);
    padding: 5px 0;
    transition: background-color 0.3s ease;
}

.navbar-brand img {
    width: 150px;
    height: auto;
}

#offerContainer {
    justify-content: center;
}

#offerContainer .col:not(:only-child) {
    justify-content: initial;
}


/* 6 Card Layout Logic */
.offer-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--glass);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


/* Full Page Modal Styles */
.modal-content {
    background-color: var(--bg-color);
}

.completebtn {
    font-size: clamp(1.1rem, 4vw, 1.8rem); 
}

.code-box {
    font-family: 'JetBrains Mono', monospace;
    /* Use clamp for fluid font sizing based on screen width */
    font-size: clamp(1.1rem, 4vw, 1.8rem); 
    background: var(--glass);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px dashed var(--accent);
    color: var(--accent);
    /* Reduced spacing to prevent overflow on small screens */
    letter-spacing: 2px; 
    /* Force text to stay in one line and scale down if needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
}

/* Ensure the full-page modal doesn't feel cramped on mobile */
.modal-body {
    padding: 1rem !important;
}

#timer {
  color: #a61e2b; /* WCAG-safe red */
}

@media (max-width: 576px) {
    .code-box {
        letter-spacing: 1px;
        padding: 10px 5px;
    }
    
    .gen-card-wrapper img {
        max-width: 200px !important;
    }

    .completebtn {
    font-size: 17px;
    padding: 10px !important;
    }
}

/* Background Animation */
.bg-animation {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}
.blob {
    position: absolute; width: 600px; height: 600px;
    background: var(--accent); opacity: 0.1; filter: blur(100px);
    border-radius: 50%; animation: float 20s infinite alternate;
}
@keyframes float { from { transform: translate(0,0); } to { transform: translate(100px, 50px); } }

.fw-800 { font-weight: 800; }
.status-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; padding: 6px 18px; border-radius: 50px; display: inline-block; }
.dot { height: 10px; width: 10px; background: #10b981; border-radius: 50%; display: inline-block; margin-right: 5px; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }


/* Optimization for 6-column grid images */
#offerContainer .col {
    display: flex;
}

.offer-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    padding: 8px; /* Reduced padding for more image space */
    border: 1px solid var(--glass);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.offer-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #offerContainer {
        padding: 0 10px;
    }
}


/* Animation for cards appearing */
.fade-in-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0; /* Start invisible */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Slide up slightly */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}