/* Main Page Specific Styles */

/* Trust Bar */
.trust-bar {
    background: linear-gradient(90deg, #0a0a0f, #141420);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.trust-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.trust-icon {
    font-size: 16px;
}

.trust-icon.pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-users {
    font-weight: 600;
    color: #10b981;
}

/* Urgency Timer */
.navbar-right {
    display: flex;
    align-items: center;
}

.urgency-timer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: timer-pulse 2s infinite;
}

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

.timer-icon {
    font-size: 18px;
}

.timer-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

#countdown-timer {
    font-family: monospace;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Activity Feed */
.activity-feed {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 320px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.activity-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.activity-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-user {
    font-weight: 600;
    color: #10b981;
    display: block;
    margin-bottom: 4px;
}

.activity-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Header (Old style - hidden) */
.header {
    display: none;
}

#page-title {
    display: none;
}

/* Main Content */
.main-content {
    padding-top: var(--spacing-xl);
}

/* Categories Container */
.categories-container {
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.categories-container h2 {
    font-size: var(--font-size-sm);
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: var(--spacing-2xl) 0 var(--spacing-xl);
    display: block;
    font-weight: 500;
}

/* Packs Grid */
.packs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    width: 100%;
}

/* Input Container */
.input-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.input-container input {
    flex-grow: 1;
}

/* User Search */
#roblox-user-search {
    padding: var(--spacing-sm) 1.25rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

#roblox-user-search:hover {
    background: var(--accent-hover);
}

#roblox-user-search:disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* User Search Results */
#user-search-results {
    display: none;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    min-height: 100px;
}

#user-id-display {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
    padding: var(--spacing-xs) 0;
}

#user-search-status {
    font-size: var(--font-size-base);
    color: var(--accent-secondary);
    font-weight: 600;
    min-height: 1.2em;
    margin-bottom: 10px;
}

/* Verification Popup */
#popup-verification {
    z-index: var(--z-popup);
}

#popup-verification .popup-content {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    padding: var(--spacing-xl);
}

.popup-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.popup-header h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

/* Selected Images Container */
.selected-images-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.item-popup-image-small {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    padding: 8px;
    border: 2px solid var(--border-color);
}

/* Sync Status */
#sync-status {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-align: center;
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

#sync-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: var(--radius-full);
    display: inline-block;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Game Tip */
#game-tip {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

/* Final Verify Button */
#final-verify-btn {
    display: none;
    margin-top: var(--spacing-lg);
    background: linear-gradient(135deg, var(--accent-success), #00b380);
    animation: pulse 2s infinite;
}

#final-verify-btn:hover {
    animation: none;
    background: linear-gradient(135deg, #00b380, var(--accent-success));
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(0, 200, 150, 0.3); }
    50% { box-shadow: 0 10px 35px rgba(0, 200, 150, 0.5); }
}

/* TikTok and iOS Popup Styles */
.tiktok-view-active {
    background: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ios-popup .popup {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

#ios-popup .popup::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
}

.tiktok-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('/static/images/tiktokicon.webp');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin: 0 5px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.three-dots {
    display: inline-block;
    width: 25px;
    height: 25px;
    background: #666;
    border-radius: 50%;
    margin: 0 5px;
    position: relative;
    vertical-align: middle;
}

.three-dots::after {
    content: '⋯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.highlight {
    color: rgb(0, 122, 255);
    font-weight: bold;
}

/* Floating Items */
#floating-items-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    opacity: 0.15;
    will-change: transform;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Animation Keyframes */
@keyframes float1 {
    0% { transform: translate(-100px, 110vh) rotate(0deg); }
    100% { transform: translate(110vw, -100px) rotate(720deg); }
}

@keyframes float2 {
    0% { transform: translate(110vw, 110vh) rotate(0deg); }
    100% { transform: translate(-100px, -100px) rotate(-720deg); }
}

@keyframes float3 {
    0% { transform: translate(-100px, -100px) rotate(0deg); }
    100% { transform: translate(110vw, 110vh) rotate(360deg); }
}

@keyframes float4 {
    0% { transform: translate(50vw, 110vh) rotate(0deg); }
    100% { transform: translate(50vw, -100px) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .navbar-left {
        flex-direction: column;
    }
    
    .packs {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .packs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pack img {
        width: 60px;
        height: 60px;
    }
}
/* Additional Responsive Styles for Trust Elements */
@media (max-width: 768px) {
    .navbar-right {
        width: 100%;
        margin-top: 10px;
    }
    
    .urgency-timer {
        width: 100%;
        justify-content: center;
    }
    
    .trust-bar-content {
        font-size: 11px;
    }
    
    .trust-item {
        flex: 1 1 45%;
        justify-content: center;
    }
    
    .trust-icon {
        font-size: 14px;
    }
    
    .activity-feed {
        display: none;
    }
}

/* Limited Slots Warning */
.slots-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(251, 191, 36, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    padding: 16px;
    margin: 20px auto;
    max-width: 800px;
    animation: pulse-warning 3s infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        border-color: rgba(251, 191, 36, 0.5);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2);
    }
    50% { 
        border-color: rgba(251, 191, 36, 0.8);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
}

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

.slots-icon {
    font-size: 24px;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.slots-text {
    flex: 1;
    color: white;
    font-size: 15px;
}

.slots-text strong {
    color: #fbbf24;
}

#slots-remaining {
    font-size: 20px;
    font-weight: bold;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.slots-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.slots-progress {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #fbbf24);
    width: 83%;
    transition: width 0.5s ease;
    animation: progress-pulse 1.5s infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.9), #0a0a0f);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #34d399;
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 15px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(26, 26, 46, 0.95));
    margin: 20px auto;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-title {
    text-align: center;
    font-size: 32px;
    color: white;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 36px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.testimonial-card {
    background: rgba(45, 45, 63, 0.9);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.testimonial-rating {
    margin-top: 4px;
}

.testimonial-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(16, 185, 129, 0.4);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #10b981;
    transform: scale(1.3);
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Floating Testimonial */
.floating-testimonial {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(45, 45, 63, 0.98), rgba(16, 185, 129, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    padding: 15px;
    max-width: 350px;
    z-index: 1000;
    animation: slideInLeft 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.floating-avatar {
    font-size: 24px;
}

.floating-text {
    flex: 1;
    color: white;
    font-size: 14px;
}

.floating-text strong {
    color: #10b981;
    display: block;
    margin-bottom: 4px;
}

.floating-text p {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.floating-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
}

.floating-close:hover {
    color: white;
}

/* Enhanced CTA Animations */
.modal-btn, button[type="submit"] {
    position: relative;
    overflow: hidden;
    animation: pulse-cta 2s infinite;
}

@keyframes pulse-cta {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    }
}

.modal-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-title {
        font-size: 24px;
    }
    
    .trust-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .floating-testimonial {
        max-width: 280px;
        left: 10px;
        bottom: 10px;
    }
}

/* Pulse badge animation for testimonials */
.pulse-badge {
    animation: pulse-attention 1.5s infinite;
    background: linear-gradient(135deg, #ef4444, #f59e0b) !important;
}

@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Make testimonials more compact and prominent */
.testimonials-section {
    animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smaller testimonials on mobile to save space */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 20px 10px;
        margin: 15px 10px;
    }
    
    .testimonials-title {
        font-size: 20px !important;
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .trust-stats {
        display: none; /* Hide stats on mobile to save space */
    }
}

/* Fade out animation for floating testimonials */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile testimonials positioning fix */
@media (max-width: 768px) {
    /* Ensure testimonials appear at top on mobile */
    .main-content {
        display: flex;
        flex-direction: column;
    }
    
    .testimonials-section {
        order: -1; /* Move to top */
        margin: 10px 5px 15px 5px;
        padding: 15px 10px;
    }
    
    .slots-warning {
        order: -2; /* Keep slots warning above testimonials */
    }
    
    .activity-feed {
        order: 10; /* Keep at bottom if shown */
    }
    
    /* Hide floating testimonials on mobile to avoid clutter */
    .floating-testimonial {
        display: none !important;
    }
}
