::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}

.user-info {
    margin-top: 20px;
    padding: 10px;
    background: rgba(30, 30, 48, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tg-user {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.tg-user span:first-child {
    font-weight: 500;
    color: var(--text-color);
}

.level-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.level-label {
    color: var(--text-secondary);
}

.level-number {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.5rem;
}

.progress-container {
    width: 100%;
    margin-top: 20px;
    background: rgba(30, 30, 48, 0.4);
    border-radius: 10px;
    height: 10px;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(123, 108, 246, 0.5);
}

.level-up-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.level-up-icon {
    font-size: 4rem;
    animation: float 2s ease-in-out infinite;
}

.level-up-content h2 {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-up-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.level-up-content p span {
    font-weight: 700;
    color: var(--accent-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.spaceship-image {
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spaceship-image:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }

    to {
        transform: perspective(400px) rotateY(0);
        opacity: 1;
    }
}

.boost-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(123, 108, 246, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(123, 108, 246, 0.5);
    font-size: 0.9rem;
    color: #a594ff;
    display: inline-block;
}

.boost-info .multiplier {
    font-weight: bold;
    color: #fff;
}

.boost-active .tap-area {
    box-shadow: 0 0 20px rgba(123, 108, 246, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(123, 108, 246, 0.7);
    }

    50% {
        box-shadow: 0 0 25px rgba(123, 108, 246, 0.9);
    }

    100% {
        box-shadow: 0 0 10px rgba(123, 108, 246, 0.7);
    }
}

.milestones-menu {
    width: 100%;
    background: rgba(30, 30, 48, 0.9);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    gap: 5px;
}

.milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 8px 5px;
    border-radius: 8px;
    background: rgba(20, 20, 30, 0.6);
    min-width: 0;
    text-align: center;
}

.milestone-level {
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.milestone-reward {
    font-size: 0.8rem;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.current-level {
    background: var(--accent-gradient);
    color: white;
}

.achieved {
    border: 2px solid #7b6cf6;
}

.currency-display {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 30, 48, 0.7);
    border-radius: 20px;
    border: none;
    font-size: 1rem;
    z-index: 10;
    background: none;
}

.currency-display i {
    color: gold;
}

.level-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 1.2rem;
    color: gold;
}

.level-reward i {
    font-size: 1.5rem;
}

.currency-earned {
    position: absolute;
    animation: coinBounce 0.5s ease-out;
    color: gold;
    font-weight: bold;
    pointer-events: none;
    z-index: 100;
    font-size: 1.2rem;
}

@keyframes coinBounce {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.2);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.task-item {
    background: rgba(30, 30, 48, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.task-reward {
    color: gold;
    font-weight: bold;
}

.task-completed {
    color: #4CAF50;
    font-weight: bold;
}

.task-btn {
    width: 100%;
    margin-top: 10px;
    background: var(--accent-gradient);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-color);
}

.loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Shop Styles */
.shop-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: 'Unbounded', sans-serif;
}

.tab-btn.active {
    color: var(--text-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}

.shop-items {
    max-height: 10000px;
    overflow-y: auto;
    padding: 5px;
}

.shop-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(30, 30, 48, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.shop-item-icon {
    font-size: 28px;
    margin-right: 15px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 108, 246, 0.2);
    border-radius: 50%;
}

.shop-item-info {
    flex: 1;
}

.shop-item-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.shop-item-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.shop-item-info .requires {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.shop-item-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Unbounded', sans-serif;
}

.shop-item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 108, 246, 0.4);
}

.shop-item-purchased {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
}

.shop-item.purchased {
    opacity: 0.7;
    border-color: #4CAF50;
}

/* Shop Styles */
.shop-items-container {
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 15px;
}

.shop-item {
    background: #1c1c2b;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    color: white;
    border: 1px solid var(--border-color);
}

.shop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.shop-item-title {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-item-reward {
    color: #ffd700;
    font-weight: bold;
}

.shop-item-description {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.shop-item-requires {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.shop-item-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.shop-item-btn {
    flex: 1;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shop-item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item-btn.purchased {
    background: #4CAF50 !important;
    cursor: default;
}

.icon-stack {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.icon-stack i {
    position: absolute;
}

.icon-stack i:nth-child(1) {
    top: 0;
    left: 0;
}

.icon-stack i:nth-child(2) {
    top: 4px;
    left: 4px;
    opacity: 0.8;
}

.icon-stack i:nth-child(3) {
    top: 8px;
    left: 8px;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .shop-item {
        padding: 12px;
    }

    .shop-item-title {
        font-size: 16px;
    }

    .shop-item-description {
        font-size: 13px;
    }

    .shop-item-btn {
        height: 42px;
        font-size: 14px;
    }
}

#shopModal .modal-content {
    max-height: 100vh;
    overflow-y: auto;
}

.shop-item {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.shop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.shop-item-title {
    font-size: 18px;
    font-weight: bold;
}

.shop-item-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.shop-item-buttons {
    display: flex;
    justify-content: flex-end;
}

.shop-item-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.shop-item-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Leaderboard Styles */
.leaderboard-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    background: #1c1c2b;
    z-index: 9;
    padding-bottom: 5px;
}

.leaderboard-content {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 0 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(30, 30, 48, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.leaderboard-position {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
    margin-right: 15px;
}

.position-1 {
    color: gold;
}

.position-2 {
    color: silver;
}

.position-3 {
    color: #cd7f32;
    /* bronze */
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    background: #2a2a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.leaderboard-username {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.leaderboard-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.leaderboard-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.leaderboard-stat i {
    color: var(--accent-color);
}

/* Fullscreen modal adjustments */
#leaderboardModal .modal-content {
    border-radius: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    padding: 0;
}

#leaderboardModal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

#leaderboardModal .modal-body {
    padding: 0 20px 20px;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.tg-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
}

.tg-user span {
    display: block;
    line-height: 1.2;
}

.tg-user span:first-child {
    font-weight: 500;
}

.referral-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: white;
}

.referral-card {
    background: rgba(30, 30, 48, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: rgba(20, 20, 30, 0.6);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 5px 0;
}

.referral-code {
    background: rgba(123, 108, 246, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    word-break: break-all;
}

.copy-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 16px;
}

.input-group {
    margin: 20px 0;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(20, 20, 30, 0.6);
    color: white;
    margin-bottom: 10px;
}

.history-container {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-name {
    font-weight: 500;
}

.history-amount {
    color: gold;
    font-weight: bold;
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 4px;
}

.tab-buttons {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(30, 30, 48, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: 'Unbounded', sans-serif;
}

.tab-button.active {
    color: var(--text-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ff6b6b;
    text-align: center;
}

.success-message {
    background: rgba(0, 255, 0, 0.2);
    color: #4CAF50;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #4CAF50;
    text-align: center;
}

.loading-message {
    background: rgba(123, 108, 246, 0.2);
    color: #7b6cf6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #7b6cf6;
    text-align: center;
}

.full-width {
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

/* Стиль для активированной кнопки */
.copy-btn.activated {
    background: #4CAF50 !important;
    cursor: default;
}

/* Стиль для отключенного поля ввода */
#referralInput:disabled {
    background: #2a2a3a;
    color: #4CAF50;
    border-color: #4CAF50;
}

/* Стиль для сообщения об активации */
#activatedByContainer {
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-top: 10px;
}

#referralInput {
    background: rgba(123, 108, 246, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    word-break: break-all;
    border: none;
    width: 100%;
    margin-bottom: 0;
}


.bank-card {
    background: rgba(30, 30, 48, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.bank-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.bank-stats .stat-item {
    background: rgba(20, 20, 30, 0.6);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.bank-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 5px 0;
}

.bank-stats .stat-item i {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.bank-timer {
    background: rgba(0, 176, 155, 0.2);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    border: 1px solid rgba(0, 176, 155, 0.5);
}

.bank-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.bank-actions input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: rgba(123, 108, 246, 0.2);
    color: white;
    font-size: 16px;
    text-align: center;
}

.bank-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 16px;
}

.bank-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bank-info {
    background: rgba(30, 30, 48, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.bank-info h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-info p {
    margin: 8px 0;
    font-size: 14px;
}

.bank-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.bank-stats .stat-item {
    background: rgba(20, 20, 30, 0.6);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.bank-stats .stat-value {
    font-size: 20px;
    font-weight: bold;
    margin: 5px 0;
}

.stat-item:nth-child(1) .stat-value {
    color: #7b6cf6;
    /* Фиолетовый для депозита */
}

.stat-item:nth-child(2) .stat-value {
    color: #4CAF50;
    /* Зеленый для накопленных процентов */
}

.stat-item:nth-child(3) .stat-value {
    color: #FFC107;
    /* Желтый для текущих процентов */
}

.stat-item:nth-child(4) .stat-value {
    color: #2196F3;
    /* Синий для таймера */
}

.bank-stats .stat-item i {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.3;
}

.bank-timer {
    background: rgba(0, 176, 155, 0.2);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    border: 1px solid rgba(0, 176, 155, 0.5);
}


.stat-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.bank-warning {
    background: rgba(255, 193, 7, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-warning i {
    color: #FFC107;
}

.tap-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: tap-pulse 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes tap-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.battle-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.battle-pass-progress {
    flex: 1;
    background: rgba(30, 30, 48, 0.6);
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

.battle-pass-progress .progress-bar {
    height: 10px;
    background: var(--accent-gradient);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

.battle-pass-progress .progress-text {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.battle-pass-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.battle-pass-tabs .tab-button {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.battle-pass-tabs .tab-button.active {
    color: var(--text-color);
}

.battle-pass-tabs .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}

.battle-pass-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.reward-card {
    background: rgba(30, 30, 48, 0.6);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.reward-level {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.reward-icon {
    font-size: 2rem;
    margin: 10px 0;
}

.reward-amount {
    font-weight: bold;
    margin-bottom: 10px;
}

.reward-button {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: var(--accent-gradient);
    color: white;
    cursor: pointer;
}

.reward-button.claimed {
    background: #4CAF50;
    cursor: default;
}

.reward-button.disabled {
    background: #444;
    cursor: not-allowed;
}

.reward-status {
    padding: 8px;
    text-align: center;
    font-weight: bold;
}

.reward-status .fa-lock {
    color: #ffd700;
    margin-right: 5px;
}

.reward-status .fa-check {
    color: #4CAF50;
    margin-right: 5px;
}

.fa-lock-open {
    margin-right: 5px;
    color: #4CAF50;
}

.fa-gift {
    margin-right: 5px;
    color: #7b6cf6;
}

.fa-hourglass-half {
    margin-right: 5px;
    color: #aaa;
}

#autoClickerBtn {
    transition: all 0.3s ease;
}

#autoClickerBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Стили для мини-игры */
#asteroidCanvas {
    display: block;
    margin: 0 auto;
    border: 1px solid #333;
    touch-action: none;
    user-select: none;
}

#gameOverScreen {
    display: flex;
    text-align: center;
    font-family: 'Unbounded', sans-serif;
}

#gameOverScreen h2 {
    color: #ff5555;
    font-size: 2em;
    margin-bottom: 10px;
}

#gameOverScreen p {
    font-size: 1.5em;
    margin: 5px 0;
}

#playAgainBtn {
    background: linear-gradient(135deg, #7b6cf6 0%, #5a4fcf 100%);
    padding: 12px 24px;
    font-size: 1.2em;
    border-radius: 8px;
    transition: transform 0.2s;
}

#playAgainBtn:hover {
    transform: scale(1.05);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.offline-reward {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    color: #7b6cf6;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reward-card.premium {
    border: 2px solid gold;
    background: rgba(255, 215, 0, 0.1);
}

.reward-card.premium .reward-status {
    color: gold;
}

.reward-card.premium.claimed {
    border-color: #7b6cf6;
    background: rgba(123, 108, 246, 0.1);
}

.reward-card.premium {
    border: 2px solid gold;
    background: rgba(255, 215, 0, 0.1);
}

.reward-button.premium-locked {
    background: linear-gradient(135deg, #555555 0%, #333333 100%);
    color: gold;
    cursor: not-allowed;
}

.reward-button.premium-locked:hover {
    transform: none;
    box-shadow: none;
}

.reward-card.premium.claimed {
    border-color: #7b6cf6;
    background: rgba(123, 108, 246, 0.1);
}

.battle-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.battle-pass-progress {
    flex: 1;
    margin-right: 15px;
}

.progress-bar {
    height: 10px;
    background: linear-gradient(135deg, #7b6cf6 0%, #5a3ec8 100%);
    border-radius: 5px;
    margin-bottom: 5px;
}

.progress-text {
    font-size: 0.9em;
    color: #aaa;
    text-align: center;
}

.premium-button {
    background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.premium-button.owned {
    background: #7b6cf6;
    color: white;
    cursor: default;
}

.battle-pass-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.battle-pass-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.reward-card {
    background: #2a2a3a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #3a3a4a;
}

.reward-card.premium {
    border: 2px solid gold;
    background: rgba(255, 215, 0, 0.1);
}

.reward-level {
    font-weight: bold;
    margin-bottom: 10px;
}

.reward-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.reward-amount {
    margin-bottom: 10px;
}

.reward-button {
    background: #7b6cf6;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    color: white;
    width: 100%;
    cursor: pointer;
}

.reward-button.disabled {
    background: #555;
    cursor: not-allowed;
}

.reward-button.premium-locked {
    background: #555;
    color: gold;
    cursor: not-allowed;
}

.reward-status {
    color: #7b6cf6;
    font-size: 0.9em;
}

.loading-message {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.reward-locked {
    color: #ff5555;
    font-size: 0.9em;
}

/* Стили для премиум-товаров */
.premium-item {
    border: 2px solid gold;
    background: rgba(255, 215, 0, 0.05);
    position: relative;
}

.premium-item::after {
    content: 'PREMIUM';
    position: absolute;
    top: 10px;
    right: 10px;
    background: gold;
    color: black;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
}

.premium-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%) !important;
    color: black !important;
    font-weight: bold;
}

.premium-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px gold;
}

.fa-star {
    color: gold;
    margin-left: 3px;
}

.quest-item {
    background: rgba(30, 30, 48, 0.8);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.quest-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.quest-title {
    font-size: 1.2em;
    margin: 0;
    color: #7b6cf6;
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    color: gold;
    font-weight: bold;
}

.quest-progress {
    height: 5px;
    background: #333;
    border-radius: 5px;
    margin: 10px 0;
}

.quest-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a25efa, #5921d5);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s;
}

.quest-button {
    background: linear-gradient(135deg, #a25efa 0%, #5921d5 100%);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.quest-button.completed {
    background: #00b09b;
}

.quest-button:disabled {
    background: #555;
    cursor: not-allowed;
}

.offline-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 48, 0.9);
    border: 1px solid #7b6cf6;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    z-index: 100;
    animation: slideIn 0.5s forwards;
    max-width: 90%;
    text-align: center;
}

@keyframes slideIn {
    from {
        bottom: -50px;
        opacity: 0;
    }

    to {
        bottom: 20px;
        opacity: 1;
    }
}

/* Добавить в styles_temp.css */
.fa-screwdriver {
    color: #8B4513;
    /* коричневый */
}

.fa-layer-group {
    color: #C0C0C0;
    /* серебристый */
}

.upgrade-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.upgrade-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.profile-action-btn {
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.profile-action-btn i {
    font-size: 1.2em;
}

.achievement {
    transition: transform 0.3s;
}

.achievement:hover {
    transform: scale(1.05);
}

.customization-item {
    background: #1c1c2b;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customization-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.customization-item h3 {
    margin: 0 0 10px 0;
    color: white;
}

.customization-item p {
    margin: 0 0 10px 0;
    color: #aaa;
    font-size: 0.9em;
    text-align: center;
}

.customization-item .equip-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    font-family: 'Unbounded', sans-serif;
    margin-top: 10px;
}

.customization-item .equip-btn.equipped {
    background: #4CAF50 !important;
    cursor: default;
}

.customization-item .unlock-btn {
    background: linear-gradient(135deg, #7e6ff6 0%, #a291ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    font-family: 'Unbounded', sans-serif;
    margin-top: 10px;
}

.customization-item .unlock-btn:hover:not(:disabled),
.customization-item .equip-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 108, 246, 0.4);
}

.customization-item .unlock-btn:disabled,
.customization-item .equip-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.customization-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
    position: fixed;
    width: 100%;
    background-color: #171724;
    margin-left: 0;
    padding-left: 0;
}








.achievement {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.achievement:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.achievement.unlocked {
    background: linear-gradient(135deg, rgba(123, 108, 246, 0.2) 0%, rgba(30, 30, 48, 0.7) 100%);
}

.achievement .progress-bar {
    height: 3px;
    background: #333;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.achievement .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b6cf6, #a25efa);
    width: 0%;
    transition: width 0.5s ease;
}






.achievement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profileAvatar {
    width: 80px;
    height: 80px;
    background: #7b6cf6;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    overflow: hidden;
}

#profileAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement button {
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement button:disabled {
    background-color: #4CAF50 !important;
    cursor: default;
    opacity: 1;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background: rgba(30, 30, 48, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90vw;
    animation: toastIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #F44336;
}

.toast.warning {
    border-left: 4px solid #FF9800;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-icon {
    font-size: 1.2em;
}

.toast-message {
    flex: 1;
}