/* BloxTrader - Roblox Limiteds Trading Platform Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1d23;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(26, 29, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-text .blox {
    color: #ffffff;
}

.logo-text .trader {
    color: #4f8cf4;
}

.logo-icon {
    width: 35px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.robux-icon {
    width: 16px;
    height: 16px;
    background: #4f8cf4;
    border-radius: 50%;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f8cf4, #3b7ce0);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 140, 244, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #a0a9b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    border: 2px solid rgba(79, 140, 244, 0.2);
    box-shadow: 0 20px 40px rgba(79, 140, 244, 0.1);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 140, 244, 0.4);
    box-shadow: 0 25px 50px rgba(79, 140, 244, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #a0a9b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a0a9b8;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: #00d26a;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00d26a;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Live Feed Section */
.trades-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title-icon {
    width: 28px;
    height: 28px;
    color: #4f8cf4;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Smooth Infinite Loop Carousel */
.trades-carousel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    height: 300px;
    margin: auto;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 1200px;
}

.trades-carousel::before,
.trades-carousel::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.trades-carousel::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, rgba(26, 29, 35, 1) 0%, rgba(26, 29, 35, 0.8) 50%, rgba(26, 29, 35, 0) 100%);
}

.trades-carousel::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, rgba(26, 29, 35, 1) 0%, rgba(26, 29, 35, 0.8) 50%, rgba(26, 29, 35, 0) 100%);
}

.slide-track {
    display: flex;
    animation: scroll 20s linear infinite;
    align-items: center;
    height: 100%;
    will-change: transform;
}

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

.trade-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    width: 320px;
    height: 250px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-right: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.trade-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(79, 140, 244, 0.3);
}

.trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.trade-time {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.trade-items {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    min-height: 70px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trade-items::-webkit-scrollbar {
    display: none;
}

.item-thumbnail {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.item-thumbnail .count-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

.item-thumbnail:hover {
    transform: scale(1.05);
    border-color: #4f8cf4;
}

.trade-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trade-total {
    color: #00d26a;
    font-weight: 700;
    font-size: 1.1rem;
}

.trade-range {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f8cf4, #3b7ce0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-description {
    color: #a0a9b8;
    line-height: 1.6;
}

/* Trading Modal Styles */
.trading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.trading-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trading-modal {
    background: linear-gradient(135deg, #1a1d23 0%, #232832 100%);
    border: 1px solid rgba(79, 140, 244, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.trading-modal-overlay.active .trading-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(79, 140, 244, 0.05);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-icon {
    width: 24px;
    height: 24px;
    color: #4f8cf4;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-progress {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f8cf4, #3b7ce0);
    border-radius: 2px;
    width: 33%;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #a0a9b8;
}

.progress-text span:last-child {
    color: #4f8cf4;
    font-weight: 600;
}

.modal-content {
    padding: 2rem 1.5rem;
    min-height: 300px;
    position: relative;
}

.modal-step {
    display: none;
    animation: slideInFade 0.4s ease-out;
}

.modal-step.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #a0a9b8;
    font-size: 0.95rem;
}

.quick-input {
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.modal-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.modal-input:focus {
    border-color: #4f8cf4;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(79, 140, 244, 0.1);
}

.modal-input::placeholder {
    color: #6b7280;
}

.input-status {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.input-status.active {
    opacity: 1;
}

.input-status.loading .status-icon {
    animation: spin 1s linear infinite;
}

.input-status.success {
    color: #4f8cf4;
}

.input-status.error {
    color: #ff4757;
}

.status-icon {
    width: 20px;
    height: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.input-feedback {
    font-size: 0.85rem;
    color: #a0a9b8;
    text-align: center;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-feedback.success {
    color: #4f8cf4;
}

.input-feedback.error {
    color: #ff4757;
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(79, 140, 244, 0.05);
    border: 1px solid rgba(79, 140, 244, 0.2);
    border-radius: 8px;
    color: #a0a9b8;
    font-size: 0.85rem;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: #4f8cf4;
    flex-shrink: 0;
}

.profile-verification {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(79, 140, 244, 0.2);
    border-radius: 16px;
    width: 100%;
    max-width: 300px;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #4f8cf4;
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: #4f8cf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1d23;
}

.verified-badge svg {
    width: 16px;
    height: 16px;
    color: white;
}

.profile-info {
    text-align: center;
}

.profile-info h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-stats {
    color: #a0a9b8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.verification-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.verify-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.verify-btn.confirm {
    background: linear-gradient(135deg, #4f8cf4, #3b7ce0);
    color: white;
}

.verify-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 140, 244, 0.3);
}

.verify-btn.deny {
    background: rgba(255, 255, 255, 0.05);
    color: #a0a9b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verify-btn.deny:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.verify-btn svg {
    width: 16px;
    height: 16px;
}

.trade-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trade-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.trade-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 140, 244, 0.3);
    transform: translateY(-2px);
}

.trade-option .option-icon {
    font-size: 1.5rem;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-option .option-content {
    flex: 1;
}

.trade-option .option-content h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trade-option .option-content p {
    color: #a0a9b8;
    font-size: 0.85rem;
}

.trade-option .option-arrow {
    color: #4f8cf4;
    font-size: 1.25rem;
    font-weight: bold;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(79, 140, 244, 0.05);
    border: 1px solid rgba(79, 140, 244, 0.2);
    border-radius: 8px;
    color: #a0a9b8;
    font-size: 0.85rem;
    text-align: center;
}

.security-note svg {
    width: 16px;
    height: 16px;
    color: #4f8cf4;
    flex-shrink: 0;
}

.modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 35, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.modal-loading.active {
    display: flex;
}

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

.fast-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4f8cf4;
    border-radius: 50%;
    animation: fastSpin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes fastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #a0a9b8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.trade-card,
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.trade-card:nth-child(1) { animation-delay: 0.1s; }
.trade-card:nth-child(2) { animation-delay: 0.2s; }
.trade-card:nth-child(3) { animation-delay: 0.3s; }
.trade-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .stats-section,
    .trades-section,
    .features-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .trade-card {
        min-width: 280px;
    }

    .trading-modal {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .verification-actions {
        flex-direction: column;
    }

    .trade-option {
        padding: 1rem;
    }
}