* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.4;
}

.app-container {
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #5f2c82 0%, #49a09d 100%);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phonepe-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phonepe-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.phonepe-logo span {
    font-size: 20px;
    font-weight: 600;
}

.rewards-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.help-icon {
    font-size: 18px;
    opacity: 0.8;
}

/* Main Content */
.app-content {
    padding: 20px;
    padding-bottom: 100px;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
}

.balance-toggle {
    font-size: 16px;
    cursor: pointer;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.balance-subtext {
    font-size: 12px;
    opacity: 0.8;
}

/* Rewards Section */
.rewards-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.section-header h2 i {
    color: #5f2c82;
}

.offer-timer {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-timer.expiring {
    animation: flashTimer 1s infinite;
}

@keyframes flashTimer {
    0%, 100% { background: #ff6b6b; }
    50% { background: #ff3333; }
}

/* Scratch Card */
.scratch-card-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.card-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: #ffd700;
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: badgePulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    }
}

.scratch-card {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #5f2c82, #49a09d) padding-box,
                linear-gradient(45deg, #5f2c82, #49a09d, #ffd700, #5f2c82) border-box;
}

.scratch-card canvas {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 20px;
}

.scratch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    border-radius: 20px;
    /* Removed shadow and border effects */
    animation: canvasShake 3s ease-in-out infinite;
}

/* Add shaky animation for scratch canvas */
@keyframes canvasShake {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-2px) translateY(-1px);
    }
    30% {
        transform: translateX(2px) translateY(1px);
    }
    40% {
        transform: translateX(-1px) translateY(-1px);
    }
    60% {
        transform: translateX(1px) translateY(1px);
    }
    70% {
        transform: translateX(-1px) translateY(-1px);
    }
    90% {
        transform: translateX(1px) translateY(-1px);
    }
}

/* Stop shaking when scratching starts */
#scratchCanvas.scratching {
    animation: none;
}

.prize-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.prize-header {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-header i {
    color: #ffd700;
}

.prize-amount {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.prize-subtext {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.phonepe-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 12px;
}

.scratch-hint {
    text-align: center;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Claim Section */
.claim-section {
    text-align: center;
    margin: 24px 0;
    display: block;
    transition: all 0.3s ease;
}

.claim-button {
    background: #1976d2; /* Solid blue color instead of gradient */
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3); /* Updated shadow color */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 12px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.95);
}

.claim-button.active {
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
    background: #1976d2; /* Solid blue color */
    animation: buttonActivate 0.5s ease-out;
    pointer-events: auto;
}

@keyframes buttonActivate {
    0% { 
        opacity: 0.5; 
        transform: scale(0.95); 
    }
    50% { 
        transform: scale(1.05); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.claim-button.active::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.5s ease;
}

.claim-button.active:hover::before {
    left: 100%;
}

.claim-button.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.5); /* Updated shadow color */
    background: #1565c0; /* Slightly darker blue on hover */
}

.claim-button:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #e8ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.trust-header {
    text-align: center;
    margin-bottom: 20px;
}

.trust-header h3 {
    color: #5f2c82;
    font-size: 18px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-header p {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(95, 44, 130, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(95, 44, 130, 0.1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(95, 44, 130, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 16px;
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #5f2c82;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(95, 44, 130, 0.05);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 10px;
    color: #5f2c82;
    font-weight: 500;
    white-space: nowrap;
}

.badge-item i {
    color: #49a09d;
    font-size: 12px;
}

/* Activity Section - Enhanced with auto-scroll */
.activity-section {
    margin-bottom: 24px;
}

.activity-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.activity-section h3 i {
    color: #5f2c82;
}

/* Activity Section - Fixed scrolling direction */
.activity-list {
    background: #f8f9fa;
    border-radius: 12px;
    height: 280px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(95, 44, 130, 0.1);
}

/* Remove ALL pseudo-elements that cause duplication */
.activity-list::before {
    display: none;
}

.activity-list::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: linear-gradient(to bottom, #f8f9fa, rgba(248, 249, 250, 0.3), transparent);
    pointer-events: none;
    z-index: 5;
}

.winners-scroll-container {
    position: relative;
    animation: scrollUp 20s linear infinite;
    padding-top: 40px; /* Add space for badge */
}

/* New winner highlight (from bottom) */
.activity-item.new-win {
    background: linear-gradient(90deg, rgba(0, 200, 81, 0.15), transparent) !important;
    border-left: 3px solid #00c851 !important;
    animation: newWinPulse 2s ease-in-out 2;
}

.activity-item.new-win .activity-amount {
    background: linear-gradient(45deg, #00c851, #28a745);
    color: white;
    font-weight: 700;
    animation: amountBounce 0.8s ease-in-out 2;
}

.activity-item.new-win::after {
    content: "NEW";
    position: absolute;
    top: -5px;
    right: 5px;
    background: #ff6b6b;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

/* Enhanced animation keyframes */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-40px); }
}

@keyframes slideInFromBottom {
    0% { 
        transform: translateY(50px); 
        opacity: 0; 
        scale: 0.9;
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
        scale: 1;
    }
}

@keyframes slideOutToTop {
    0% { 
        transform: translateY(0); 
        opacity: 1; 
        scale: 1;
    }
    100% { 
        transform: translateY(-50px); 
        opacity: 0; 
        scale: 0.9;
    }
}

@keyframes newWinPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 200, 81, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(0, 200, 81, 0.6); }
}

@keyframes amountBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Big win notification */
.big-win-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #b8860b;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 1001;
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.big-win-notification i {
    font-size: 18px;
}

@keyframes slideDown {
    0% { transform: translateX(-50%) translateY(-100%); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Activity Section - Enhanced with auto-scroll */
.activity-list {
    background: #f8f9fa;
    border-radius: 12px;
    height: 280px; /* Increased height for better 7-item display */
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(95, 44, 130, 0.1);
}

.activity-list::before {
    content: " Live Updates";
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10;
    animation: pulse 2s infinite;
}

.activity-list::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px; /* Increased fade height */
    background: linear-gradient(to top, #f8f9fa, transparent);
    pointer-events: none;
    z-index: 5;
}

.winners-scroll-container {
    position: relative;
    animation: continuousScroll 25s linear infinite; /* Slower for better readability */
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 10px 16px; /* Slightly reduced padding for better fit */
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    margin: 0 8px 3px 8px; /* Consistent spacing */
    border-radius: 8px;
    min-height: 36px; /* Ensure consistent height */
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(95, 44, 130, 0.05);
    transform: translateX(3px);
    z-index: 2;
}

.activity-item:first-child {
    background: linear-gradient(90deg, rgba(95, 44, 130, 0.1), transparent);
    border-left: 3px solid #5f2c82;
    box-shadow: 0 2px 8px rgba(95, 44, 130, 0.1);
}

/* Progressive fade effect for better visual hierarchy */
.activity-item:nth-child(1) { opacity: 1; }
.activity-item:nth-child(2) { opacity: 0.95; }
.activity-item:nth-child(3) { opacity: 0.9; }
.activity-item:nth-child(4) { opacity: 0.85; }
.activity-item:nth-child(5) { opacity: 0.8; }
.activity-item:nth-child(6) { opacity: 0.7; }
.activity-item:nth-child(7) { opacity: 0.6; }

/* Big win special effect */
.activity-item.big-win {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent) !important;
    border-left: 3px solid #ffd700 !important;
    animation: bigWinPulse 1s ease-in-out 3;
}

.activity-item.big-win .activity-amount {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #b8860b;
    font-weight: 700;
    animation: amountGlow 1s ease-in-out 3;
}

.user-avatar {
    width: 36px; /* Slightly smaller for better fit */
    height: 36px;
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(95, 44, 130, 0.2);
}

.user-avatar::after {
    content: "🎉";
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 10px;
    animation: celebrate 3s infinite;
}

.activity-details {
    flex: 1;
}

.activity-name {
    font-weight: 600;
    font-size: 13px; /* Slightly smaller for better fit */
    margin-bottom: 2px;
    color: #1a1a1a;
}

.activity-desc {
    font-size: 11px; /* Smaller for better fit */
    color: #666;
}

.activity-amount {
    font-weight: 600;
    color: #00c851;
    font-size: 13px; /* Consistent sizing */
    background: rgba(0, 200, 81, 0.1);
    padding: 3px 8px; /* Reduced padding */
    border-radius: 12px;
    min-width: 55px; /* Slightly smaller */
    text-align: center;
}

/* Enhanced animation keyframes */
@keyframes continuousScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-40px); } /* Adjusted for new item height */
}

@keyframes slideInFromTop {
    0% { 
        transform: translateY(-50px); 
        opacity: 0; 
        scale: 0.9;
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
        scale: 1;
    }
}

@keyframes slideOutToBottom {
    0% { 
        transform: translateY(0); 
        opacity: 1; 
        scale: 1;
    }
    100% { 
        transform: translateY(50px); 
        opacity: 0; 
        scale: 0.9;
    }
}

@keyframes bigWinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes amountGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

@keyframes celebrate {
    0%, 80%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    10%, 70% { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* Security Banner */
.security-banner {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 1px solid #00c851;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.security-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-content i {
    font-size: 24px;
    color: #00c851;
}

.security-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.security-desc {
    font-size: 12px;
    color: #666;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    padding: 8px 0;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

.nav-item.active {
    color: #5f2c82;
}

.nav-item i {
    font-size: 18px;
}

/* Footer */
.app-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: #5f2c82;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-text p {
    color: #666;
    font-size: 11px;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 420px) {
    .app-container {
        max-width: 100%;
    }
    
    .scratch-card {
        width: 280px;
        height: 280px;
    }
    
    .app-content {
        padding: 16px;
    }
    
    .trust-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* Fix scratch card positioning for mobile */
.scratch-card {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scratch-card canvas {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 20px;
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
    .scratch-card {
        width: 280px;
        height: 280px;
        margin: 15px auto;
    }
    
    .scratch-card canvas {
        width: 280px !important;
        height: 280px !important;
    }
}

@media (max-width: 360px) {
    .scratch-card {
        width: 260px;
        height: 260px;
        margin: 10px auto;
    }
    
    .scratch-card canvas {
        width: 260px !important;
        height: 260px !important;
    }
}

/* Tab Content Styles */
.tab-content {
    min-height: 300px;
    padding: 15px 0;
    display: none; /* Hidden by default */
}

/* Server Down Message */
.server-down-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 20px;
    border: 2px dashed #ddd;
    margin-top: 20px;
    min-height: 400px; /* Make it more visible */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.maintenance-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.maintenance-info p {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
}

/* Offers Container */
.offers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 100px; /* Add space at bottom */
}

/* Enhanced offers */
.offer-card.featured {
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(95, 44, 130, 0.3);
}

.offer-card.featured .offer-content h3,
.offer-card.featured .offer-content p {
    color: white;
}

.offer-validity {
    font-size: 11px;
    color: #999;
    margin: 8px 0;
    font-style: italic;
}

.offer-card.featured .offer-validity {
    color: rgba(255, 255, 255, 0.8);
}

.offer-btn.primary {
    background: white;
    color: #5f2c82;
    font-weight: 600;
}

/* TOS styles */
.tos-container {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.tos-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tos-header h2 {
    color: #5f2c82;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tos-header p {
    color: #666;
    font-size: 12px;
}

.tos-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #5f2c82;
}

.tos-section h3 {
    color: #5f2c82;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.tos-section p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Offer Details Section */
.offer-details-section {
    background: linear-gradient(to right, #fff9e6, #fffcf0);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ffe082;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
}

.offer-details-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8860b;
    font-size: 16px;
    margin-bottom: 15px;
}

.offer-details-section h3 i {
    color: #ffc107;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.details-item i {
    color: #5f2c82;
    margin-top: 2px;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.details-item span {
    flex: 1;
}

.details-item span b {
    color: #ff6b6b;
}

/* Separate page styles */
.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.page-title {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border: 1px solid #eee;
}

.page-title h2 {
    color: #5f2c82;
    font-size: 22px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-title p {
    color: #666;
    font-size: 14px;
}

/* Enhanced Server Down Message */
.server-down-message {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px dashed #ddd;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: errorPulse 2s infinite;
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.server-down-message h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.server-down-message p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.retry-btn {
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(95, 44, 130, 0.3);
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 44, 130, 0.4);
}

.maintenance-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.maintenance-info p {
    color: #666;
    font-size: 12px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Enhanced Offers */
.offers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 30px;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.offer-card.featured {
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(95, 44, 130, 0.3);
}

.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #5f2c82;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-badge.hot {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.offer-image {
    background: linear-gradient(135deg, #5f2c82, #49a09d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    width: 80px;
    flex-shrink: 0;
}

.offer-content {
    padding: 20px;
    flex: 1;
}

.offer-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.offer-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.offer-card.featured .offer-content h3,
.offer-card.featured .offer-content p {
    color: white;
}

.offer-validity {
    font-size: 11px;
    color: #999;
    margin: 8px 0;
    font-style: italic;
}

.offer-card.featured .offer-validity {
    color: rgba(255, 255, 255, 0.8);
}

.offer-btn {
    background: #5f2c82;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offer-btn:hover {
    background: #4a1f66;
    transform: translateY(-1px);
}

.offer-btn.primary {
    background: white;
    color: #5f2c82;
    font-weight: 600;
}

.offer-btn.primary:hover {
    background: #f8f9fa;
    color: #4a1f66;
}

/* Enhanced TOS */
.tos-container {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.tos-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tos-header h2 {
    color: #5f2c82;
    font-size: 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tos-header p {
    color: #666;
    font-size: 12px;
}

.tos-section {
    margin-bottom: 20px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #5f2c82;
    transition: all 0.3s ease;
}

.tos-section:hover {
    background: #f0f4ff;
    transform: translateX(3px);
}

.tos-section h3 {
    color: #5f2c82;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.tos-section p {
    color: #555;
    line-height: 1.6;
    font-size: 13px;
}

/* Mobile Responsive for separate pages */
@media (max-width: 480px) {
    .page-title {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .page-title h2 {
        font-size: 20px;
    }
    
    .server-down-message {
        padding: 25px 15px;
    }
    
    .error-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .server-down-message h2 {
        font-size: 20px;
    }
    
    .offer-content {
        padding: 15px;
    }
    
    .tos-container {
        padding: 20px 15px;
    }
    
    .tos-section {
        padding: 15px;
    }
}

/* Enhanced Live Badge */
.live-update-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-update-badge i.pulse {
    animation: pulseDot 1.2s infinite;
    font-size: 8px;
}

@keyframes pulseDot {
    0% { 
        opacity: 0.4; 
        transform: scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
    100% { 
        opacity: 0.4; 
        transform: scale(0.8);
    }
}

/* Enhanced live badge glow effect */
.live-update-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ff6b6b);
    border-radius: 18px;
    z-index: -1;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .trust-section {
        padding: 15px 12px;
        margin-bottom: 16px;
    }
    
    .trust-header h3 {
        font-size: 16px;
    }
    
    .trust-header p {
        font-size: 12px;
    }
    
    .trust-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 12px 8px;
        min-height: 100px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .trust-badges {
        gap: 6px;
    }
    
    .badge-item {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .live-update-badge {
        font-size: 8px;
        padding: 3px 6px;
        border-radius: 12px;
    }
}
