@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root {
    --primary-color: #7B2CBF;
    --primary-dark: #5A189A;
    --primary-light: #9D4EDD;
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-hover: #252525;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --border-color: #333333;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

button,
input,
select,
textarea {
    font: inherit;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1.25rem;
    margin-left: 1.25rem;
}

.nav-links-left {
    justify-content: flex-start;
}

.nav-links-right {
    justify-content: flex-end;
    margin-left: auto;
    gap: 0.35rem;
}

.nav-links-right .balance-button {
    padding-right: 0.85rem;
}

.nav-links-right .user-cabinet-button {
    padding-left: 0.85rem;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.15em;
    text-decoration: none;
    transition: all 0.3s;
}

.header-social-link:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.mobile-header-social-links {
    display: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: none !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links.nav-links-right {
    gap: 0.35rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .support-icon-only {
    color: #FFD700;
    font-size: 1.2rem;
}

.nav-links .support-icon-only:hover {
    color: #FFA500;
}

/* Balance button */
.balance-button-wrapper {
    margin: 0;
}

.nav-links-right .balance-button-wrapper {
    margin-left: 0;
}

.balance-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.balance-button:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.4);
}

/* User cabinet button */
.user-cabinet-wrapper {
    position: relative;
    margin: 0;
}

.user-cabinet-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 48px;
    padding: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.user-cabinet-button:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.user-avatar-img,
.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-avatar-img {
    display: block;
}

.user-avatar-placeholder {
    display: flex;
}

.cabinet-text {
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
    margin-left: 0.25rem;
}

/* User dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-item.logout-item {
    color: var(--error-color);
}

.dropdown-item.logout-item i {
    color: var(--error-color);
}

.logout-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.logout-confirm-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.logout-confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.logout-confirm-modal.is-open .logout-confirm-modal-overlay {
    opacity: 1;
}

.logout-confirm-modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    max-width: 450px;
    width: min(92vw, 450px);
    z-index: 10001;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.logout-confirm-modal.is-open .logout-confirm-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.logout-confirm-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(123, 44, 191, 0.45);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    z-index: 10;
}

.logout-confirm-modal-close:hover {
    transform: scale(1.08);
    background: rgba(123, 44, 191, 0.32);
    border-color: rgba(123, 44, 191, 0.7);
}

.logout-confirm-modal-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: left;
    padding-right: 2.5rem;
    line-height: 1.15;
}

.logout-confirm-modal-actions {
    margin-top: 1.05rem;
    display: flex;
    gap: 1rem;
}

.logout-confirm-btn {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.logout-confirm-btn-cancel {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.logout-confirm-btn-cancel:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.logout-confirm-btn-confirm {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(123, 44, 191, 0.75);
}

.logout-confirm-btn-confirm:hover {
    background: rgba(123, 44, 191, 0.12);
    border-color: rgba(123, 44, 191, 0.95);
    transform: translateY(-1px);
}

/* Balance Modal */
.balance-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.balance-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.balance-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.balance-modal.is-open .balance-modal-overlay {
    opacity: 1;
}

.balance-modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.balance-modal.is-open .balance-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.balance-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.balance-modal-close:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.balance-modal-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.balance-input-section {
    margin-bottom: 1.5rem;
}

.balance-input-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.balance-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-input {
    flex: 1;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.balance-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.balance-currency {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.balance-country-select,
.balance-currency-select {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Payment Tabs */
.payment-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.payment-tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.payment-tab:hover {
    color: var(--text-primary);
}

.payment-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method-card {
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background: rgba(123, 44, 191, 0.1);
}

.payment-method-logos {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.payment-logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.yoomoney-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
}

.yoomoney-symbol {
    color: var(--primary-color);
    font-weight: 700;
}

.yoomoney-text {
    color: var(--text-primary);
    font-weight: 600;
}

.crypto-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    color: var(--primary-color);
}

.crypto-logo svg {
    width: 100%;
    height: 100%;
}

.payment-method-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.payment-method-fee {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Balance Pay Button */
.balance-pay-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.balance-pay-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .balance-button,
    .user-cabinet-button {
        height: auto;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .balance-button span,
    .cabinet-text {
        display: none;
    }
    
    .user-dropdown {
        right: auto;
        left: 0;
        min-width: 200px;
    }
    
    .balance-modal-container {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .payment-method-card {
        padding: 1rem;
    }
    
    .payment-tabs {
        gap: 0.25rem;
    }
    
    .payment-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .mobile-header-social-links {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-right: 0.5rem;
        order: 2;
    }
    
    nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    nav .logo {
        order: 1;
        flex: 1;
    }
    
    nav .mobile-header-social-links {
        order: 2;
    }
    
    nav .mobile-login-btn {
        order: 3;
    }
    
    nav .mobile-menu-toggle {
        order: 4;
    }
    
    .nav-links-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 1rem;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links-wrapper.active {
        display: flex;
    }
    
    .nav-links-left,
    .nav-links-right {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .header-social-links {
        display: none;
    }
    
    /* Скрываем кнопку "Войти" внутри nav-links на мобильных, так как она теперь в хедере */
    .nav-links .auth-buttons {
        display: none;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links .btn {
        margin: 0 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .auth-buttons .btn {
        width: calc(100% - 3rem);
        margin: 0 1.5rem;
        justify-content: center;
    }
    
    .logo {
        font-size: 1.25rem;
        text-transform: none !important;
    }
    
    /* Main Content */
    main {
        padding: 2rem 0;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    /* Forms */
    .transfer-form {
        gap: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .amount-buttons {
        gap: 0.5rem;
    }
    
    .amount-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Promo Grid */
    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        justify-items: stretch;
        gap: 0.75rem;
    }
    
    .promo-codes-page main {
        padding: 1rem 0;
    }
    
    .promo-codes-page main .container {
        padding: 0 12px;
    }
    
    .promo-codes-page main h1 {
        display: none;
    }
    
    .promo-codes-page .promo-grid {
        margin-top: 0;
        height: calc(100vh - 120px);
        height: calc(100dvh - 120px);
        grid-template-rows: repeat(5, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        align-content: stretch;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .promo-card {
        width: 100%;
        padding: 1.25rem;
    }
    
    .promo-card-v2 {
        padding: 0.85rem;
        padding-right: 1.75rem;
        padding-bottom: 3.05rem;
    }

    .promo-card-v2::after {
        top: 0;
        bottom: 0;
        right: 0;
        width: 6px;
        border-radius: 0 12px 12px 0;
        z-index: 1;
    }

    .promo-card-v2 .promo-card-body {
        gap: 0.6rem;
    }

    .promo-codes-page .promo-card-v2 .promo-card-body {
        margin-top: 10px;
        align-items: center;
    }

    .promo-card-v2 .promo-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: transparent;
        border: none;
    }

    .promo-codes-page .promo-card-v2 .promo-icon,
    .promo-codes-page .promo-card-v2 .promo-icon img {
        width: 54px;
        height: 54px;
    }

    .promo-card-v2 .promo-icon img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        display: block;
        filter: none;
        opacity: 1;
    }

    .promo-card-v2 .promo-amount-v2 {
        font-size: 1.25rem;
    }

    .promo-codes-page .promo-card-v2 .promo-amount-v2 {
        font-size: clamp(1.65rem, 6.2vw, 2.15rem);
        line-height: 1;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .promo-card-v2 .promo-subtitle {
        font-size: 0.85rem;
    }

    .promo-codes-page .promo-card-v2 .promo-subtitle {
        font-size: 0.95rem;
        opacity: 0.82;
    }

    .promo-codes-page .promo-card-v2 .promo-info {
        min-width: 0;
    }

    .promo-card-v2 .promo-prices {
        left: 8px;
        bottom: 8px;
        gap: 0.4rem;
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .promo-codes-page .promo-card-v2 .promo-prices {
        left: 8px;
        right: 10px;
        bottom: 10px;
        justify-content: space-between;
        align-items: center;
        gap: 0.55rem;
    }

    .promo-codes-page .promo-card-v2 .promo-old-price {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .promo-codes-page .promo-card-v2 .promo-new-price {
        font-size: 0.82rem;
        padding: 0.24rem 0.55rem;
        border-radius: 8px;
        white-space: nowrap;
    }

    .promo-codes-page .promo-card-v2 .promo-ribbon {
        top: auto;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        width: auto;
        padding: 0.22rem 0.52rem;
        border-radius: 999px;
        font-size: 0.82rem;
        line-height: 1;
        max-width: calc(100% - 150px);
        white-space: nowrap;
    }

    .promo-card-v2 .promo-new-price {
        padding: 0.28rem 0.55rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .promo-card-v2 .promo-ribbon {
        top: 8px;
        left: -46px;
        width: 128px;
        font-size: 0.8rem;
        padding: 0.28rem 0;
    }

    .promo-card-v2 .promo-premium-badge {
        top: 0;
        right: 0;
        width: fit-content;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0.32rem 0.6rem;
        font-size: 0.72rem;
        border-radius: 0 0 0 12px;
    }

    .promo-price {
        font-size: 1.1rem;
    }
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-register {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-register:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Main Content */
main {
    padding: 3rem 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Компактная форма на главной странице */
.home-page main .card {
    max-width: 486px;
    margin: 0 auto;
}

.hero-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

.hero-title span {
    color: white;
}

.hero-title br {
    display: block;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.89rem;
        margin-bottom: 1.125rem;
    }

    .hero-title span {
        font-size: 1.98rem;
    }

    .home-page main .card {
        max-width: 90%;
    }
}

.home-page #transferTab .card-title {
    display: none;
}

.transfer-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

.transfer-tagline strong {
    color: var(--primary-color);
    font-weight: 800;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Transfer Form */
.transfer-form {
    display: grid;
    gap: 2rem;
}

.home-page #transferTab .transfer-form {
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.home-page #transferTab .form-group {
    margin-bottom: 0.5rem;
}

.auth-content .form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s;
}

#amountRub::-webkit-outer-spin-button,
#amountRub::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#amountRub {
    appearance: textfield;
    -moz-appearance: textfield;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.amount-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.amount-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.robux-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.robux-display:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.robux-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font: inherit;
}

.robux-input::-webkit-outer-spin-button,
.robux-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.robux-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.robux-icon {
    width: 24px;
    height: 24px;
}

.slider-container {
    margin: 0.25rem 0;
    position: relative;
}

.robux-slider-value {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 30px;
    width: auto;
    min-width: 92px;
    max-width: 100%;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    user-select: none;
    z-index: 2;
    pointer-events: none;
}

.robux-slider-value .robux-white-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

@media (max-width: 420px) {
    .robux-slider-value {
        font-size: 0.8rem;
        min-width: 80px;
        padding: 0 8px;
    }
}

.slider {
    width: 100%;
    height: 10px;
    border-radius: 4px;
    background: var(--bg-hover);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.slider:focus {
    outline: none;
}

.slider::-moz-focus-outer {
    border: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 24px solid transparent;
    background-clip: padding-box;
    box-shadow: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb:active {
    outline: none;
    box-shadow: none;
}

.slider::-moz-range-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 24px solid transparent;
    background-clip: padding-box;
    box-shadow: none;
    cursor: pointer;
}

.slider::-moz-range-thumb:active {
    outline: none;
    box-shadow: none;
}

.available-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    margin-top: 0.25rem;
}

.promo-trigger-link {
    text-align: center;
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.35rem 1rem;
    border-radius: 8px;
}

.promo-trigger-link:hover {
    color: var(--text-primary);
}

/* Promo Codes */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    }

    .promo-codes-modal .promo-codes-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
        max-width: calc(3 * 272px + 2 * 1.5rem);
        margin-left: auto;
        margin-right: auto;
    }

    .promo-codes-grid .promo-card-v2 {
        width: 100%;
        max-width: none;
    }

    .promo-codes-page .promo-card-v2 .promo-card-body,
    .promo-codes-grid .promo-card-v2 .promo-card-body {
        gap: 0.5rem;
    }

    .promo-codes-page .promo-card-v2 .promo-icon,
    .promo-codes-page .promo-card-v2 .promo-info,
    .promo-codes-grid .promo-card-v2 .promo-icon,
    .promo-codes-grid .promo-card-v2 .promo-info {
        position: relative;
        top: 6px;
        left: -26px;
    }

    .promo-codes-page .promo-card-v2 .promo-icon,
    .promo-codes-grid .promo-card-v2 .promo-icon {
        width: 89px;
        height: 89px;
    }

    .promo-codes-page .promo-card-v2 .promo-icon img,
    .promo-codes-grid .promo-card-v2 .promo-icon img {
        width: 89px;
        height: 89px;
    }

    .promo-codes-page .promo-card-v2 .promo-amount-v2,
    .promo-codes-grid .promo-card-v2 .promo-amount-v2 {
        white-space: nowrap;
        font-size: clamp(1.35rem, 5.2vw, 2.2rem);
    }

    .promo-codes-page .promo-card-v2 .promo-prices,
    .promo-codes-grid .promo-card-v2 .promo-prices {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 0;
        pointer-events: none;
    }

    .promo-codes-page .promo-card-v2 .promo-new-price,
    .promo-codes-grid .promo-card-v2 .promo-new-price {
        position: absolute;
        left: 8px;
        bottom: 4px;
        font-size: 0.72rem;
        line-height: 1;
        padding: 0.22rem 0.42rem;
        border-radius: 10px;
        white-space: nowrap;
        pointer-events: none;
        z-index: 4;
    }

    .promo-codes-page .promo-card-v2 .promo-old-price,
    .promo-codes-grid .promo-card-v2 .promo-old-price {
        position: absolute;
        right: 14px;
        bottom: calc(4px + 0.22rem);
        font-size: 0.72rem;
        line-height: 1;
        white-space: nowrap;
        pointer-events: none;
        z-index: 4;
    }

    .promo-codes-page .promo-card-v2 .promo-ribbon,
    .promo-codes-grid .promo-card-v2 .promo-ribbon {
        top: auto;
        left: auto;
        bottom: 4px;
        transform: none;
        width: auto;
        padding: 0.22rem 0.42rem;
        border-radius: 999px;
        font-size: 0.72rem;
        line-height: 1;
        white-space: nowrap;
        max-width: calc(100% - 140px);
        overflow: visible;
        text-overflow: clip;
        z-index: 5;
    }
}

.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.promo-card-v2 {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    padding: 1.25rem;
    padding-right: 2.25rem;
    padding-bottom: 3.25rem;
}

.promo-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.promo-card-v2::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 8px;
    border-radius: 0 12px 12px 0;
    background: var(--primary-color);
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.promo-card-v2 .promo-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-card-v2 .promo-icon,
.promo-card-v2 .promo-info,
.promo-card-v2 .promo-prices {
    position: relative;
    z-index: 2;
}

.promo-card-v2 .promo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-card-v2 .promo-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 1;
}

.promo-card-v2 .promo-icon i {
    color: var(--text-secondary);
    font-size: 1.35rem;
}

.promo-card-v2 .promo-info {
    flex: 1;
    min-width: 0;
}

.promo-card-v2 .promo-amount-v2 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.promo-card-v2 .promo-subtitle {
    margin-top: 0.1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
}

.promo-card-v2 .promo-prices {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.promo-card-v2 .promo-old-price {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: line-through;
    opacity: 0.85;
}

.promo-card-v2 .promo-new-price {
    background: rgba(123, 44, 191, 0.22);
    border: 1px solid rgba(123, 44, 191, 0.75);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1;
    white-space: nowrap;
}

.promo-card-v2 .promo-actions {
    margin-top: 1rem;
}

.promo-card-v2 .promo-ribbon {
    position: absolute;
    top: 10px;
    left: -44px;
    width: 140px;
    transform: rotate(-45deg);
    background: #EF4444;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.35rem 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.promo-card-v2 .promo-premium-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 0 0 0 12px;
    background: rgba(59, 130, 246, 0.78);
    border: 1px solid rgba(59, 130, 246, 0.65);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.35px;
    line-height: 1;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
}

.promo-card.promo-card-v2 {
    border-radius: 16px;
}

.promo-card-v2 {
    background: linear-gradient(180deg, rgba(34, 41, 74, 0.92) 0%, rgba(24, 30, 58, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.promo-card-v2::before {
    opacity: 0.18;
    filter: saturate(0.85);
}

.promo-card-v2::after {
    width: 10px;
    background: linear-gradient(180deg, #8B2BFF 0%, #6D28D9 100%);
    box-shadow: 0 0 0 1px rgba(139, 43, 255, 0.28), 0 0 30px rgba(139, 43, 255, 0.55);
}

.promo-card-v2 .promo-card-body {
    align-items: center;
}

.promo-card-v2 .promo-amount-v2 {
    font-size: 2.2rem;
    letter-spacing: 0.2px;
}

.promo-card-v2 .promo-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
}

.promo-card-v2 .promo-out-label {
    position: absolute;
    top: 8px;
    left: 12px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #000000;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.05;
    text-transform: lowercase;
    opacity: 0.4;
    z-index: 4;
    backdrop-filter: none;
}

.promo-card-v2 .promo-out-label.is-hidden {
    display: none;
}

.promo-card-v2 .promo-premium-badge {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.92) 0%, rgba(96, 165, 250, 0.78) 100%);
    border-color: rgba(96, 165, 250, 0.55);
    border-radius: 0 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
}

.promo-card-v2 .promo-prices {
    left: 12px;
    right: 14px;
    bottom: 12px;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.promo-card-v2 .promo-new-price {
    background: rgba(123, 44, 191, 0.38);
    border: 1px solid rgba(123, 44, 191, 0.95);
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 1.05rem;
}

.promo-card-v2 .promo-old-price {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration-thickness: 2px;
}

.promo-card-v2 .promo-ribbon {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: auto;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.65);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
    z-index: 4;
}

.promo-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
    border-color: rgba(139, 43, 255, 0.35);
}

.promo-card-v2.is-out {
    opacity: 1;
}

.promo-card-v2.is-out .promo-card-body,
.promo-card-v2.is-out .promo-prices,
.promo-card-v2.is-out .promo-ribbon,
.promo-card-v2.is-out .promo-premium-badge {
    opacity: 0.65;
}

.promo-card-v2.is-out:hover {
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

.promo-card-v2.is-out .btn,
.promo-card-v2.is-out button {
    cursor: not-allowed;
}

.promo-card-v2.is-out .btn-primary:hover,
.promo-card-v2.is-out .btn-primary:focus {
    background: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.promo-card-v2.is-out .promo-icon {
    opacity: 0.75;
}

.promo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.2);
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.promo-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.promo-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.promo-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.promo-stock.low {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.promo-stock.out {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3B82F6;
    color: #3B82F6;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.mobile-login-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header & Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-login-btn {
        display: inline-flex !important;
        margin-right: 0.5rem;
        order: 2;
    }
    
    nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    nav .logo {
        order: 1;
        flex: 1;
    }
    
    nav .mobile-header-social-links {
        order: 2;
    }
    
    nav .mobile-login-btn {
        order: 3;
    }
    
    nav .mobile-menu-toggle {
        order: 4;
    }

    .nav-links-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 1rem;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links-wrapper.active {
        display: flex;
    }
    
    .nav-links-left,
    .nav-links-right {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .header-social-links {
        display: none;
    }
    
    /* Скрываем кнопку "Войти" внутри nav-links на мобильных, так как она теперь в хедере */
    .nav-links .auth-buttons {
        display: none;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links .btn {
        margin: 0 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .auth-buttons .btn {
        width: calc(100% - 3rem);
        margin: 0 1.5rem;
        justify-content: center;
    }
    
    .logo {
        font-size: 1.25rem;
        text-transform: none !important;
    }
    
    /* Main Content */
    main {
        padding: 2rem 0;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    /* Forms */
    .transfer-form {
        gap: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .amount-buttons {
        gap: 0.5rem;
    }
    
    .amount-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Promo Grid */
    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        justify-items: stretch;
        gap: 0.75rem;
    }
    
    .promo-card {
        width: 100%;
        padding: 1.25rem;
    }
    
    .promo-card-v2 {
        padding: 0.85rem;
        padding-right: 1.75rem;
        padding-bottom: 2.6rem;
    }

    .promo-card-v2::after {
        top: 0;
        bottom: 0;
        right: 0;
        width: 6px;
        border-radius: 0 12px 12px 0;
        z-index: 1;
    }

    .promo-card-v2 .promo-card-body {
        gap: 0.6rem;
    }

    .promo-card-v2 .promo-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: transparent;
        border: none;
    }

    .promo-card-v2 .promo-icon img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        display: block;
        filter: none;
        opacity: 1;
    }

    .promo-card-v2 .promo-amount-v2 {
        font-size: 1.25rem;
    }

    .promo-card-v2 .promo-subtitle {
        font-size: 0.85rem;
    }

    .promo-card-v2 .promo-prices {
        left: 8px;
        bottom: 8px;
        gap: 0.4rem;
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .promo-card-v2 .promo-new-price {
        padding: 0.28rem 0.55rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .promo-card-v2 .promo-ribbon {
        top: 8px;
        left: -46px;
        width: 128px;
        font-size: 0.8rem;
        padding: 0.28rem 0;
    }

    .promo-card-v2 .promo-premium-badge {
        top: 0;
        right: 0;
        padding: 0.32rem 0.6rem;
        font-size: 0.72rem;
        border-radius: 0 0 0 12px;
    }

    .promo-price {
        font-size: 1.1rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Tables */
    .table-container {
        font-size: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    th {
        font-size: 0.75rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    footer .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Robux Display */
    .robux-display {
        font-size: 1.25rem;
    }
    
    .robux-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Available Balance */
    .available-balance {
        padding: 0.875rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* Admin Tabs */
    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .admin-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Social Login */
    .social-login {
        gap: 0.75rem;
    }
    
    .social-btn {
        padding: 0.875rem;
    }
    
    /* Form Container */
    .form-container {
        max-width: 100%;
    }
    
    /* Purchase Card */
    .purchase-card {
        width: 220px;
        padding: 0.875rem;
    }
    
    .purchase-avatar {
        width: 50px;
        height: 50px;
    }
    
    .purchase-amount {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .carousel-btn-prev {
        left: -10px;
    }
    
    .carousel-btn-next {
        right: -10px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    main {
        padding: 1.5rem 0;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.35rem;
    }
    
    .amount-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .promo-card {
        padding: 1rem;
    }
    
    .promo-amount {
        font-size: 1.1rem;
    }
    
    .promo-price {
        font-size: 1rem;
    }
    
    .robux-display {
        font-size: 1.1rem;
    }
    
    .purchase-card {
        width: 200px;
    }
    
    .purchase-avatar {
        width: 45px;
        height: 45px;
    }
    
    footer {
        padding: 1.5rem 0 1rem;
    }
    
    footer .container > div:first-child {
        gap: 1.5rem !important;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(123, 44, 191, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social-link {
    transition: color 0.3s;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.footer-social-link:hover {
    color: var(--text-primary) !important;
}

.footer-help-link {
    transition: color 0.3s;
}

.footer-help-link:hover {
    color: var(--text-primary) !important;
}

.carousel-card {
    position: relative;
    overflow: hidden;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
}

.carousel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.carousel-card .card-title,
.carousel-card .purchases-carousel-container {
    position: relative;
    z-index: 1;
}

.carousel-card .card-title {
    margin-bottom: 1rem;
}

.purchases-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.purchases-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none; /* Firefox - скрываем скроллбар */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0.35rem 1rem;
    margin: 0;
    width: 100%;
}

.purchases-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - скрываем скроллбар */
}

.purchase-card {
    flex: 0 0 auto;
    width: 300px;
    min-width: 280px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

/* Мобильная верстка для карусели */
@media (max-width: 768px) {
    .purchases-carousel-container {
        margin: 0;
        padding: 0;
    }

    .purchases-carousel {
        padding: 0.35rem 1rem;
        gap: 0.75rem;
    }

    .purchase-card {
        width: 250px;
        min-width: 220px;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .purchase-avatar {
        width: 46px !important;
        height: 46px !important;
    }

    .purchase-amount {
        font-size: 1rem !important;
    }

    .purchase-username {
        font-size: 0.85rem !important;
    }
}

.purchase-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.purchase-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.purchase-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.purchase-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.purchase-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.robux-icon-small {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.purchase-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.8;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -20px;
}

.carousel-btn-next {
    right: -20px;
}

@media (max-width: 768px) {
    .purchase-card {
        width: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn-prev {
        left: -15px;
    }
    
    .carousel-btn-next {
        right: -15px;
    }
}

/* Statistics Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 338px));
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.stat-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.625rem 1.625rem 1.495rem 1.625rem;
    min-height: 156px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card-main:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.2);
}

.stat-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    pointer-events: none;
}

.stat-card-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(123, 44, 191, 0.14);
    border: 1px solid rgba(123, 44, 191, 0.45);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.stat-icon {
    width: 57px;
    height: 57px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: white;
    font-size: 1.43rem;
    position: relative;
    z-index: 1;
}

.stat-icon svg {
    width: 29px;
    height: 29px;
}

.stat-label-main {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.stat-value-main {
    font-size: 2.73rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-value-main .robux-icon-small {
    width: 31px;
    height: 31px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: minmax(0, 320px);
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-card-main {
        padding: 1.1rem 1.1rem 1rem 1.1rem;
        min-height: 110px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
        margin-bottom: 0;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stat-value-main {
        font-size: 1.85rem;
    }
    
    .stat-value-main .robux-icon-small {
        width: 22px;
        height: 22px;
    }

    .stat-badge {
        height: 24px;
        padding: 0 9px;
        font-size: 0.78rem;
    }
}

/* Exchange Modal Styles */
.exchange-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.exchange-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.exchange-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.exchange-modal.is-open .exchange-modal-overlay {
    opacity: 1;
}

.exchange-modal-container {
    position: relative;
    width: 90%;
    max-width: 972px;
    max-height: 90vh;
    display: flex;
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.exchange-modal.is-open .exchange-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (min-width: 769px) {
    .exchange-modal-container {
        transform: translateY(12px) scale(0.735);
    }

    .exchange-modal.is-open .exchange-modal-container {
        transform: translateY(0) scale(0.75);
    }
}

.exchange-progress {
    width: 80px;
    background: var(--bg-card);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-step {
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.2);
}

.progress-step.completed .step-circle {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.progress-line {
    width: 2px;
    height: 40px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

@media (min-width: 769px) {
    .exchange-progress {
        width: 60px;
        padding: 1.5rem 0.75rem;
    }

    .progress-steps {
        gap: 0.375rem;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .progress-step.active .step-circle {
        box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.2);
    }

    .progress-line {
        height: 30px;
        margin: 0.2rem 0;
    }
}

.progress-step.active ~ .progress-step .step-circle {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.exchange-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exchange-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.exchange-header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exchange-amount-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exchange-currency {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.exchange-robux-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exchange-modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.exchange-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.exchange-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.exchange-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.exchange-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exchange-step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.exchange-step-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.gamepass-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-color);
    color: white;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    width: fit-content;
    cursor: pointer;
    user-select: none;
    margin: 0 0 1rem 0;
}

.gamepass-copy-pill.is-copied {
    background: var(--success-color);
}

.gamepass-copy-pill__amount {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
}

.gamepass-copy-pill__btn {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gamepass-copy-pill__btn i {
    font-size: 0.95rem;
}

.exchange-input-group {
margin-bottom: 1.5rem;
position: relative;
}

.exchange-input-wrapper {
position: relative;
display: flex;
align-items: center;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 0.75rem 1rem;
overflow: hidden;
transition: all 0.3s;
}

.exchange-input-wrapper:focus-within {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.exchange-input-icon {
color: var(--primary-color);
margin-right: 0.75rem;
font-size: 1.1rem;
}

.exchange-input {
flex: 1;
min-width: 0;
width: 100%;
background: none;
border: none;
color: var(--text-primary);
font-size: 1rem;
outline: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.exchange-input.with-chip {
flex: 0 0 auto;
width: 1px;
padding: 0;
margin: 0;
opacity: 0;
pointer-events: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.selected-roblox-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.8rem;
    margin-right: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.selected-roblox-profile:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
}

.selected-roblox-profile__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.selected-roblox-profile__name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
}

.exchange-input::placeholder {
    color: var(--text-secondary);
}

.username-suggestions {
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.username-suggestion {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.username-suggestion:last-child {
    border-bottom: none;
}

.username-suggestion:hover {
    background: var(--bg-hover);
}

.username-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.username-name {
    font-weight: 600;
    color: var(--text-primary);
}

.exchange-info-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.exchange-btn-next,
.exchange-btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.exchange-btn-next:hover:not(:disabled),
.exchange-btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.4);
}

.exchange-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.exchange-btn-secondary {
    padding: 1rem 2rem;
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.exchange-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.exchange-btn-secondary:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.exchange-btn-loading-primary {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    position: relative;
    overflow: hidden;
}

.exchange-btn-loading-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: exchangeBtnShimmer 1.1s ease-in-out infinite;
}

@keyframes exchangeBtnShimmer {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

.exchange-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.exchange-btn-group .exchange-btn-secondary {
    flex: 1;
}

.exchange-btn-group .exchange-btn-next {
    flex: 1;
}

@media (min-width: 769px) {
    .exchange-modal-body {
        padding: 2.25rem;
    }

    .exchange-close {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
    }

    .exchange-step-title {
        font-size: 2.35rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .exchange-step-subtitle {
        font-size: 1.25rem;
        line-height: 1.35;
        margin-bottom: 2.25rem;
    }

    .exchange-input-wrapper {
        padding: 1rem 1.25rem;
        border-radius: 16px;
    }

    .exchange-input-icon {
        font-size: 1.4rem;
        margin-right: 1rem;
    }

    .exchange-input {
        font-size: 1.25rem;
    }

    .selected-roblox-profile {
        gap: 0.75rem;
        padding: 0.55rem 1rem;
        margin-right: 0.85rem;
    }

    .selected-roblox-profile__avatar {
        width: 26px;
        height: 26px;
    }

    .selected-roblox-profile__name {
        font-size: 1.1rem;
    }

    .exchange-info-text {
        font-size: 1.1rem;
        margin-bottom: 2.25rem;
    }

    .exchange-btn-next,
    .exchange-btn-primary,
    .exchange-btn-secondary {
        font-size: 1.25rem;
        padding: 1.25rem 2rem;
        border-radius: 16px;
    }

    .exchange-progress {
        width: 88px;
        padding: 2rem 1.1rem;
    }

    .step-circle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .progress-line {
        height: 44px;
    }
}

/* Places List */
.places-list {
    margin-bottom: 2rem;
}

.place-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.place-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.place-card.selected {
    border-color: var(--primary-color);
    background: rgba(123, 44, 191, 0.1);
}

.place-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-hover);
    flex-shrink: 0;
}

.place-info {
    flex: 1;
}

.place-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.place-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-placeholder .loading {
    margin: 0 auto 1rem;
}

/* Game-Pass Instructions */
.gamepass-instructions {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.instructions-content {
    display: flex;
    gap: 2rem;
}

.instructions-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.instructions-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-section {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.menu-item {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--bg-hover);
    color: var(--primary-color);
    font-weight: 600;
}

.instructions-main {
    flex: 1;
}

.instructions-main h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.instructions-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.create-pass-section {
    text-align: center;
    padding: 2rem;
}

.create-pass-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.create-pass-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.instructions-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.instructions-text strong {
    color: var(--text-primary);
}

/* Game-Passes List */
.gamepasses-list {
    margin-bottom: 2rem;
}

.gamepass-settings-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    width: 100%;
}

.gamepass-settings-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.gamepass-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gamepass-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.gamepass-card.selected {
    border-color: var(--primary-color);
    background: rgba(123, 44, 191, 0.1);
}

.gamepass-icon {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--bg-hover);
    object-fit: cover;
    flex-shrink: 0;
}

.gamepass-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gamepass-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gamepass-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Confirm Details */
.confirm-details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.confirm-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
}

/* New Confirm Order Design */
.confirm-order-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.confirm-user-section {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.3) 0%, rgba(90, 24, 154, 0.4) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.confirm-user-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(90, 24, 154, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.confirm-user-avatar-wrapper {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.confirm-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.confirm-user-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.confirm-user-name {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.confirm-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.confirm-amount-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.confirm-amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.confirm-amount-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.confirm-pay-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .exchange-modal-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 16px;
        flex-direction: column;
    }

    .exchange-modal-container[data-current-step="1"] {
        width: 100%;
        max-width: 100%;
    }
    
    .exchange-content {
        min-height: 0;
    }
    
    .exchange-progress {
        width: 100%;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .progress-steps {
        flex-direction: row;
        justify-content: center;
    }
    
    .exchange-modal-body {
        padding: 1.5rem;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .exchange-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .exchange-step-title {
        font-size: 1.5rem;
    }
    
    .instructions-content {
        flex-direction: column;
    }
    
    .instructions-sidebar {
        width: 100%;
    }
    
    .instructions-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .places-list {
        max-height: 45vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 2px;
    }
    
    .place-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1rem;
        gap: 1rem;
    }
    
    .place-thumbnail {
        width: 72px;
        height: 72px;
    }
    
    .place-name {
        font-size: 1.1rem;
    }
    
    .place-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .exchange-btn-group {
        flex-direction: column;
    }

    .exchange-step[data-step="3"] .rbxsell-purchase-view {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .exchange-step[data-step="3"] .rbxsell-purchase-view > div {
        display: block !important;
        min-height: 0 !important;
    }
    
    .exchange-step[data-step="3"] .rbxsell-purchase-view__sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 1rem !important;
    }
    
    .exchange-step[data-step="3"] .rbxsell-purchase-view__content {
        padding: 1rem !important;
    }
    
    /* Confirm Order Mobile Styles */
    .confirm-order-container {
        padding: 1.5rem;
    }
    
    .confirm-user-section {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .confirm-user-avatar,
    .confirm-user-avatar-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .confirm-user-avatar-placeholder {
        font-size: 1.75rem;
    }
    
    .confirm-user-name {
        font-size: 1.25rem;
    }
    
    .confirm-amounts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .confirm-amount-value {
        font-size: 1.75rem;
    }
    
    .confirm-pay-btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .exchange-step[data-step="1"] .exchange-step-title {
        padding-right: 3.25rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.15;
    }
}

@media (max-width: 480px) {
    .exchange-step[data-step="1"] .exchange-step-title {
        font-size: 1.35rem;
        padding-right: 3rem;
    }
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.auth-modal.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.auth-modal.is-open .auth-modal-overlay {
    opacity: 1;
}

.auth-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    z-index: 99999;
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.auth-modal.is-open .auth-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auth-modal-body {
    padding: 0;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

.auth-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 2rem 0;
    position: relative;
    border-bottom: none;
    margin-bottom: 0;
}

.auth-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
    flex: 1;
    padding-right: 3rem;
    margin-top: 0;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.auth-content {
    display: none;
    padding: 2rem;
}

.auth-content.active {
    display: block;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-input-icon-right {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    font-size: 0.9rem;
    pointer-events: auto;
}

.form-input-icon-right:hover {
    color: var(--primary-color);
}

.form-input-wrapper .form-input {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #3a3a3a;
    border: none;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

.form-input-wrapper .form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.3);
}

.form-input-wrapper .form-input::placeholder {
    color: var(--text-secondary);
}

.form-input-wrapper .form-input[type="password"] {
    padding-right: 3rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.3);
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    margin-bottom: 0;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

.social-login-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a2a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icon-btn:hover {
    background: #353535;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icon-btn.google-btn {
    background: #2a2a2a;
}

.google-icon {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    font-family: 'Roboto', sans-serif;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.auth-switch-btn {
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

.auth-switch-btn:hover {
    background: #353535;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Avatar circle styles */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .auth-modal {
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: center !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        z-index: 99999 !important;
    }
    
    .auth-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 99998 !important;
    }
    
    .auth-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .auth-modal-body {
        padding: 0 !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .auth-modal-header {
        padding: 1rem 1rem 0 !important;
    }
    
    .auth-content {
        padding: 1.5rem !important;
    }
    
    .auth-title {
        font-size: 1.5rem;
        margin-top: 1rem !important;
    }
    
    .auth-tab {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .auth-close {
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 35px !important;
        height: 35px !important;
        z-index: 100000 !important;
        position: absolute !important;
    }
    
    /* Убеждаемся, что модальное окно всегда видно */
    .auth-modal.is-open {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Дополнительные стили для реальных мобильных устройств */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .auth-modal {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .auth-modal-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .auth-modal {
            height: -webkit-fill-available !important;
            min-height: -webkit-fill-available !important;
        }
        
        .auth-modal-container {
            height: -webkit-fill-available !important;
            min-height: -webkit-fill-available !important;
        }
        
        .auth-modal-body {
            min-height: -webkit-fill-available !important;
        }
    }
}

/* Exchange Tabs */
.exchange-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    margin-top: -2rem;
}

.exchange-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.exchange-tab:hover {
    color: var(--text-primary);
}

.exchange-tab.active {
    color: var(--primary-color);
}

.exchange-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.exchange-tab-content {
    display: none;
}

.exchange-tab-content.active {
    display: block;
}

/* Promo Codes Modal */
.promo-codes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.promo-codes-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.promo-codes-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.promo-codes-modal.is-open .promo-codes-modal-overlay {
    opacity: 1;
}

.promo-codes-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    z-index: 10001;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.promo-codes-modal.is-open .promo-codes-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.promo-codes-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.promo-codes-modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.promo-codes-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.promo-modal-link,
.promo-modal-link:visited {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-code-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.promo-code-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.promo-code-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.promo-code-stock.low {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.promo-code-stock.out {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Mobile Styles for Tabs and Modal */
@media (max-width: 768px) {
    .exchange-tabs {
        margin-top: -1.5rem;
        margin-bottom: 1.5rem;
        gap: 0;
    }
    
    .exchange-tab {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 44px; /* Для удобства на мобильных */
        touch-action: manipulation; /* Улучшает отзывчивость на мобильных */
    }
    
    .promo-codes-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .promo-codes-modal.centered-mobile {
        align-items: center;
        padding: 1rem;
        overflow-y: hidden;
    }
    
    .promo-codes-modal-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 1.5rem;
        margin: 0;
    }

    .promo-codes-modal.centered-mobile .promo-codes-modal-container {
        width: 90%;
        max-width: 720px;
        max-height: 90vh;
        border-radius: 16px;
        margin: 0;
    }
    
    .promo-codes-modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        padding-right: 3rem;
        padding-left: 3rem;
    }
    
    .promo-codes-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        justify-content: stretch;
        justify-items: stretch;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
    }

    .promo-codes-grid .promo-card,
    .promo-codes-grid .promo-card-v2 {
        width: 100%;
        max-width: none;
    }

    .promo-codes-grid .promo-card-v2 {
        padding: 0.7rem;
        padding-right: 1.25rem;
        padding-bottom: 3.1rem;
    }

    .promo-codes-grid .promo-card-v2 .promo-old-price {
        font-size: 0.78rem;
    }

    .promo-codes-grid .promo-card-v2 .promo-new-price {
        font-size: 0.82rem;
        padding: 0.26rem 0.55rem;
        border-radius: 8px;
    }

    .promo-codes-grid .promo-card-v2 .promo-card-body {
        justify-content: flex-start;
        gap: 0.7rem;
        margin-top: 12px;
    }

    .promo-codes-grid .promo-card-v2 .promo-icon {
        width: 54px;
        height: 54px;
        border-radius: 12px;
    }

    .promo-codes-grid .promo-card-v2 .promo-icon img {
        width: 54px;
        height: 54px;
    }

    .promo-codes-grid .promo-card-v2 .promo-info {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .promo-codes-grid .promo-card-v2 .promo-amount-v2 {
        font-size: clamp(1.55rem, 6vw, 2.25rem);
        line-height: 1;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .promo-codes-grid .promo-card-v2 .promo-subtitle {
        font-size: 0.95rem;
        line-height: 1.05;
    }

    .promo-codes-grid .promo-card-v2 .promo-premium-badge {
        width: fit-content !important;
        max-width: 92px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        padding: 0.22rem 0.42rem !important;
        font-size: 0.62rem !important;
        border-radius: 0 0 0 10px !important;
    }

    .promo-codes-grid .promo-card-v2 .promo-prices {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 0;
        pointer-events: none;
    }

    .promo-codes-grid .promo-card-v2 .promo-old-price {
        font-size: 0.72rem;
        white-space: nowrap;
        position: absolute;
        right: 14px;
        bottom: 10px;
        pointer-events: none;
    }

    .promo-codes-grid .promo-card-v2 .promo-new-price {
        font-size: 0.8rem;
        padding: 0.24rem 0.5rem;
        border-radius: 8px;
        white-space: nowrap;
        position: absolute;
        left: 8px;
        bottom: 10px;
        pointer-events: none;
    }

    .promo-codes-grid .promo-card-v2 .promo-ribbon {
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.22rem 0.52rem;
        border-radius: 999px;
        background: rgba(14, 165, 233, 0.85);
        border: 1px solid rgba(14, 165, 233, 0.65);
        color: #ffffff;
        font-weight: 900;
        font-size: 0.8rem;
        line-height: 1;
        box-shadow: 0 10px 20px rgba(14, 165, 233, 0.22);
        z-index: 4;
        white-space: nowrap;
        max-width: calc(100% - 140px);
    }

    .promo-codes-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px; /* Увеличено для удобства на мобильных */
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .promo-codes-page .promo-card-v2,
    .promo-codes-grid .promo-card-v2 {
        padding-bottom: 3.35rem;
    }

    .promo-codes-page .promo-card-v2 .promo-card-body,
    .promo-codes-grid .promo-card-v2 .promo-card-body {
        align-items: center;
        margin-top: 8px;
        gap: 0.55rem;
    }

    .promo-codes-page .promo-card-v2 .promo-out-label,
    .promo-codes-grid .promo-card-v2 .promo-out-label {
        top: 4px;
        left: 10px;
        padding: 0;
        background: transparent;
        border: none;
        font-size: 0.62rem;
        line-height: 1.05;
        max-width: 50%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .promo-codes-page .promo-card-v2 .promo-premium-badge,
    .promo-codes-grid .promo-card-v2 .promo-premium-badge {
        width: 33% !important;
        max-width: 33% !important;
        min-width: 0 !important;
        padding: 0.2rem 0.4rem;
        font-size: 0.4rem !important;
        line-height: 1 !important;
        box-sizing: border-box;
    }

    .promo-codes-page .promo-card-v2 .promo-icon,
    .promo-codes-page .promo-card-v2 .promo-icon img,
    .promo-codes-grid .promo-card-v2 .promo-icon,
    .promo-codes-grid .promo-card-v2 .promo-icon img {
        width: 46px;
        height: 46px;
    }

    .promo-codes-page .promo-card-v2 .promo-icon,
    .promo-codes-grid .promo-card-v2 .promo-icon {
        position: relative;
        top: -2px !important;
        margin-top: 0;
    }

    .promo-codes-page .promo-card-v2 .promo-info,
    .promo-codes-grid .promo-card-v2 .promo-info {
        position: relative;
        top: -2px !important;
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .promo-codes-page .promo-card-v2 .promo-amount-v2,
    .promo-codes-grid .promo-card-v2 .promo-amount-v2 {
        font-size: clamp(1.25rem, 5.2vw, 1.95rem);
        line-height: 1;
        white-space: nowrap;
    }

    .promo-codes-page .promo-card-v2 .promo-subtitle,
    .promo-codes-grid .promo-card-v2 .promo-subtitle {
        font-size: 0.78rem;
        line-height: 1.05;
        opacity: 0.82;
    }

    .promo-codes-page .promo-card-v2 .promo-prices,
    .promo-codes-grid .promo-card-v2 .promo-prices {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 0;
        pointer-events: none;
    }

    .promo-codes-page .promo-card-v2 .promo-new-price,
    .promo-codes-grid .promo-card-v2 .promo-new-price {
        position: absolute;
        left: 8px;
        bottom: 4px;
        font-size: 0.44rem !important;
        padding: 0.18rem 0.36rem;
        border-radius: 8px;
        white-space: nowrap;
        pointer-events: none;
        z-index: 4;
    }

    .promo-codes-page .promo-card-v2 .promo-old-price,
    .promo-codes-grid .promo-card-v2 .promo-old-price {
        position: absolute;
        right: 14px;
        bottom: 4px;
        font-size: 0.4rem !important;
        white-space: nowrap;
        pointer-events: none;
        z-index: 4;
    }

    .promo-codes-page .promo-card-v2 .promo-ribbon,
    .promo-codes-grid .promo-card-v2 .promo-ribbon {
        top: auto !important;
        left: auto;
        bottom: 4px !important;
        transform: none;
        width: auto !important;
        padding: 0.16rem 0.34rem !important;
        border-radius: 999px !important;
        font-size: 0.4rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        max-width: calc(100% - 140px) !important;
        overflow: visible !important;
        text-overflow: clip !important;
        z-index: 5 !important;
    }

}

/* Extra Small Devices */
@media (max-width: 480px) {
    .exchange-tab {
        padding: 0.75rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .promo-codes-modal-container {
        padding: 1.25rem;
    }
    
    .promo-codes-modal-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        text-align: center;
        padding-right: 3rem;
        padding-left: 3rem;
    }
    
    .promo-code-card {
        padding: 1rem;
    }
    
    .promo-code-amount {
        font-size: 1.1rem;
    }
    
    .promo-code-price {
        font-size: 1rem;
    }

    .promo-code-copy-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .promo-code-copy-row .btn {
        width: 100%;
        min-width: 0 !important;
    }
}

.promo-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.promo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.promo-modal-overlay {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.promo-modal.is-open .promo-modal-overlay {
    opacity: 1;
}

.promo-modal-container {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.promo-modal.is-open .promo-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#paymentModal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

#paymentModal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

#paymentModal .card {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

#paymentModal.is-open .card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    position: relative;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--error-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 8px 8px;
    transition: width linear;
}

@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;
    }
}

.notification.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: 100%;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
}

.mobile-menu[style*="display: flex"] {
    display: flex !important;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.mobile-menu-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mobile-menu-card {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.mobile-menu-card:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.mobile-menu-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mobile-menu-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-menu-button:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.mobile-menu-button-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.step3-guide {
    max-width: 900px;
    margin: 0.5rem auto 0;
}

.step3-guide-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.step3-guide-frame {
    display: none;
}

.step3-guide-frame.is-active {
    display: block;
    animation: step3GuideFade 260ms ease;
}

@keyframes step3GuideFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.step3-guide-panel {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    min-height: 240px;
}

.step3-guide-sidebar {
    width: 190px;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.85rem 0.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.step3-guide-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.step3-guide-item.is-active {
    color: var(--primary-color);
    font-weight: 700;
}

.step3-guide-content {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--bg-primary);
    position: relative;
}

.step3-guide-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
}

.step3-guide-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
}

.step3-guide-tab {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.step3-guide-tab.is-active {
    color: var(--primary-color);
}

.step3-guide-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    background: #1d4ed8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
}

.step3-guide-cursor {
    position: absolute;
    width: 27px;
    height: 27px;
    background: var(--primary-color);
    clip-path: polygon(0 0, 0 100%, 26% 78%, 46% 100%, 60% 90%, 42% 70%, 70% 70%);
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.95));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
    animation: step3CursorBlink 900ms ease-in-out infinite;
    z-index: 5;
}

.step3-guide-cursor--input {
    left: 10px;
    top: 50%;
    transform: translateY(-55%);
    pointer-events: none;
    z-index: 6;
}

.step3-guide-cursor--btn {
    width: 27px;
    height: 27px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-55%);
    pointer-events: none;
    background: var(--primary-color);
    clip-path: polygon(0 0, 0 100%, 26% 78%, 46% 100%, 60% 90%, 42% 70%, 70% 70%);
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.95));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
    animation: step3CursorBlink 900ms ease-in-out infinite;
    z-index: 6;
}

.step3-guide-cursor--btn-outside {
    right: -10px;
}

.step3-guide-form {
    display: grid;
    gap: 1rem;
}

.step3-guide-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.7rem;
}

.step3-guide-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.step3-guide-input {
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 0 0.75rem 0 2.2rem;
    position: relative;
}

.step3-guide-typing {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

.step3-guide-frame[data-frame="2"].is-active .step3-guide-typing {
    animation: step3GuideTyping 1100ms steps(9, end) forwards;
}

@keyframes step3GuideTyping {
    from { width: 0; }
    to { width: 9ch; }
}

.step3-guide-textarea {
    height: 56px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.step3-guide-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.step3-guide-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
}

.step3-guide-btn--primary {
    background: #1d4ed8;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.step3-guide-btn--primary[disabled] {
    opacity: 0.4;
}

@keyframes step3CursorBlink {
0%, 100% { opacity: 0.55; transform: translateY(0) scale(1); }
50% { opacity: 1; transform: translateY(-2px) scale(1.02); }
}

@media (max-width: 768px) {
.step3-guide-panel {
min-height: 220px;
}

.step3-guide-sidebar {
width: 165px;
padding: 0.85rem 0.75rem;
}

.step3-guide-content {
padding: 1rem;
}

.step3-guide-heading {
font-size: 1.2rem;
margin-bottom: 0.6rem;
}

.step3-guide-tabs {
gap: 1.1rem;
margin-bottom: 0.75rem;
}
}

@media (max-width: 560px) {
.step3-guide-panel {
flex-direction: column;
min-height: 0;
}

.step3-guide-sidebar {
width: 100%;
border-right: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
overflow-x: hidden;
overflow-y: hidden;
}

.step3-guide-item {
padding: 0.4rem 0.25rem;
white-space: normal;
}

#step3Container[data-instruction="1"] .step3-guide-panel {
flex-direction: row;
}

#step3Container[data-instruction="1"] .step3-guide-sidebar {
width: 130px;
padding: 0.65rem 0.5rem;
}

#step3Container[data-instruction="1"] .step3-guide-item {
font-size: 0.8rem;
}

#step3Container[data-instruction="1"] .step3-guide-content {
padding: 0.75rem 0.8rem;
}

#step3Container[data-instruction="1"] .exchange-step-title {
font-size: 1.25rem;
margin-bottom: 0.35rem;
}

#step3Container[data-instruction="1"] .exchange-step-subtitle {
font-size: 0.9rem;
margin-bottom: 0.75rem;
}

#step3Container[data-instruction="1"] .gamepass-copy-pill {
padding: 0.45rem 0.65rem;
margin-bottom: 0.75rem;
}

#step3Container[data-instruction="1"] .gamepass-copy-pill__amount {
font-size: 0.85rem;
}

#step3Container[data-instruction="1"] .gamepass-copy-pill__btn {
width: 26px;
height: 26px;
border-radius: 9px;
}

#step3Container[data-instruction="1"] .step3-guide-title {
font-size: 0.9rem;
margin-bottom: 0.35rem;
}

#step3Container[data-instruction="1"] .step3-guide-heading {
font-size: 1.1rem;
margin-bottom: 0.45rem;
}

#step3Container[data-instruction="1"] .step3-guide-tab {
font-size: 0.85rem;
}

#step3Container[data-instruction="1"] .step3-guide-item {
font-size: 0.85rem;
}

#step3Container[data-instruction="1"] .step3-guide-field {
padding: 0.6rem;
}

#step3Container[data-instruction="1"] .step3-guide-label {
font-size: 0.85rem;
margin-bottom: 0.25rem;
}

#step3Container[data-instruction="1"] .step3-guide-input {
height: 26px;
font-size: 0.9rem;
}

#step3Container[data-instruction="1"] .step3-guide-textarea {
height: 46px;
}

#step3Container[data-instruction="1"] .step3-guide-actions {
gap: 0.75rem;
margin-top: 0.4rem;
}

#step3Container[data-instruction="1"] .step3-guide-btn {
padding: 0.65rem;
font-size: 0.95rem;
}

#step3Container[data-instruction="1"] #step3Buttons {
gap: 0.75rem;
margin-top: 0.85rem;
}

#step3Container[data-instruction="1"] #step3Buttons button {
padding: 0.85rem 1.1rem;
font-size: 1rem;
border-radius: 12px;
}

#step3Container[data-instruction="2"] .exchange-step-title {
font-size: 1.25rem;
margin-bottom: 0.35rem;
}

#step3Container[data-instruction="2"] .exchange-step-subtitle {
font-size: 0.9rem;
margin-bottom: 0.75rem;
}

#step3Container[data-instruction="2"] .gamepass-copy-pill {
padding: 0.45rem 0.65rem;
margin-bottom: 0.75rem;
}

#step3Container[data-instruction="2"] .gamepass-copy-pill__amount {
font-size: 0.85rem;
}

#step3Container[data-instruction="2"] #step3Buttons {
gap: 0.75rem;
margin-top: 0.85rem;
}

#step3Container[data-instruction="2"] #step3Buttons button {
padding: 0.85rem 1.1rem;
font-size: 1rem;
border-radius: 12px;
}

#step3Container[data-instruction="2"] .rbxsell-purchase-view {
overflow-x: hidden !important;
}

#step3Container[data-instruction="2"] .rbxsell-purchase-view > div {
display: flex !important;
flex-direction: row !important;
min-height: 0 !important;
}

#step3Container[data-instruction="2"] .rbxsell-purchase-view__sidebar {
width: 140px !important;
padding: 0.75rem 0.6rem !important;
}

#step3Container[data-instruction="2"] .rbxsell-purchase-view__content {
padding: 0.75rem 0.75rem !important;
}
}

@media (max-width: 480px) {
    #step3Container[data-instruction="1"] .step3-guide-sidebar {
        width: 118px;
        padding: 0.6rem 0.45rem;
    }

    #step3Container[data-instruction="1"] .step3-guide-content {
        padding: 0.65rem 0.7rem;
    }

    #step3Container[data-instruction="2"] .rbxsell-purchase-view__sidebar {
        width: 120px !important;
        padding: 0.65rem 0.5rem !important;
    }

    #step3Container[data-instruction="2"] .rbxsell-purchase-view__content {
        padding: 0.65rem 0.65rem !important;
    }

    .mobile-menu-container {
        max-width: 100%;
        border-left: none;
    }

    .mobile-menu-cards {
        grid-template-columns: 1fr;
    }
}

.np-promo-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1280 / 835;
    border-radius: 18px;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    container-type: inline-size;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    letter-spacing: 0;
    background: url('/assets/images/new-promo/rectangle_2.png') no-repeat center / cover;
}

.np-promo-card.is-out {
    cursor: not-allowed;
    background: #7a7a7a;
}

.np-promo-card.is-out::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3.9844%;
    height: 100%;
    background: #d1d1d1;
    z-index: 1;
}

.np-promo-card.is-out .np-promo-card__stripe {
    display: none;
}

.np-promo-card.is-out .np-promo-card__price,
.np-promo-card.is-out .np-promo-card__premium {
    background: #d1d1d1;
}

.np-promo-card.is-out .np-promo-card__price {
    box-shadow: none;
}

.np-promo-card.is-out .np-promo-card__out {
    opacity: 1;
    color: #d1d1d1;
}

.np-promo-card.is-out .np-promo-card__amount {
    color: #d1d1d1;
}

.np-promo-card.is-out .np-promo-card__subtitle {
    opacity: 1;
    color: #d1d1d1;
}

.np-promo-card.is-out .np-promo-card__price-inner {
    color: #ffffff;
}

.np-promo-card.is-out .np-promo-card__discount {
    color: #a1a09e;
    background: #d1d1d1;
    background-image: none;
    -webkit-mask: url('/assets/images/new-promo/layer_3.png') no-repeat center / contain;
    mask: url('/assets/images/new-promo/layer_3.png') no-repeat center / contain;
}

.np-promo-card.is-out .np-promo-card__premium {
    color: #a1a09e;
    background: #d1d1d1;
    background-image: none;
    -webkit-mask: url('/assets/images/new-promo/layer_5.png') no-repeat center / contain;
    mask: url('/assets/images/new-promo/layer_5.png') no-repeat center / contain;
}

.np-promo-card.is-out .np-promo-card__old-price {
    opacity: 1;
    color: #d1d1d1;
    text-decoration-color: #d1d1d1;
}

.np-promo-card__price {
    position: absolute;
    left: 3.3%;
    top: 77.84%;
    width: 26.33%;
    padding: 0.63cqw 0 0.70cqw;
    background: url('/assets/images/new-promo/layer_1.png') no-repeat center top;
    background-size: 100% 100%;
    border-radius: clamp(8px, 1.10cqw, 14px);
    box-shadow: inset 0 0 0 clamp(2px, 0.234cqw, 3px) #4b2b7d;
    box-sizing: border-box;
    background-clip: padding-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.np-promo-card__price-inner {
    width: 94.36%;
    min-height: 10.39cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 5.58cqw;
    line-height: 1;
    white-space: nowrap;
    padding: 0 0.25em;
    box-sizing: border-box;
    color: #ffffff;
}

@container (max-width: 420px) {
    .np-promo-card__price-inner {
        font-size: 5.20cqw;
        padding: 0 0.35em;
    }
}

@container (max-width: 360px) {
    .np-promo-card__price-inner {
        font-size: 4.90cqw;
        padding: 0 0.40em;
    }
}

.np-promo-card__discount {
    position: absolute;
    left: 30.55%;
    top: 80.84%;
    width: 16.09%;
    height: 11.86%;
    background: url('/assets/images/new-promo/layer_3.png') no-repeat center / contain;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 5.09cqw;
    line-height: 7.73cqw;
    color: #ffffff;
    z-index: 2;
}

.np-promo-card__old-price {
    position: absolute;
    left: 50.4%;
    top: 84.67%;
    font-weight: 700;
    font-size: 4.77cqw;
    line-height: 4.92cqw;
    opacity: 0.33;
    text-align: center;
    color: #a5a8b9;
    text-decoration-line: line-through;
    text-decoration-color: #059bd6;
    text-decoration-thickness: 0.12em;
    text-decoration-skip-ink: none;
    white-space: nowrap;
    z-index: 2;
}

.np-promo-card__amount {
    position: absolute;
    left: 37.1%;
    top: 20.96%;
    font-weight: 900;
    font-size: 16.29cqw;
    line-height: 16.64cqw;
    color: #ffffff;
    white-space: nowrap;
    z-index: 2;
    text-align: center;
}

.np-promo-card__subtitle {
    position: absolute;
    left: 38.2%;
    top: 50.66%;
    font-weight: 700;
    font-size: 8.89cqw;
    line-height: 11.48cqw;
    opacity: 0.36;
    color: #adb1bc;
    white-space: nowrap;
    z-index: 2;
    text-align: center;
}

.np-promo-card__icon {
    position: absolute;
    left: 4.06%;
    top: 23.83%;
    width: 27.03%;
    height: auto;
    z-index: 2;
}

.np-promo-card__minus {
    position: absolute;
    left: 50.23%;
    top: 85.27%;
    font-weight: 700;
    font-size: 3.17cqw;
    line-height: 3.44cqw;
    opacity: 0.85;
    color: #ffffff;
    z-index: 2;
    text-align: right;
    display: none;
}

.np-promo-card__stripe {
    position: absolute;
    left: 96.02%;
    top: 0.36%;
    width: 3.9844%;
    height: auto;
    z-index: 2;
}

.np-promo-card__out {
    position: absolute;
    left: 4.53%;
    top: 8.02%;
    font-weight: 600;
    font-size: 7.11cqw;
    line-height: 7.11cqw;
    opacity: 0.05;
    color: #ffffff;
    z-index: 2;
    text-align: center;
}

.np-promo-card__premium {
    position: absolute;
    left: 62.66%;
    top: 0.24%;
    width: 37.34%;
    height: 16.17%;
    background: url('/assets/images/new-promo/layer_5.png') no-repeat center / contain;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 4.78cqw;
    line-height: 1;
    color: #ffffff;
    z-index: 2;
}

.np-promo-card__discount.is-hidden,
.np-promo-card__old-price.is-hidden,
.np-promo-card__minus.is-hidden,
.np-promo-card__premium.is-hidden,
.np-promo-card__out.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .np-promo-card {
        max-width: none;
        aspect-ratio: 1280 / 835;
    }

    .promo-codes-grid .np-promo-card {
        width: 88%;
        margin: 0 auto;
        border-radius: 14px;
    }

    .promo-codes-grid .np-promo-card__price {
        border-radius: clamp(6px, 0.90cqw, 10px);
    }

    .promo-codes-grid .np-promo-card__price {
        top: 75.84%;
    }

    .promo-codes-grid .np-promo-card__discount {
        top: 78.84%;
    }

    .promo-codes-grid .np-promo-card__old-price {
        top: 82.67%;
    }
}

@media (max-width: 480px) {
    .np-promo-card {
        aspect-ratio: 1280 / 835;
    }
}

@media (max-width: 360px) {
    .np-promo-card {
        aspect-ratio: 1280 / 835;
    }
}