/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8d00d0;
    --primary-gradient: linear-gradient(89.08deg, #4095d2 0.84%, #aa39d2 37.68%, #c0537d 61.71%, #d38c39 97.89%);
    --background-color: #f2f4f4;
    --card-background: #ffffff;
    --text-primary: #1d2123;
    --text-secondary: #838f95;
    --border-color: #eaeef0;
    --hover-color: #eff1f2;
    --shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background-color: var(--card-background);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

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

.logo-text {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.nav {
    display: flex;
    gap: 4px;
    background-color: var(--border-color);
    border-radius: 16px;
    padding: 2px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    background-color: var(--card-background);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

/* Hero Text Section */
.hero-text-section {
    padding: 60px 0 40px;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.gradient-title {
    font-size: 48px;
    font-weight: 800;
    background: var(--primary-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: gradientShift 3s ease infinite;
}

.gradient-subtitle {
    font-size: 32px;
    font-weight: 700;
    background: var(--primary-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: gradientShift 3s ease infinite;
    animation-delay: 0.3s;
}

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Purchase Section */
.purchase-section {
    padding: 40px 0 60px;
}

.purchase-card {
    background: var(--card-background);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.purchase-step {
    display: none;
    animation: fadeInSlide 0.4s ease;
}

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

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

.purchase-header {
    margin-bottom: 24px;
}

.purchase-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.amount-selector {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.amount-input-wrapper {
    position: relative;
}

.amount-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--card-background);
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.currency-symbol {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.slider-container {
    margin-bottom: 32px;
}

.amount-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #ffc42c 0%, #d7dbdd 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(141, 0, 208, 0.4);
    transition: all 0.2s ease;
}

.amount-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.amount-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(141, 0, 208, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.price-display {
    background: var(--hover-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

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

.price-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-info {
    text-align: right;
}

.exchange-rate {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-purchase {
    width: 100%;
    padding: 16px 28px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 0, 208, 0.4);
}

.btn-purchase:active {
    transform: translateY(0);
}

.purchase-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-note {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* Account Selection Styles */
.account-header {
    margin-bottom: 24px;
}

.account-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.account-title-row h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.btn-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--hover-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-back:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.account-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.account-input-section {
    margin-bottom: 32px;
}

.account-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    background: var(--card-background);
}

.account-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-continue-hidden {
    display: none;
    margin-top: 20px;
}

.btn-continue-hidden.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

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

/* Payment Step Styles */
.payment-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item.small {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-value.robux {
    font-size: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-value.price {
    font-size: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-item.small .summary-value {
    font-size: 14px;
    font-weight: 500;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 20px;
}

.payment-methods-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--hover-color);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-method-card:hover {
    background: var(--border-color);
    transform: translateX(4px);
}

.payment-method-card.selected {
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    border: 2px solid transparent;
}

.payment-method-icon {
    font-size: 28px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.payment-method-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-method-check {
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.payment-method-card.selected .payment-method-check {
    color: var(--primary-color);
}

.payment-method-check .check-fill {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-card.selected .payment-method-check .check-fill {
    opacity: 1;
}

.payment-method-check svg {
    width: 100%;
    height: 100%;
}

/* Loading State */
.loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

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

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

/* Accounts Title */
.accounts-title {
    display: none;
    margin-top: 24px;
    margin-bottom: 16px;
    animation: fadeIn 0.4s ease;
}

.accounts-title.active {
    display: block;
}

.accounts-title h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Accounts Grid */
.accounts-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    margin-top: 8px;
}

.accounts-grid.active {
    display: grid;
}

.accounts-grid::-webkit-scrollbar {
    width: 6px;
}

.accounts-grid::-webkit-scrollbar-track {
    background: var(--hover-color);
    border-radius: 3px;
}

.accounts-grid::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.accounts-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.account-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--hover-color);
    position: relative;
}

.account-item:hover {
    background: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.account-item.selected {
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    border: 2px solid transparent;
}

.account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
}

.account-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
    max-width: 100%;
}

.account-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.account-item.selected .account-checkmark {
    display: flex;
}

.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    min-height: 300px;
}

.no-results svg {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.4;
    color: var(--text-secondary);
}

.no-results p {
    margin: 0;
    line-height: 1.6;
}

.no-results p:first-of-type {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p:last-of-type {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background: var(--hover-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-rating {
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.faq-icon {
    font-size: 48px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-background);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--hover-color);
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-copyright {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gradient-title {
        font-size: 32px;
    }
    
    .gradient-subtitle {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .purchase-card {
        padding: 24px 16px;
    }
    
    .purchase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .accounts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .account-avatar {
        width: 60px;
        height: 60px;
    }
    
    .account-name {
        font-size: 12px;
    }
    
    .payment-method-card {
        padding: 10px;
        gap: 10px;
    }
    
    .payment-method-icon {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .payment-method-name {
        font-size: 13px;
    }
    
    .payment-method-desc {
        font-size: 11px;
    }
    
    .payment-method-check {
        width: 18px;
        height: 18px;
    }
    
    .payment-summary {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

