/* Steam Account Slider Styles */
.steam-account-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.steam-account-slider-container {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    height: 380px;
}

.steam-account-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.steam-account-slide {
    flex: 0 0 443px;
    position: relative;
    margin: 0 8px;
    height: 380px;
}

.steam-account-slide-active {
    z-index: 2;
}

.steam-account-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.steam-account-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.steam-account-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.steam-account-nav {
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.steam-account-nav:hover {
    background: rgba(255, 44, 44, 0.8);
}

.steam-account-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.steam-account-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.steam-account-dot-active {
    background: #FF2C2C;
}

@media (max-width: 480px) {
    .steam-account-dot {
        width: 14px;
        height: 14px;
    }
}

.steam-account-button {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.steam-account-button:not(.btn-outline) {
    border: none;
}

.steam-account-button.btn-outline {
    border: 1px solid rgba(255, 44, 44, 0.3) !important;
    border-color: rgba(255, 44, 44, 0.3) !important;
    --tw-border-opacity: 0.3 !important;
}

.steam-account-button.btn-outline:hover {
    background-color: rgb(255, 44, 44) !important;
    color: rgb(255, 255, 255) !important;
    border-color: rgb(255, 44, 44) !important;
}

a.steam-account-button {
    text-decoration: none;
}

.steam-account-button:active {
    transform: translateY(0);
}

.steam-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.steam-account-modal.show {
    display: flex;
}

.steam-account-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

[data-theme="light"] .steam-account-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.steam-account-modal-content {
    position: relative;
    background: var(--bg-primary);
    backdrop-filter: blur(82px);
    border-radius: 24px;
    padding: 32px;
    max-width: 557px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .steam-account-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.steam-account-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.steam-account-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.steam-account-modal-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steam-account-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

[data-theme="light"] .steam-account-modal-close {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .steam-account-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.steam-account-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.steam-account-modal-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/*
 * Legacy modal styling parity (vpe-sports-redesign)
 * The old site relied on Tailwind utility classes for inputs/labels,
 * so we scope overrides to `#steamAccountModal` and `#orderDataModal`
 * (profile page) to match that look exactly.
 */
#steamAccountModal .steam-account-modal-content,
#orderDataModal .steam-account-modal-content {
    background: rgba(45, 45, 45, 0.50);
    box-shadow: none;
}

#steamAccountModal .steam-account-modal-close,
#orderDataModal .steam-account-modal-close {
    transition: background-color 0.2s ease;
    display: block;
}

#steamAccountModal .steam-account-modal-close:hover,
#orderDataModal .steam-account-modal-close:hover {
    opacity: 0.5;
}

#steamAccountModal .steam-account-modal-label,
#orderDataModal .steam-account-modal-label {
    margin-bottom: 0;
    font-weight: 400;
}

#steamAccountModal .steam-account-modal-input,
#orderDataModal .steam-account-modal-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    padding: 14px 20px;
    padding-right: 52px;
}

#steamAccountModal .steam-account-modal-input:disabled,
#steamAccountModal .steam-account-modal-input:focus,
#orderDataModal .steam-account-modal-input:disabled,
#orderDataModal .steam-account-modal-input:focus {
    background: transparent;
    box-shadow: none;
}

/* Profile: spacing between fields in order data modal */
#orderDataModal #orderDataFields {
    display: block;
}

#orderDataModal .steam-account-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

#orderDataModal .steam-account-modal-field:last-child {
    margin-bottom: 0;
}

/* Light theme: override legacy dark look for these modals */
[data-theme="light"] #steamAccountModal .steam-account-modal-content,
[data-theme="light"] #orderDataModal .steam-account-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

[data-theme="light"] #steamAccountModal .steam-account-modal-input,
[data-theme="light"] #orderDataModal .steam-account-modal-input {
    color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
}


[data-theme="light"] .steam-account-modal-title h3,
[data-theme="light"] .steam-account-modal-label {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .steam-account-modal-body p {
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .steam-account-modal-body .text-white {
    color: rgba(0, 0, 0, 0.9) !important;
}

[data-theme="light"] .steam-account-modal-body .text-white\/60,
[data-theme="light"] .steam-account-modal-body .text-white\/80 {
    color: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .steam-account-modal-body .bg-white\/5 {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .steam-account-modal-body .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .steam-account-modal-body .border-white\/50 {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] #paymentSuccessModal .steam-account-modal-body .text-white {
    color: rgba(0, 0, 0, 0.9) !important;
}

[data-theme="light"] #paymentSuccessModal .steam-account-modal-body .text-white\/60 {
    color: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] #paymentSuccessModal .steam-account-modal-body .text-6xl {
    color: #4CAF50;
}

.steam-account-modal-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.steam-account-modal-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.steam-account-modal-input:focus {
    outline: none;
    border-color: #FF2C2C;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 44, 44, 0.1);
}

.steam-account-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .steam-account-modal-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .steam-account-modal-input:disabled {
    background: rgba(0, 0, 0, 0.02);
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .steam-account-modal-input:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: #FF2C2C;
    box-shadow: 0 0 0 3px rgba(255, 44, 44, 0.1);
}

[data-theme="light"] .steam-account-modal-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.steam-account-modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}



.steam-account-modal-copy {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.steam-account-modal-copy:hover {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .steam-account-modal-copy {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .steam-account-modal-copy:hover {
    color: rgba(0, 0, 0, 0.85);
}

.steam-account-modal-copy.is-copied {
    color: #FF2C2C;
    transform: scale(1.06);
}

.steam-account-modal-copy.is-failed {
    color: rgba(255, 44, 44, 0.9);
    transform: scale(1.06);
}

@media (max-width: 1024px) {
    .steam-account-slider {
        padding: 0 60px;
        max-width: 900px;
    }
    
    .steam-account-slide {
        flex: 0 0 400px;
        height: 320px;
    }
    
    .steam-account-slider-container {
        height: 320px;
    }
    
    .steam-account-nav {
        width: 40px;
        height: 40px;
    }
    
    .steam-account-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .steam-account-slider {
        padding: 0 40px;
        max-width: 600px;
    }
    
    .steam-account-slide {
        flex: 0 0 350px;
        height: 280px;
    }
    
    .steam-account-slider-container {
        height: 280px;
    }
    
    .steam-account-nav {
        width: 36px;
        height: 36px;
    }
    
    .steam-account-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .steam-account-modal-content {
        padding: 24px;
        max-width: 90%;
        margin: 20px;
        border-radius: 20px;
    }
    
    .steam-account-modal-header {
        margin-bottom: 20px;
    }
    
    .steam-account-modal-title h3 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    /* Tablet modal styles */
    #howToGetFreeModal.steam-account-modal {
        align-items: flex-start;
        padding: 20px;
    }
    
    #howToGetFreeModal .steam-account-modal-content {
        margin: 20px auto;
        max-width: 90%;
        width: 100%;
        padding: 24px;
        border-radius: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .steam-account-slider {
        padding: 0;
        max-width: 443px;
    }
    
    .steam-account-slide {
        flex: 0 0 443px;
        height: 380px;
    }
    
    .steam-account-slider-container {
        height: 380px;
    }
    
    .steam-account-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .steam-account-modal {
        padding: 16px;
        align-items: center;
    }
    
    .steam-account-modal-content {
        padding: 20px;
        max-width: 100%;
        margin: auto;
        border-radius: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    
    .steam-account-modal-header {
        margin-bottom: 16px;
    }
    
    .steam-account-modal-title h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .steam-account-modal-body {
        gap: 12px;
    }
    
    .steam-account-modal-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .steam-account-modal-button {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* Mobile modal styles */
    #howToGetFreeModal.steam-account-modal {
        align-items: flex-start;
        padding: 20px;
    }
    
    #howToGetFreeModal .steam-account-modal-content {
        margin: 20px auto;
        max-width: 100%;
        width: 100%;
        padding: 20px;
        border-radius: 16px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    #howToGetFreeModal .steam-account-modal-header {
        margin-bottom: 16px;
    }
    
    #howToGetFreeModal .steam-account-modal-body {
        max-height: none;
        overflow-y: visible;
    }
}

.steam-account-modal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.steam-account-modal-button.hidden {
    display: none;
}

#emailSection.hidden {
    display: none;
}

#emailSection {
    animation: slideDown 0.3s ease-out;
}

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

@media not all and (min-width: 768px) {
    .max-md\:mb-0 {
        margin-bottom: 0px;
    }
}

#howToGetFreeModal .steam-account-modal-content{
    overflow-y: auto;
}