* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #000000;
}

/* Верхняя панель */
.top-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    z-index: 1000;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #333333;
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-small svg {
    width: 24px;
    height: 24px;
    stroke: #888888;
}

.balance-container {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #333333;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.currency-value {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.currency-divider {
    color: #444444;
    font-size: 16px;
    font-weight: 300;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.add-balance-btn {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-balance-btn:hover {
    background: #2a2a2a;
}

.add-balance-btn svg {
    width: 18px;
    height: 18px;
    stroke: #888888;
}

.add-balance-btn span {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 80px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1000;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: #666666;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 16px;
}

.nav-btn.active {
    color: #ffffff;
}

.nav-btn svg {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.2s ease;
}

.nav-btn.active svg {
    stroke: #ffffff;
}

.nav-btn span {
    font-size: 11px;
    letter-spacing: 0.3px;
}

.profile-card {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #333333;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.profile-username {
    color: #888888;
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.stat-label {
    font-size: 12px;
    color: #888888;
    margin-top: 5px;
}

.profile-info {
    text-align: left;
    padding: 15px;
    background: #222222;
    border-radius: 20px;
    margin: 15px 0;
}

.profile-info-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
    color: #ffffff;
}

.profile-info-item svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    stroke: #888888;
    stroke-width: 2;
    fill: none;
}

.welcome-card {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    color: white;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    margin-top: 20px;
}

.welcome-card svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    fill: #ffffff;
}

.welcome-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffffff;
}

.welcome-card p {
    color: #888888;
    margin-bottom: 30px;
    font-size: 16px;
}

.telegram-login-btn {
    background: #2a2a2a;
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.telegram-login-btn svg {
    width: 20px;
    height: 20px;
    margin: 0;
    fill: white;
}

.telegram-login-btn:hover {
    background: #333333;
}

.back-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a2a;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

.back-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.back-btn:hover {
    background: #333333;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px 12px;
    }
    
    .balance-container {
        padding: 6px 12px;
        gap: 12px;
    }
    
    .currency-icon {
        width: 18px;
        height: 18px;
    }
    
    .currency-value {
        font-size: 13px;
    }
    
    .add-balance-btn {
        padding: 6px 12px;
    }
    
    .add-balance-btn span {
        font-size: 12px;
    }
    
    .bottom-nav {
        gap: 15px;
        bottom: 25px;
    }
    
    .nav-btn {
        padding: 6px 12px;
    }
    
    .nav-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .profile-card,
    .welcome-card {
        padding: 25px;
        margin: 15px;
    }
    
    .back-btn {
        bottom: 25px;
        padding: 10px 25px;
    }
}