@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================
NEW "GAMIFIED" THEME
========================================= */
:root {
    --primary-green: #00C853;
    --primary-green-dark: #00A946;
    --accent-yellow: #FFD600;
    --text-dark: #1A202C;
    --text-light: #E2E8F0;
    --bg-light: #F7F9FC;
    --bg-dark: #2D3748;
    --border-color: #E2E8F0;
}

body {
    background-color: var(--bg-light);
    /* Subtle background texture */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E2E8F0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}
html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

/* Helper class for SVG icons */
.svg-icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: middle;
}

/* --- GAMIFIED CARD STYLES --- */
.card-base {
    background-color: white;
    border-radius: 1.5rem;
    /* More rounded */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card-base:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-texture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,...');
    /* Add a subtle texture SVG here if desired */
    opacity: 0.03;
    pointer-events: none;
}

/* Special Glassmorphism Card for Trending Item */
.card-glassmorphism {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- "EASY STEPS" SECTION RE-DESIGN --- */
.easy-steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content vertically in each step card */
    gap: 1rem;
    max-width: 600px;
    /* Constrain width for centering */
    margin: 0 auto;
    /* Center the container itself */
}

.step-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3.2rem;
    /* Aligns with center of number circle */
    top: 5rem;
    height: calc(100% - 3.5rem);
    width: 2px;
    background-color: #e2e8f0;
    border: 1px dashed #cbd5e1;
    z-index: 1;
}

/* --- "WHAT GAMERS ARE SAYING" RE-DESIGN --- */
.reviews-container {
    max-width: 700px;
    /* Constrain width for centering */
    margin: 0 auto;
    /* Center the container itself */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background-color: #F7FAFC;
    border-left: 4px solid var(--primary-green);
}

.review-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
}

/* --- UPDATED FOOTER STYLES --- */
.site-footer {
    background-color: #FFFFFF; /* Changed to a clean white background */
    color: #4A5568;            /* Changed to a dark gray for text */
    padding: 3rem 1rem;
    border-top: 1px solid #E2E8F0; /* Added top border for clean separation */
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1A202C; /* Darker color for titles */
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.site-footer a {
    color: #4A5568; /* Dark gray for links */
    transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
    color: #00C853; /* Use your primary green for link hover */
}

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280; /* Medium gray for copyright text */
}

/* --- PRESERVED & ADAPTED STYLES --- */
.coupon-card {
    transition: all 0.3s ease;
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bg-primary {
    background-color: var(--primary-green);
}

.text-primary {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

/* =========================================
EXISTING STYLES (PRESERVED)
=========================================
*/

/* Custom animations and styles */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.coupon-card {
    animation: fadeIn 0.6s ease-out;
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(0, 200, 83, 0.1);
}

.border-primary.border-opacity-20 {
    border-color: rgba(0, 200, 83, 0.2);
}


/* Highlighted coupons left styling */
.coupon-card .bg-primary.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 200, 83, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 200, 83, 0.2);
}

/* Button styling improvements */
.coupon-card button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.coupon-card button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(0, 200, 83, 0.3);
}

/* Bottom stats styling */
.coupon-card .text-gray-500 {
    font-size: 0.875rem;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-no-expiration::before {
    background-color: #facc15;
}

.status-uses-today::before {
    background-color: #f59e0b;
}

/* Modal and other existing styles */
.modal-content {
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    animation: spin 1s linear infinite;
}

.loading-message {
    animation: slideIn 0.5s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .coupon-card {
        margin-bottom: 1rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

/* Loading states */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Success animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.checkmark {
    animation: checkmark 0.6s ease-out;
}

/* Code blur effect */
.code-blur {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.code-reveal {
    filter: blur(0px);
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Coupon Count Animations */
.coupon-count-number {
    transition: all 0.3s ease;
    display: inline-block;
}

.count-decreasing {
    transform: scale(1.2);
    color: #ef4444;
    font-weight: 700;
}

.count-decreased {
    transform: scale(0.9);
    color: var(--primary);
    animation: countPulse 0.6s ease-out;
}

.count-urgent {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    border-color: #ef4444 !important;
    animation: urgentPulse 2s infinite;
}

.count-urgent .coupon-count-number {
    color: #dc2626 !important;
    font-weight: 700;
}

@keyframes countPulse {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes urgentPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
        transform: scale(1.02);
    }
}

/* Modal count styling */
.modal-count-left {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Social Proof Notifications */
.social-proof-notification {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-proof-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.social-proof-notification:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    #socialProofContainer {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .social-proof-notification {
        max-width: none;
        transform: translateY(100%);
    }

    .social-proof-notification.show {
        transform: translateY(0);
    }

    .social-proof-notification:hover {
        transform: translateY(0) scale(1.01);
    }
}

/* Notification animations */
@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.notification-icon-pulse {
    animation: notificationPulse 2s infinite;
}

/* Notification entrance effects */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-up {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category Filter Buttons */
.category-section {
    margin-bottom: 2rem;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    background: white;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-btn:not(.active) {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.category-btn:not(.active):hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
    transform: translateY(-1px);
}

.category-btn.hot-category:not(.active) {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: var(--accent);
    color: #92400e;
    animation: hotPulse 2s infinite;
}

.category-btn.hot-category:not(.active):hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    transform: translateY(-2px) scale(1.02);
}

.hot-indicator {
    font-size: 0.75rem;
    animation: hotFlicker 1.5s infinite;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-btn:not(.active) .category-count {
    background: #f3f4f6;
    color: #6b7280;
}

.category-btn.hot-category:not(.active) .category-count {
    background: rgba(146, 64, 14, 0.2);
    color: #92400e;
}

/* Mobile: Hide non-hot categories */
@media (max-width: 768px) {
    .category-btn:not(.hot-category):not([data-category="all"]) {
        display: none;
    }
}

@keyframes hotPulse {

    0%,
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 199, 0, 0.4);
    }

    50% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 199, 0, 0.2);
    }
}

@keyframes hotFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Coupon Grid */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 600px;
    align-content: start;
}


/* Pagination Styles */
.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 44px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-nav {
    font-size: 0.875rem;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    transform: translateY(-1px);
}

.page-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.2);
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smooth transitions for grid changes */
#couponGrid {
    transition: opacity 0.3s ease;
}

#couponGrid.loading {
    opacity: 0.6;
}

/* Results count animation */
#resultsCount {
    transition: all 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .category-grid .category-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    #pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination-btn {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    .page-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8125rem;
    }

    .coupon-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .category-grid {
        gap: 0.5rem;
    }

    .category-btn {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .coupon-card {
        margin-bottom: 1rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}



/* For very small screens, you can still use single column if needed */
@media (max-width: 400px) {
    .coupon-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Uses Today Increase Animations */
.uses-increasing {
    animation: usesIncreasing 0.3s ease-out;
}

.uses-increased {
    animation: usesIncreased 0.6s ease-out;
}

@keyframes usesIncreasing {
    0% {
        transform: scale(1);
        color: inherit;
    }

    50% {
        transform: scale(1.1);
        color: var(--primary);
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

@keyframes usesIncreased {
    0% {
        background-color: transparent;
        color: inherit;
    }

    20% {
        background-color: #d1fae5;
        color: #065f46;
    }

    100% {
        background-color: transparent;
        color: inherit;
    }
}


/* validation css */
.validation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.validation-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: scale(0);
    opacity: 0;
}

.validation-circle.animate-circle {
    animation: circleAppear 0.8s ease-out forwards;
}

.validation-checkmark {
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
}

.validation-checkmark.animate-checkmark {
    animation: checkmarkAppear 0.6s ease-out forwards;
}

@keyframes circleAppear {
    0% {
        transform: scale(0);
        opacity: 0;
        border-color: #e5e7eb;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        border-color: var(--primary);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        border-color: var(--primary);
    }
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}


/* MOBILE GRID FIX */
/* Base coupon grid for desktop */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 600px;
    align-content: start;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {

    /* Container adjustments */
    .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .px-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Fixed mobile grid */
    .coupon-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        align-items: stretch !important;
        justify-items: stretch !important;
    }

    /* Fixed coupon cards */
    .coupon-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    }

    /* Card header (gradient section) */
    .coupon-card>div:first-child {
        height: 80px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    /* Card header icon */
    .coupon-card>div:first-child>div:first-child {
        font-size: 2.5rem !important;
        opacity: 0.8 !important;
    }

    /* Card header rating */
    .coupon-card>div:first-child>div.absolute {
        position: absolute !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
        /* Adjusted from left-3 for better spacing */
        right: auto !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 9999px !important;
        color: white !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
    }

    /* Card content */
    .coupon-card>div:last-child {
        padding: 0.75rem !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* Card title */
    .coupon-card h3 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
    }

    /* Card category */
    .coupon-card p.text-gray-500 {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        color: #6b7280 !important;
    }

    /* Main offer section */
    .coupon-card .text-center {
        margin-bottom: 0.75rem !important;
    }

    /* Offer title */
    .coupon-card .text-primary {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        font-weight: 600 !important;
    }

    /* Offer description */
    .coupon-card .text-gray-700 {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* Coupons left container */
    .coupon-card .coupon-count-container {
        margin-bottom: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
        border-radius: 9999px !important;
    }

    .coupon-card .coupon-count-container span {
        font-size: 0.75rem !important;
        font-weight: 500 !important;
    }

    /* Get Code button */
    .coupon-card button {
        font-size: 0.8rem !important;
        padding: 0.625rem 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 0.5rem !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
    }

    .coupon-card button:hover {
        transform: scale(1.02) !important;
    }

    /* Bottom stats */
    .coupon-card .flex.justify-between {
        font-size: 0.7rem !important;
        color: #6b7280 !important;
        margin-top: auto !important;
    }

    .coupon-card .flex.justify-between span {
        display: flex !important;
        align-items: center !important;
    }

    .coupon-card .flex.justify-between .w-2 {
        width: 6px !important;
        height: 6px !important;
        margin-right: 0.375rem !important;
    }

    /* Category buttons mobile */
    .category-grid {
        gap: 0.375rem !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .category-btn {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
        white-space: nowrap !important;
    }

    /* Hide non-essential categories on mobile */
    .category-btn:not(.hot-category):not([data-category="all"]) {
        display: none !important;
    }

    /* Search bar mobile */
    #searchInput {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* Pagination mobile */
    .pagination-container {
        flex-wrap: wrap !important;
        gap: 0.375rem !important;
    }

    .pagination-btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .page-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.75rem !important;
    }

    /* Modal mobile */
    .modal-content {
        margin: 0.75rem !important;
        max-width: calc(100vw - 1.5rem) !important;
        border-radius: 1rem !important;
    }

    /* Social proof notifications mobile */
    #socialProofContainer {
        bottom: 0.75rem !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
    }

    .social-proof-notification {
        max-width: none !important;
        transform: translateY(100%) !important;
    }

    .social-proof-notification.show {
        transform: translateY(0) !important;
    }
}

/* Very small screens (phones in portrait) */
@media screen and (max-width: 360px) {
    .coupon-grid {
        gap: 0.375rem !important;
    }

    .coupon-card {
        min-height: 380px !important;
    }

    .coupon-card>div:last-child {
        padding: 0.5rem !important;
    }

    .coupon-card h3 {
        font-size: 0.85rem !important;
    }

    .coupon-card button {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }
}

/* Landscape phones */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .coupon-card {
        min-height: 320px !important;
    }

    .coupon-card>div:first-child {
        height: 60px !important;
    }

    .coupon-card>div:first-child>div:first-child {
        font-size: 2rem !important;
    }
}

/* New Urgency Banner Styles */
.urgency-banner {
    background-color: #fef2f2;
    /* Light red background */
    border-left: 4px solid #ef4444;
    /* Red left border */
    color: #b91c1c;
    /* Darker red text */
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: urgentPulse 2s infinite;
    /* Apply the pulsing animation */
}

.urgency-banner .warning-icon {
    font-size: 1.2rem;
    animation: bounce 1s infinite;
    /* Little bounce for the icon */
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes urgentPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
        transform: scale(1.01);
    }
}

/* Animation for new floating hero icons */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-icon {
    position: absolute;
    opacity: 0;
    animation: float 5s ease-in-out infinite, fadeIn 1s ease-out forwards;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Specific colors for each icon, if desired, or let them inherit color from parent */
.hero-icon.icon-1 svg {
    color: #FFEB3B;
}

/* Yellow */
.hero-icon.icon-2 svg {
    color: #8BC34A;
}

/* Light Green */
.hero-icon.icon-3 svg {
    color: #2196F3;
}

/* Blue */
.hero-icon.icon-4 svg {
    color: #FF9800;
}

/* Orange */

/* Gradient text for titles */
.gradient-text {
    background-image: linear-gradient(90deg, #FFD700, #FF6F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* You can define other gradients too if needed */
.gradient-text-green {
    background-image: linear-gradient(45deg, #a8e063, #56ab2f);
    /* New vibrant green gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* New Dark Header Style */
.dark-header {
    background-color: #1A202C;
    /* A dark charcoal color */
    background-image: radial-gradient(circle at top left, rgba(56, 161, 105, 0.1), transparent 40%),
        radial-gradient(circle at bottom right, rgba(49, 130, 206, 0.1), transparent 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 80vh;
    /* Make header taller */
}

/* Logo Styling */
.header-logo {
    max-width: 180px;
    /* Adjust size as needed */
    margin-bottom: 1.5rem;
}

/* New Search Bar Container */
/* REPLACE your .search-wrapper styles with this block */
.search-wrapper {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 1.25rem;
    /* More rounded */
    border: 2px solid transparent;
    /* Transparent border to prevent size shift on focus */
    padding: 0.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.search-wrapper:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.3);
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 0.5rem;
    color: var(--text-dark);
    /* Dark text for light background */
    font-size: 1rem;
}

.search-wrapper input::placeholder {
    color: #A0AEC0;
}

.search-wrapper button {
    background-color: var(--primary-green);
    border: none;
    border-radius: 0.85rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-wrapper button:hover {
    background-color: var(--primary-green-dark);
}

@media (max-width: 768px) {

    /* Hide the problematic star icon on mobile */
    .hero-icon:nth-child(2) {
        display: none !important;
    }

    /* Reposition remaining icons for mobile */
    .hero-icon:first-child {
        top: 5% !important;
        left: 5% !important;
    }

    .hero-icon:last-child {
        bottom: 45% !important;
        /* Changed from 25% */
        left: 10% !important;
    }
}

.live-pulse {
    position: relative;
    animation: livePulse 2s ease-in-out infinite;
    padding-left: 16px;
    /* Add space for the dot */
}

.live-pulse::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}


.live-indicator {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Improved Game Card Styles */
.game-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    border-color: #fed7aa !important;
    box-shadow: 0 25px 50px -12px rgba(255, 107, 53, 0.25) !important;
}

/* Game icon animations */
.game-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

.game-card:hover .game-icon {
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
    transform: rotate(12deg) scale(1.1);
}

/* HOT tag improvements */
.hot-tag.animate-pulse {
    animation: hotTagPulse 2s ease-in-out infinite;
}

@keyframes hotTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    }
}

/* Mobile responsive updates for game cards */
@media (max-width: 768px) {
    #hotCategories {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .game-card {
        padding: 16px 12px !important;
    }
    
    .game-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 8px !important;
    }
    
    .game-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .game-card h3 {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .hot-tag {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

/* All Categories Grid - 3 columns consistently */
#allCategories .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Enhanced Game Card Styling */
.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

/* Hover effects for all game cards */
.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Hot category specific hover effect */
.game-card:hover.border-orange-200 {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 20px 25px -5px rgba(255, 107, 53, 0.15), 0 8px 10px -6px rgba(255, 107, 53, 0.1);
}

/* Game icon styling - consistent for all cards */
.game-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Hot category game icon hover effect */
.game-card:hover .game-icon {
    transform: rotate(12deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Hot category specific icon hover */
.game-card.border-orange-200:hover .game-icon,
.game-card:hover.border-orange-200 .game-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Game icon SVG */
.game-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Game card title */
.game-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.3s ease;
    text-align: center;
}

/* Hot category title hover */
.game-card:hover h3 {
    color: #22c55e;
}

.game-card.border-orange-200:hover h3,
.game-card:hover.border-orange-200 h3 {
    color: #ff6b35;
}

/* Code count badge */
.game-card .bg-gray-100 {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
}



@keyframes hotTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .game-card {
        padding: 0.5rem;
        min-height: 100px;
    }
    
    .game-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.375rem;
    }
    
    .game-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    .game-card h3 {
        font-size: 0.6875rem;
    }
}

/* Hot Categories Grid - 3 columns on desktop, 3 on mobile */
#hotCategories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* All Categories Grid - 3 columns consistently */
#allCategories .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Enhanced Game Card Styling */
.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

/* Hover effects for all game cards */
.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Hot category specific hover effect */
.game-card:hover.border-orange-200 {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 20px 25px -5px rgba(255, 107, 53, 0.15), 0 8px 10px -6px rgba(255, 107, 53, 0.1);
}

/* Game icon styling - consistent for all cards */
.game-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Hot category game icon hover effect */
.game-card:hover .game-icon {
    transform: rotate(12deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Hot category specific icon hover */
.game-card.border-orange-200:hover .game-icon,
.game-card:hover.border-orange-200 .game-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Game icon SVG */
.game-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Game card title */
.game-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.3s ease;
    text-align: center;
}

/* Hot category title hover */
.game-card:hover h3 {
    color: #22c55e;
}

.game-card.border-orange-200:hover h3,
.game-card:hover.border-orange-200 h3 {
    color: #ff6b35;
}

/* Code count badge */
.game-card .bg-gray-100 {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hot tag styling */
/* Hot tag styling */
.hot-tag {
    position: absolute;
    top: 0.5rem;  /* Changed from a negative value */
    right: 0.5rem; /* Changed from a negative value */
    background: linear-gradient(135deg, #ff6b35, #ef4444);
    color: white;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    animation: hotTagPulse 2s ease-in-out infinite;
}

@keyframes hotTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    }
}

/* UPDATED: Mobile responsive for ALL game cards (3 columns layout) */
@media (max-width: 768px) {
    /* Keep 3 columns on mobile for both hot and regular categories */
    #hotCategories {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    #allCategories .grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    /* Adjust card sizing for mobile - apply to all cards */
    .game-card,
    #allCategories .bg-white {
        padding: 0.75rem !important;
        min-height: 120px !important;
        border-radius: 1rem !important;
    }
    
    /* Smaller game icons on mobile - apply to all */
    .game-icon,
    #allCategories .text-2xl {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 0.75rem !important;
        font-size: 1.25rem !important;
    }
    
    /* Smaller text on mobile - apply to all cards */
    .game-card h3,
    #allCategories h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0.375rem !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
    }
    
    /* Count badges for all cards */
    .game-card .bg-gray-100,
    #allCategories .text-xs {
        font-size: 0.6875rem !important;
        padding: 0.125rem 0.5rem !important;
        background-color: #f3f4f6 !important;
        color: #6b7280 !important;
        border-radius: 9999px !important;
        font-weight: 500 !important;
    }
    
    /* Hot tag mobile sizing - properly positioned inside card */
    .hot-tag {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.375rem !important;
        border-radius: 0.5rem !important;
        top: 0.375rem !important;
        right: 0.375rem !important;
    }
    
    /* Better mobile styling for count badges */
    .game-card .bg-gray-100,
    #allCategories .text-xs,
    #allCategories .bg-white .text-gray-500 {
        font-size: 0.6875rem !important;
        padding: 0.125rem 0.5rem !important;
        margin-top: 0.375rem !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .game-card {
        padding: 0.5rem;
        min-height: 100px;
    }
    
    .game-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.375rem;
    }
    
    .game-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    .game-card h3 {
        font-size: 0.6875rem;
    }
}

/* "Expires Soon" Indicator (Red Version) */
.expires-soon-indicator {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Red gradient */
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); /* Red shadow */
}

.expires-soon-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite; /* Reusing the existing animation */
}

/* asfasf */
/* --- New Offer Card Component --- */
.offer-card {
    background-color: #ffffff;
    border-radius: 1.25rem; /* 20px */
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #d1fae5;
}

.offer-card__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1; /* This pushes the button to the bottom */
}

.offer-card__icon {
    width: 4rem;
    height: 4rem;
    background-color: #f3f4f6;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

.offer-card__icon span {
    font-size: 2.25rem;
}

.offer-card__details {
    display: flex;
    flex-direction: column;
}

.offer-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.offer-card__rating {
    font-size: 0.875rem;
    color: #a16207; /* A richer yellow */
}

.offer-card__cta {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #16a34a; /* A solid, rich green */
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 0;
    border-radius: 0.75rem;
    margin-top: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.offer-card__cta:hover {
    background-color: #15803d; /* A darker green for hover */
}

/* locker */
/* --- New Verification Modal Styles --- */
#couponModal {
    --modal-bg: rgba(248, 250, 252, 0.85); /* Frosted glass effect */
    --primary-color: #16a34a; /* Rich green */
    --primary-color-light: #dcfce7; /* Light green for backgrounds */
    --text-dark: #1f2937;
    --text-light: #4b5563;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari browser support */

    /* Recommended: A semi-transparent background enhances the blur effect */
    background-color: rgba(247, 249, 252, 0.5); 
}

/* Modal fade-in/out */
#couponModal.flex {
    opacity: 1;
}
#couponModal.hidden {
    opacity: 0;
    pointer-events: none;
}
/* --- UPDATED MODAL STYLES (Replaces previous styling for this element) --- */
#couponModal > div {
    background-color: #FFFFFF; /* Clean white background */
    border: 1px solid #E2E8F0; /* Subtle border like your cards */
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1); /* Soft, professional shadow */
    border-radius: 1.5rem; /* Consistent rounded corners */
    backdrop-filter: none; /* Remove the old glass effect */
    -webkit-backdrop-filter: none;
    
    /* Keep the entrance animation */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
}

/* This ensures the modal scales in correctly when shown */
#couponModal.flex > div {
    transform: scale(1);
}
/* Loading Spinner Fix */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Validation Checkmark Fix */
.validation-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.validation-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: scale(0);
    opacity: 0;
    border: none;
    animation: circleAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.validation-checkmark {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    animation: checkmarkAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes circleAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success State Fix */
.success-checkmark {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}
.success-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.code-box {
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.code-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}
.countdown-timer {
    font-weight: 700;
    color: #ef4444;
    background-color: #fee2e2;
    padding: 0.125rem 0.5rem;
    border-radius: 0.5rem;
}
.action-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 1rem 0;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}
.action-button:hover {
    background-color: #15803d;
    transform: scale(1.02);
}

/* --- Simple Modal Entrance Animation --- */
@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-enter-animation {
    animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- Improved Modal Styles & Animation --- */

/* Entrance Animation */
@keyframes modal-fade-in-scale-up {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modal-entrance {
    animation: modal-fade-in-scale-up 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stat Boxes */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
}
.modal-stat-box {
    padding: 0.75rem;
    border-radius: 0.75rem;
}
.modal-stat-box__value {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.modal-stat-box__label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}
.modal-stat-box svg {
    width: 1.1em;
    height: 1.1em;
}

/* Stat Box Colors */
.modal-stat-box--rating { background-color: #fefce8; color: #a16207; } /* Yellow */
.modal-stat-box--used { background-color: #eff6ff; color: #1d4ed8; } /* Blue */
.modal-stat-box--left { background-color: #fef2f2; color: #b91c1c; } /* Red */

/* Loading and Validation Colors */
.loading-spinner {
    border-top-color: #16a34a !important; /* Green */
}
.validation-circle {
    background-color: #dcfce7 !important; /* Light Green */
}
.validation-checkmark {
    color: #16a34a !important; /* Green */
}

.highlight-claimed {
    background-color: rgb(16, 185, 129) !important; /* Emerald-500 */
    color: white !important;
    animation: subtle-pulse 3s ease-in-out infinite;
}
@keyframes subtle-pulse {
    0%, 100% {
        background-color: rgb(16, 185, 129);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
    50% {
        background-color: rgb(5, 150, 105);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
    }
}

/* toast */
/* Updated Toast Notification */
#socialProofContainer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 9999;
    pointer-events: none;
}

.social-proof-notification {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    border-radius: 1.25rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.4), 0 8px 10px -6px rgba(22, 163, 74, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 340px;
    margin: 0 auto;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.social-proof-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.social-proof-notification:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(22, 163, 74, 0.5);
}

.notification-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: white;
}

.notification-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    #socialProofContainer {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .social-proof-notification {
        max-width: none;
        transform: translateY(100%);
    }
    
    .social-proof-notification.show {
        transform: translateY(0);
    }
    
    .social-proof-notification:hover {
        transform: translateY(0) scale(1.01);
    }
}

/*  */
/* Enhanced header animations and gradients */
.hero-gradient-enhanced {
    background: linear-gradient(135deg, 
        #10b981 0%, 
        #059669 20%, 
        #047857 40%, 
        #065f46 60%, 
        #064e3b 80%, 
        #047857 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

.hero-gradient-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
                linear-gradient(45deg, rgba(16, 185, 129, 0.05), transparent);
    animation: overlayShift 12s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 100% 0%; }
}

@keyframes overlayShift {
    0%, 100% { opacity: 0.8; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(1deg); }
}

/* Enhanced floating hero icons */
.hero-icon {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: floatEnhanced 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

@keyframes floatEnhanced {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-8px) rotate(2deg) scale(1.05); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-12px) rotate(-1deg) scale(1.1); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-6px) rotate(1deg) scale(1.05); 
        opacity: 1;
    }
}

/* Professional gradient text effects */
.gradient-title {
    background: linear-gradient(135deg, 
        #ffffff 0%,
        #f0fdfa 25%, 
        #ccfbf1 50%, 
        #99f6e4 75%, 
        #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientShift 6s ease infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gradient-subtitle {
    background: linear-gradient(135deg, 
        #e6fffa 0%, 
        #b2f5ea 30%, 
        #81e6d9 60%, 
        #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientShift 8s ease infinite reverse;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

@keyframes textGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced button with premium effects */
.premium-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 
                0 4px 10px rgba(34, 197, 94, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.premium-button:hover::before {
    left: 100%;
}

.premium-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 
                0 8px 15px rgba(34, 197, 94, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Floating particles animation */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(2) { animation-delay: -2s; left: 20%; }
.particle:nth-child(3) { animation-delay: -4s; left: 40%; }
.particle:nth-child(4) { animation-delay: -6s; left: 60%; }
.particle:nth-child(5) { animation-delay: -1s; left: 80%; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* Text entrance animations */
.text-entrance-1 {
    animation: slideInDown 1s ease-out;
}

.text-entrance-2 {
    animation: slideInUp 1s ease-out 0.3s both;
}

.text-entrance-3 {
    animation: fadeInScale 1s ease-out 0.6s both;
}

.button-entrance {
    animation: bounceIn 1s ease-out 0.9s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*  */

/* Two-column layout improvements for offer cards */
@media (max-width: 768px) {
    .offer-card {
        padding: 0.75rem !important;
        min-height: 140px !important;
    }
    
    .offer-card__content {
        gap: 0.75rem !important;
    }
    
    .offer-card__icon {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .offer-card__icon span {
        font-size: 1.75rem !important;
    }
    
    .offer-card__title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .offer-card__rating {
        font-size: 0.75rem !important;
    }
    
    .offer-card__cta {
        font-size: 0.875rem !important;
        padding: 0.625rem 0 !important;
        margin-top: 0.75rem !important;
    }
}

/* Very small screens - even more compact */
@media (max-width: 480px) {
    .offer-card {
        padding: 0.5rem !important;
        min-height: 120px !important;
    }
    
    .offer-card__content {
        gap: 0.5rem !important;
    }
    
    .offer-card__icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .offer-card__icon span {
        font-size: 1.5rem !important;
    }
    
    .offer-card__title {
        font-size: 0.8125rem !important;
        line-height: 1.2 !important;
    }
    
    .offer-card__rating {
        font-size: 0.6875rem !important;
    }
    
    .offer-card__cta {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0 !important;
    }
}