@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box; /* Add this to prevent padding/border overflow */
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    height: 100%;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    width: 100vw; /* Ensure full width */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.screen {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 100vw; /* Prevent overflow */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Container padding adjustments for mobile */
.gradient-bg .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
}

/* Ensure all cards don't exceed viewport */
.glass-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.glass-effect {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive image sizing */
#offer-image {
    max-width: 100%;
    height: auto;
}

/* Button responsiveness */
#offer-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Text overflow prevention */
#offer-name, #offer-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.glass-card h3 {
    color: white !important;
}

.glass-card .text-gray-800 {
    color: white !important;
}

.glass-card .text-green-600 {
    color: #10b981 !important;
}

.glass-card .text-gray-600 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.glass-card .bg-yellow-200 {
    background: rgba(34, 197, 94, 0.2) !important;
}

.glass-card .text-black {
    color: rgba(0, 0, 0, 0.9) !important;
}

.glass-card .text-gray-800 {
    color: rgba(255, 255, 255, 0.95) !important;
}

.glass-card .text-gray-600 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.glass-card .text-gray-700 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.coupon-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.coupon-card:active {
    transform: scale(0.98);
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    }
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.header-glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animated background particles */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 20%;
    animation: float 4s ease-in-out infinite;
}

.particle:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    right: 25%;
    animation: float 3s ease-in-out infinite reverse;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    bottom: 30%;
    left: 15%;
    animation: float 5s ease-in-out infinite;
}

.particle:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 40%;
    right: 40%;
    animation: float 4.5s ease-in-out infinite reverse;
}

.glass-card .bg-yellow-100 {
    background: rgba(255, 193, 7, 0.9) !important;
}

.glass-card .text-yellow-800 {
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 600;
}

/* Shadow for the rating badge (white background) */
/* More prominent shadows */
.glass-card .bg-white.bg-opacity-95 {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.glass-card .bg-green-500 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.glass-card .bg-white.bg-opacity-90 .text-gray-800 {
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 600;
}

.glass-card .bg-green-100 {
    font-size: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.glass-card .text-green-700 {
    color: #15803d !important;
}

.coupon-code-box {
    position: relative;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    max-width: 100%;
    box-sizing: border-box;
}

.coupon-code-box::before,
.coupon-code-box::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px dashed #9ca3af;
}

.coupon-code-box::before {
    left: -9px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.coupon-code-box::after {
    right: -9px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.coupon-overlay {
    background: linear-gradient(90deg, transparent 25%, #10b981 30%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.modal-coupon-box {
    border: 2.5px dashed #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.blurred-text {
    filter: blur(2px);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.spinner-container {
    width: 50px;
    height: 50px;
}

.spinner-enhanced {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.progress-bar-animated {
    position: relative;
    overflow: hidden;
}

.progress-bar-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

#loading-text {
    min-height: 1.5rem;
}

.verification-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #10b981;
    border-right: 4px solid #34d399;
    border-radius: 50%;
    animation: verification-spin 2s linear infinite, verification-glow 3s ease-in-out infinite alternate;
}

@keyframes verification-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes verification-glow {
    from {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 0 40px rgba(16, 185, 129, 0.1);
    }
    to {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.2);
    }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52, #ff6b6b);
    background-size: 200% 100%;
    animation: gradient-slide 3s ease-in-out infinite, slide-down 0.8s ease-out;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    max-width: 100vw;
    box-sizing: border-box;
}

.notification-bar .notification-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap; /* Allow text to wrap on small screens */
}

.notification-bar .pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slide-down {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Media queries for better mobile responsiveness */
@media (max-width: 768px) {
    .gradient-bg .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .glass-card {
        margin-left: 0;
        margin-right: 0;
    }
    
    .notification-bar .notification-text {
        font-size: 12px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .gradient-bg .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}